|
12 | 12 |
|
13 | 13 | #include "Zorro.h" |
14 | 14 |
|
15 | | -#include <algorithm> |
16 | | -#include <map> |
| 15 | +#include "EventFiltering/ZorroHelper.h" |
| 16 | + |
| 17 | +#include <CCDB/BasicCCDBManager.h> |
| 18 | +#include <CommonConstants/LHCConstants.h> |
| 19 | +#include <CommonDataFormat/IRFrame.h> |
| 20 | +#include <CommonDataFormat/InteractionRecord.h> |
| 21 | +#include <Framework/HistogramRegistry.h> |
| 22 | +#include <Framework/HistogramSpec.h> |
| 23 | +#include <Framework/Logger.h> |
17 | 24 |
|
18 | | -#include <TList.h> |
| 25 | +#include <TH1.h> |
| 26 | +#include <TH2.h> |
| 27 | +#include <TString.h> |
19 | 28 |
|
20 | | -#include "CCDB/BasicCCDBManager.h" |
21 | | -#include "CommonDataFormat/InteractionRecord.h" |
| 29 | +#include <RtypesCore.h> |
| 30 | + |
| 31 | +#include <algorithm> |
| 32 | +#include <bitset> |
| 33 | +#include <cstddef> |
| 34 | +#include <cstdint> |
| 35 | +#include <map> |
| 36 | +#include <memory> |
| 37 | +#include <string> |
| 38 | +#include <vector> |
22 | 39 |
|
23 | 40 | using o2::InteractionRecord; |
24 | 41 |
|
@@ -212,7 +229,7 @@ std::bitset<128> Zorro::fetch(uint64_t bcGlobalId, uint64_t tolerance) |
212 | 229 | { |
213 | 230 | mLastResult.reset(); |
214 | 231 | if (bcGlobalId < mBCranges.front().getMin().toLong() - tolerance || bcGlobalId > mBCranges.back().getMax().toLong() + tolerance) { |
215 | | - setupHelpers((mOrbitResetTimestamp + int64_t(bcGlobalId * o2::constants::lhc::LHCBunchSpacingNS * 1e-3)) / 1000); |
| 232 | + setupHelpers((mOrbitResetTimestamp + static_cast<int64_t>(bcGlobalId * o2::constants::lhc::LHCBunchSpacingNS * 1e-3)) / 1000); |
216 | 233 | } |
217 | 234 |
|
218 | 235 | o2::dataformats::IRFrame bcFrame{InteractionRecord::long2IR(bcGlobalId) - tolerance, InteractionRecord::long2IR(bcGlobalId) + tolerance}; |
@@ -306,7 +323,7 @@ void Zorro::setupHelpers(int64_t timestamp) |
306 | 323 | std::sort(mZorroHelpers->begin(), mZorroHelpers->end(), [](const auto& a, const auto& b) { return std::min(a.bcAOD, a.bcEvSel) < std::min(b.bcAOD, b.bcEvSel); }); |
307 | 324 | mBCranges.clear(); |
308 | 325 | mAccountedBCranges.clear(); |
309 | | - for (auto helper : *mZorroHelpers) { |
| 326 | + for (const auto& helper : *mZorroHelpers) { |
310 | 327 | mBCranges.emplace_back(InteractionRecord::long2IR(std::min(helper.bcAOD, helper.bcEvSel)), InteractionRecord::long2IR(std::max(helper.bcAOD, helper.bcEvSel))); |
311 | 328 | } |
312 | 329 | mAccountedBCranges.resize(mBCranges.size(), false); |
|
0 commit comments