Skip to content

Commit ef4a2ac

Browse files
committed
IT3 some1
1 parent 7374b5a commit ef4a2ac

2 files changed

Lines changed: 7 additions & 16 deletions

File tree

Detectors/Upgrades/ITS3/workflow/include/ITS3Workflow/DigitReaderSpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ITS3DigitReader final : public Task
5454

5555
const o2::header::DataOrigin mOrigin = o2::header::gDataOriginIT3;
5656

57-
std::string getBranchName(const std::string& base, int index)
57+
std::string getBranchName(const std::string& base, int index) const
5858
{
5959
if (mDoStaggering) {
6060
return base + "_" + std::to_string(index);

Detectors/Upgrades/ITS3/workflow/src/DigitWriterSpec.cxx

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,16 @@
2727
using namespace o2::framework;
2828
using SubSpecificationType = o2::framework::DataAllocator::SubSpecificationType;
2929

30-
namespace o2
31-
{
32-
namespace its3
30+
namespace o2::its3
3331
{
3432

3533
template <typename T>
3634
using BranchDefinition = MakeRootTreeWriterSpec::BranchDefinition<T>;
3735
using 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

Comments
 (0)