2727using namespace o2 ::framework;
2828using SubSpecificationType = o2::framework::DataAllocator::SubSpecificationType;
2929
30- namespace o2
31- {
32- namespace its3
30+ namespace o2 ::its3
3331{
3432
3533template <typename T>
3634using BranchDefinition = MakeRootTreeWriterSpec::BranchDefinition<T>;
3735using MCCont = o2::dataformats::ConstMCTruthContainer<o2::MCCompLabel>;
3836
39- // / create the processor spec
40- // / describing a processor receiving digits for ITS/MFT and writing them to file
41- DataProcessorSpec getDigitWriterSpec (bool mctruth, bool doStag, bool dec, bool calib, o2::header::DataOrigin detOrig, o2::detectors::DetID detId)
37+ DataProcessorSpec getITS3DigitWriterSpec (bool mctruth, bool doStag, bool dec, bool calib)
4238{
43- std::string detStr = o2::detectors::DetID::getName (detId );
39+ std::string detStr = o2::detectors::DetID::getName (o2::detectors::DetID:: IT3 );
4440 std::string detStrL = dec ? " o2_" : " " ; // for decoded digits prepend by o2
4541 const int mLayers = doStag ? 7 : 1 ;
4642 detStrL += detStr;
@@ -112,7 +108,7 @@ DataProcessorSpec getDigitWriterSpec(bool mctruth, bool doStag, bool dec, bool c
112108
113109 return MakeRootTreeWriterSpec ((detStr + " DigitWriter" + (dec ? " _dec" : " " )).c_str (),
114110 (detStrL + " digits.root" ).c_str (),
115- MakeRootTreeWriterSpec::TreeAttributes{" o2sim" , " Digits tree" },
111+ MakeRootTreeWriterSpec::TreeAttributes{. name = " o2sim" , . title = " Digits tree" },
116112 MakeRootTreeWriterSpec::CustomClose (finishWriting),
117113 // in case of labels we first read them as std::vector<char> and process them correctly in the fillLabels hook
118114 BranchDefinition<std::vector<itsmft::Digit>>{vecInpSpecDig,
@@ -135,10 +131,5 @@ DataProcessorSpec getDigitWriterSpec(bool mctruth, bool doStag, bool dec, bool c
135131 getName})();
136132}
137133
138- DataProcessorSpec getITS3DigitWriterSpec (bool mctruth, bool doStag, bool dec, bool calib)
139- {
140- return getDigitWriterSpec (mctruth, doStag, dec, calib, o2::header::gDataOriginIT3 , o2::detectors::DetID::IT3 );
141- }
142-
143- } // end namespace its3
144- } // end namespace o2
134+ } // namespace o2::its3
135+ // end namespace o2
0 commit comments