Skip to content

Commit 2373c15

Browse files
AllaMaevskayashahor02
authored andcommitted
all TFs passed to reco
1 parent cc0b519 commit 2373c15

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

Detectors/FIT/FT0/workflow/src/FT0DigitWriterDPLSpec.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ DataProcessorSpec getFT0DigitWriterDPLSpec()
3434
LOG(INFO) << "FT0DigitWriter pulled " << digits.size() << " digits";
3535
};
3636
return MakeRootTreeWriterSpec(
37-
"ft0-digit-writer", "o2digit_ft0.root", "o2digits",
37+
"ft0-digit-writer", "o2digit_ft0.root", "o2sim",
3838
BranchDefinition<DigitType>{InputSpec{"digits", "FT0", "DIGITSBC", 0},
39-
"FT0Digits", "ft0-digits-branch-name", 1,
39+
"FT0DIGITSBC", "ft0-digits-branch-name", 1,
4040
logger},
4141
BranchDefinition<ChanDataType>{InputSpec{"digch", "FT0", "DIGITSCH", 0},
42-
"FT0ChData", "ft0-chhdata-branch-name"})();
42+
"FT0DIGITSCH", "ft0-chhdata-branch-name"})();
4343
}
4444

4545
} // namespace ft0

Detectors/FIT/FT0/workflow/src/FT0DigitWriterSpec.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ DataProcessorSpec getFT0DigitWriterSpec()
3434
LOG(INFO) << "FT0DigitWriter pulled " << digits.size() << " digits";
3535
};
3636
return MakeRootTreeWriterSpec(
37-
"ft0-digit-writer", "o2digit_ft0.root", "o2digits",
37+
"ft0-digit-writer", "o2digit_ft0.root", "o2sim",
3838
BranchDefinition<DigitType>{InputSpec{"digits", "FT0", "DIGITSBC", 0},
39-
"FT0Digits", "ft0-digits-branch-name", 1,
39+
"FT0DIGITSBC", "ft0-digits-branch-name", 1,
4040
logger},
4141
BranchDefinition<ChanDataType>{InputSpec{"digch", "FT0", "DIGITSCH", 0},
42-
"FT0ChData", "ft0-chhdata-branch-name"})();
42+
"FT0DIGITSCH", "ft0-chhdata-branch-name"})();
4343
}
4444

4545
} // namespace ft0

Detectors/FIT/FT0/workflow/src/ReconstructionSpec.cxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ void ReconstructionDPL::init(InitContext& ic)
3333

3434
void ReconstructionDPL::run(ProcessingContext& pc)
3535
{
36-
if (mFinished) {
37-
return;
38-
}
3936
mRecPoints.clear();
4037
auto digits = pc.inputs().get<gsl::span<o2::ft0::Digit>>("digits");
4138
//auto digits = pc.inputs().get<const std::vector<o2::ft0::Digit>>("digits");
@@ -49,10 +46,12 @@ void ReconstructionDPL::run(ProcessingContext& pc)
4946
LOG(INFO) << "Ignoring MC info";
5047
}
5148
int nDig = digits.size();
49+
LOG(DEBUG) << " nDig " << nDig;
5250
mRecPoints.reserve(nDig);
5351
mRecChData.resize(digch.size());
5452
for (int id = 0; id < nDig; id++) {
5553
const auto& digit = digits[id];
54+
LOG(DEBUG) << " ndig " << id << " bc " << digit.getBC() << " orbit " << digit.getOrbit();
5655
auto channels = digit.getBunchChannelData(digch);
5756
gsl::span<o2::ft0::ChannelDataFloat> out_ch(mRecChData);
5857
out_ch = out_ch.subspan(digit.ref.getFirstEntry(), digit.ref.getEntries());
@@ -65,7 +64,6 @@ void ReconstructionDPL::run(ProcessingContext& pc)
6564
pc.outputs().snapshot(Output{mOrigin, "RECCHDATA", 0, Lifetime::Timeframe}, mRecChData);
6665

6766
mFinished = true;
68-
pc.services().get<ControlService>().readyToQuit(QuitRequest::Me);
6967
}
7068

7169
DataProcessorSpec getReconstructionSpec(bool useMC)

0 commit comments

Comments
 (0)