|
25 | 25 | #include "Framework/AnalysisDataModel.h" |
26 | 26 | #include "Framework/AnalysisTask.h" |
27 | 27 | #include "Framework/HistogramRegistry.h" |
| 28 | +#include "Framework/Logger.h" #include "ReconstructionDataFormats/Track.h" |
28 | 29 | #include "Framework/O2DatabasePDGPlugin.h" |
29 | 30 | #include "Framework/StaticFor.h" |
30 | 31 | #include "Framework/runDataProcessing.h" |
31 | | -#include "ReconstructionDataFormats/Track.h" |
32 | 32 |
|
33 | 33 | #include "TDatabasePDG.h" |
34 | 34 | #include <TF1.h> |
|
37 | 37 | #include <TRandom.h> |
38 | 38 |
|
39 | 39 | #include <cmath> |
40 | | -#include <iostream> |
41 | 40 | #include <vector> |
42 | 41 |
|
43 | 42 | using namespace o2; |
44 | 43 | using namespace o2::framework; |
45 | 44 | using namespace o2::framework::expressions; |
| 45 | +using namespace o2::constants::physics; |
46 | 46 | using BCsRun3 = soa::Join<aod::BCs, aod::Timestamps, aod::BcSels, |
47 | 47 | aod::Run3MatchedToBCSparse>; |
48 | 48 |
|
49 | | -struct multiplicitypt { |
| 49 | +struct MultiplicityPt { |
50 | 50 |
|
51 | 51 | // Service |
52 | 52 | Service<o2::framework::O2DatabasePDG> pdg; |
@@ -139,9 +139,9 @@ struct multiplicitypt { |
139 | 139 | }; |
140 | 140 |
|
141 | 141 | // PDG codes |
142 | | - static constexpr int PDGPion = 211; |
143 | | - static constexpr int PDGKaon = 321; |
144 | | - static constexpr int PDGProton = 2212; |
| 142 | + static constexpr int PDGPion = Pdg::kPiPlus; |
| 143 | + static constexpr int PDGKaon = Pdg::kKPlus; |
| 144 | + static constexpr int PDGProton = Pdg::kProton; |
145 | 145 |
|
146 | 146 | // ======================================================================== |
147 | 147 | // PROCESS FUNCTION DECLARATIONS - SPECTRATOF STYLE |
@@ -391,10 +391,10 @@ struct multiplicitypt { |
391 | 391 |
|
392 | 392 | WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) |
393 | 393 | { |
394 | | - return WorkflowSpec{adaptAnalysisTask<multiplicitypt>(cfgc)}; |
| 394 | + return WorkflowSpec{adaptAnalysisTask<MultiplicityPt>(cfgc)}; |
395 | 395 | } |
396 | 396 |
|
397 | | -void multiplicitypt::init(InitContext const&) |
| 397 | +void MultiplicityPt::init(InitContext const&) |
398 | 398 | { |
399 | 399 | // ======================================================================== |
400 | 400 | // CUSTOM TRACK CUTS INITIALIZATION - MATCHING spectraTOF |
@@ -571,7 +571,7 @@ void multiplicitypt::init(InitContext const&) |
571 | 571 | // ======================================================================== |
572 | 572 | // DATA PROCESSING - WITH EXCLUSIVE PID |
573 | 573 | // ======================================================================== |
574 | | -void multiplicitypt::processData(CollisionTableData::iterator const& collision, TrackTableData const& tracks) |
| 574 | +void MultiplicityPt::processData(CollisionTableData::iterator const& collision, TrackTableData const& tracks) |
575 | 575 | { |
576 | 576 | if (!isEventSelected<true>(collision)) { |
577 | 577 | return; |
@@ -613,7 +613,7 @@ void multiplicitypt::processData(CollisionTableData::iterator const& collision, |
613 | 613 | // ======================================================================== |
614 | 614 | // MC PROCESSING - WITH FIXED PRIMARY FRACTION CALCULATION |
615 | 615 | // ======================================================================== |
616 | | -void multiplicitypt::processMC(TrackTableMC const& tracks, |
| 616 | +void MultiplicityPt::processMC(TrackTableMC const& tracks, |
617 | 617 | aod::McParticles const& particles, |
618 | 618 | CollisionTableMCTrue const& mcCollisions, |
619 | 619 | CollisionTableMC const& collisions) |
@@ -882,7 +882,7 @@ void multiplicitypt::processMC(TrackTableMC const& tracks, |
882 | 882 | // ======================================================================== |
883 | 883 | // TRUE MC PROCESSING - WITH PARTICLE-SPECIFIC SIGNAL LOSS |
884 | 884 | // ======================================================================== |
885 | | -void multiplicitypt::processTrue(CollisionTableMCTrue const& mcCollisions, |
| 885 | +void MultiplicityPt::processTrue(CollisionTableMCTrue const& mcCollisions, |
886 | 886 | ParticleTableMC const& particles) |
887 | 887 | { |
888 | 888 | LOG(info) << "=== DEBUG processTrue START ==="; |
|
0 commit comments