|
14 | 14 | /// |
15 | 15 | /// \author Evgeny Kryshen <evgeny.kryshen@cern.ch> and Igor Altsybeev <Igor.Altsybeev@cern.ch> |
16 | 16 |
|
17 | | -#include <vector> |
18 | | -#include <map> |
19 | | -#include <string> |
20 | | -#include <limits> |
21 | | - |
22 | | -#include "Framework/ConfigParamSpec.h" |
23 | | -#include "Framework/runDataProcessing.h" |
24 | | -#include "Framework/AnalysisTask.h" |
25 | | -#include "Framework/AnalysisDataModel.h" |
26 | 17 | #include "Common/DataModel/EventSelection.h" |
| 18 | + |
27 | 19 | #include "Common/CCDB/EventSelectionParams.h" |
| 20 | +#include "Common/CCDB/RCTSelectionFlags.h" |
28 | 21 | #include "Common/CCDB/TriggerAliases.h" |
29 | | -#include "CCDB/BasicCCDBManager.h" |
30 | | -#include "CommonConstants/LHCConstants.h" |
31 | | -#include "Framework/HistogramRegistry.h" |
32 | | -#include "DataFormatsFT0/Digit.h" |
33 | | -#include "DataFormatsParameters/GRPLHCIFData.h" |
34 | | -#include "DataFormatsParameters/GRPECSObject.h" |
35 | | -#include "ITSMFTBase/DPLAlpideParam.h" |
36 | | -#include "MetadataHelper.h" |
37 | | -#include "DataFormatsParameters/AggregatedRunInfo.h" |
38 | | -#include "DataFormatsITSMFT/NoiseMap.h" // missing include in TimeDeadMap.h |
39 | | -#include "DataFormatsITSMFT/TimeDeadMap.h" |
40 | | -#include "ITSMFTReconstruction/ChipMappingITS.h" |
41 | | -#include "DataFormatsCTP/Configuration.h" |
42 | | -#include "DataFormatsCTP/Scalers.h" |
43 | | - |
44 | | -#include "TH1D.h" |
| 22 | +#include "Common/Core/MetadataHelper.h" |
| 23 | + |
| 24 | +#include <CCDB/BasicCCDBManager.h> |
| 25 | +#include <CommonConstants/LHCConstants.h> |
| 26 | +#include <DataFormatsCTP/Configuration.h> |
| 27 | +#include <DataFormatsCTP/Scalers.h> |
| 28 | +#include <DataFormatsFT0/Digit.h> |
| 29 | +#include <DataFormatsITSMFT/NoiseMap.h> // missing include in TimeDeadMap. |
| 30 | +#include <DataFormatsITSMFT/TimeDeadMap.h> |
| 31 | +#include <DataFormatsParameters/AggregatedRunInfo.h> |
| 32 | +#include <DataFormatsParameters/GRPLHCIFData.h> |
| 33 | +#include <Framework/AnalysisDataModel.h> |
| 34 | +#include <Framework/AnalysisHelpers.h> |
| 35 | +#include <Framework/AnalysisTask.h> |
| 36 | +#include <Framework/Configurable.h> |
| 37 | +#include <Framework/DataTypes.h> |
| 38 | +#include <Framework/HistogramRegistry.h> |
| 39 | +#include <Framework/HistogramSpec.h> |
| 40 | +#include <Framework/InitContext.h> |
| 41 | +#include <Framework/OutputObjHeader.h> |
| 42 | +#include <Framework/runDataProcessing.h> |
| 43 | +#include <ITSMFTBase/DPLAlpideParam.h> |
| 44 | +#include <ITSMFTReconstruction/ChipMappingITS.h> |
| 45 | + |
| 46 | +#include <TH1.h> |
| 47 | +#include <TH2.h> |
| 48 | +#include <TMath.h> |
| 49 | +#include <TString.h> |
| 50 | + |
| 51 | +#include <Rtypes.h> |
| 52 | +#include <RtypesCore.h> |
| 53 | + |
| 54 | +#include <algorithm> |
| 55 | +#include <bitset> |
| 56 | +#include <cmath> |
| 57 | +#include <cstddef> |
| 58 | +#include <cstdint> |
| 59 | +#include <cstdlib> |
| 60 | +#include <iterator> |
| 61 | +#include <limits> |
| 62 | +#include <map> |
| 63 | +#include <string> |
| 64 | +#include <utility> |
| 65 | +#include <vector> |
45 | 66 |
|
46 | 67 | using namespace o2; |
47 | 68 | using namespace o2::framework; |
@@ -313,7 +334,7 @@ struct BcSelectionTask { |
313 | 334 | if (mapRCT == nullptr) { |
314 | 335 | LOGP(info, "rct object missing... inserting dummy rct flags"); |
315 | 336 | mapRCT = new std::map<uint64_t, uint32_t>; |
316 | | - uint32_t dummyValue = 1 << 31; // setting bit 31 to indicate that rct object is missing |
| 337 | + uint32_t dummyValue = 1U << 31; // setting bit 31 to indicate that rct object is missing |
317 | 338 | mapRCT->insert(std::pair<uint64_t, uint32_t>(sorTimestamp, dummyValue)); |
318 | 339 | } |
319 | 340 | } |
@@ -516,7 +537,7 @@ struct EventSelectionTask { |
516 | 537 | int rofOffset = -1; // ITS ROF offset, in bc |
517 | 538 | int rofLength = -1; // ITS ROF length, in bc |
518 | 539 |
|
519 | | - int32_t findClosest(int64_t globalBC, std::map<int64_t, int32_t>& bcs) |
| 540 | + int32_t findClosest(int64_t globalBC, const std::map<int64_t, int32_t>& bcs) |
520 | 541 | { |
521 | 542 | auto it = bcs.lower_bound(globalBC); |
522 | 543 | int64_t bc1 = it->first; |
@@ -1280,7 +1301,7 @@ struct LumiTask { |
1280 | 1301 | LOGP(warn, "Cross section for z={} + z={} @ {} GeV is not defined", beamZ1, beamZ2, sqrts); |
1281 | 1302 | } |
1282 | 1303 | // getting CTP config to extract lumi class indices (used for rate fetching and pileup correction) |
1283 | | - std::map<string, string> metadata; |
| 1304 | + std::map<std::string, std::string> metadata; |
1284 | 1305 | metadata["runNumber"] = std::to_string(run); |
1285 | 1306 | auto config = ccdb->getSpecific<o2::ctp::CTPConfiguration>("CTP/Config/Config", ts, metadata); |
1286 | 1307 | auto classes = config->getCTPClasses(); |
|
0 commit comments