|
15 | 15 | #include "FV0Reconstruction/BaseRecoTask.h" |
16 | 16 | #include "DataFormatsFV0/RecPoints.h" |
17 | 17 | #include "FV0Base/Geometry.h" |
18 | | -#include "FV0Simulation/FV0DigParam.h" |
19 | 18 | #include "FV0Simulation/DigitizationConstant.h" |
| 19 | +#include "DataFormatsFV0/FV0RecoConfig.h" |
20 | 20 | #include <DataFormatsFV0/ChannelData.h> |
21 | 21 | #include <DataFormatsFV0/Digit.h> |
22 | 22 | #include <CommonDataFormat/InteractionRecord.h> |
@@ -56,14 +56,14 @@ RP BaseRecoTask::process(o2::fv0::Digit const& bcd, |
56 | 56 | const auto& currentOutCh = outChData.back(); |
57 | 57 |
|
58 | 58 | // Conditions for reconstructing collision time (3 variants: first, average-relaxed and average-tight) |
59 | | - if (currentOutCh.charge > FV0DigParam::Instance().chargeThrForMeanTime) { |
| 59 | + if (currentOutCh.charge > FV0RecoConfig::Instance().AmplitudeThresholdForMeanTime) { |
60 | 60 | sideAtimeFirst = std::min(static_cast<Double_t>(sideAtimeFirst), currentOutCh.time); |
61 | | - if (inChData[ich].areAllFlagsGood()) { |
62 | | - if (std::abs(currentOutCh.time) < FV0DigParam::Instance().mTimeThresholdForReco) { |
| 61 | + if (FV0RecoConfig::Instance().areChannelDataFlagsGood(inChData[ich].ChainQTC)) { |
| 62 | + if (std::abs(currentOutCh.time) < FV0RecoConfig::Instance().TimeUpperThreshold) { |
63 | 63 | sideAtimeAvg += currentOutCh.time; |
64 | 64 | ndigitsA++; |
65 | 65 | } |
66 | | - if (currentOutCh.charge > FV0DigParam::Instance().mAmpThresholdForReco && std::abs(currentOutCh.time) < FV0DigParam::Instance().mTimeThresholdForReco) { |
| 66 | + if (currentOutCh.charge > FV0RecoConfig::Instance().AmplitudeLowerThreshold && std::abs(currentOutCh.time) < FV0RecoConfig::Instance().TimeUpperThreshold) { |
67 | 67 | sideAtimeAvgSelected += currentOutCh.time; |
68 | 68 | ndigitsASelected++; |
69 | 69 | } |
|
0 commit comments