|
26 | 26 | #include "PWGLF/DataModel/LFStrangenessTables.h" |
27 | 27 |
|
28 | 28 | #include "Common/CCDB/ctpRateFetcher.h" |
29 | | -#include "Common/Core/trackUtilities.h" |
30 | 29 | #include "Common/DataModel/EventSelection.h" |
31 | 30 | #include "Common/DataModel/Multiplicity.h" |
32 | 31 | #include "Common/DataModel/OccupancyTables.h" |
|
38 | 37 |
|
39 | 38 | #include <CCDB/BasicCCDBManager.h> |
40 | 39 | #include <CommonConstants/PhysicsConstants.h> |
41 | | -#include <Framework/ASoAHelpers.h> |
42 | 40 | #include <Framework/AnalysisDataModel.h> |
| 41 | +#include <Framework/AnalysisHelpers.h> |
43 | 42 | #include <Framework/AnalysisTask.h> |
44 | | -#include <Framework/HistogramRegistry.h> |
| 43 | +#include <Framework/Configurable.h> |
| 44 | +#include <Framework/InitContext.h> |
45 | 45 | #include <Framework/runDataProcessing.h> |
| 46 | +#include <ReconstructionDataFormats/PID.h> |
46 | 47 |
|
47 | 48 | #include <TRandom3.h> |
48 | 49 |
|
| 50 | +#include <array> |
49 | 51 | #include <cmath> |
50 | 52 | #include <concepts> |
| 53 | +#include <cstdint> |
| 54 | +#include <numeric> |
51 | 55 | #include <string> |
52 | 56 | #include <type_traits> |
53 | 57 | #include <utility> |
@@ -409,13 +413,13 @@ struct TreeWriterTpcV0 { |
409 | 413 | if (!isEventSelected(collision, applyEvSel)) { |
410 | 414 | continue; |
411 | 415 | } |
412 | | - const auto& v0s = myV0s.sliceBy(perCollisionV0s, collision.globalIndex()); |
413 | | - const auto& cascs = myCascs.sliceBy(perCollisionCascs, collision.globalIndex()); |
| 416 | + const auto& v0s = myV0s.sliceBy(perCollisionV0s, static_cast<int>(collision.globalIndex())); |
| 417 | + const auto& cascs = myCascs.sliceBy(perCollisionCascs, static_cast<int>(collision.globalIndex())); |
414 | 418 | const auto& bc = collision.bc_as<BCType>(); |
415 | 419 | const int runnumber = bc.runNumber(); |
416 | | - const float hadronicRate = mRateFetcher.fetch(ccdb.service, bc.timestamp(), runnumber, irSource) * OneToKilo; |
| 420 | + const auto hadronicRate = mRateFetcher.fetch(ccdb.service, bc.timestamp(), runnumber, irSource) * OneToKilo; |
417 | 421 | const int bcGlobalIndex = bc.globalIndex(); |
418 | | - int bcTimeFrameId, bcBcInTimeFrame; |
| 422 | + int bcTimeFrameId{}, bcBcInTimeFrame{}; |
419 | 423 | if constexpr (ModeId == ModeWithdEdxTrkQA || ModeId == ModeStandard) { |
420 | 424 | bcTimeFrameId = UndefValueInt; |
421 | 425 | bcBcInTimeFrame = UndefValueInt; |
@@ -785,9 +789,9 @@ struct TreeWriterTpcTof { |
785 | 789 |
|
786 | 790 | const auto& bc = collision.bc_as<BCType>(); |
787 | 791 | const int runnumber = bc.runNumber(); |
788 | | - const float hadronicRate = mRateFetcher.fetch(ccdb.service, bc.timestamp(), runnumber, irSource) * OneToKilo; |
| 792 | + const auto hadronicRate = mRateFetcher.fetch(ccdb.service, bc.timestamp(), runnumber, irSource) * OneToKilo; |
789 | 793 | const int bcGlobalIndex = bc.globalIndex(); |
790 | | - int bcTimeFrameId, bcBcInTimeFrame; |
| 794 | + int bcTimeFrameId{}, bcBcInTimeFrame{}; |
791 | 795 | if constexpr (ModeId == ModeStandard || ModeId == ModeWithdEdxTrkQA) { |
792 | 796 | bcTimeFrameId = UndefValueInt; |
793 | 797 | bcBcInTimeFrame = UndefValueInt; |
|
0 commit comments