|
17 | 17 | #include "PWGLF/DataModel/LFStrangenessTables.h" |
18 | 18 |
|
19 | 19 | #include "Common/DataModel/EventSelection.h" |
20 | | -#include "Common/DataModel/PIDResponseTPC.h" |
21 | 20 | #include "Common/DataModel/PIDResponseTOF.h" |
| 21 | +#include "Common/DataModel/PIDResponseTPC.h" |
22 | 22 |
|
23 | 23 | #include <Framework/AnalysisDataModel.h> |
24 | 24 | #include <Framework/AnalysisTask.h> |
|
31 | 31 | using namespace o2; |
32 | 32 | using namespace o2::framework; |
33 | 33 |
|
34 | | -struct systematicsMapping { |
| 34 | +struct SystematicsMapping { |
35 | 35 | // Returns a unique index for the combination of cuts |
36 | 36 | ConfigurableAxis ptBins{"ptBins", {100, 0.f, 10.f}, "Binning for pT (GeV/c)"}; |
37 | 37 | ConfigurableAxis etaBins{"etaBins", {40, -1.0f, 1.0f}, "Binning for #eta"}; |
38 | | - ConfigurableAxis phiBins{"phiBins", {36, 0.f, 2 * M_PI}, "Binning for #phi (rad)"}; |
| 38 | + ConfigurableAxis phiBins{"phiBins", {36, 0.f, 2 * o2::constants::math::PI}, "Binning for #phi (rad)"}; |
39 | 39 | // Define the Signal axis |
40 | 40 | ConfigurableAxis invariantMassBins{"invariantMassBins", {100, -0.1f, 0.1f}, "Binning for the invariant mass (GeV/c^2)"}; |
41 | 41 | ConfigurableAxis nsigmaBins{"nsigmaBins", {100, -10.f, 10.f}, "Binning for nSigma"}; |
42 | 42 | // Selection bins |
43 | 43 | ConfigurableAxis tpcClusterBins{"tpcClusterBins", {5, 70, 100, 120, 135, 150}, "Min TPC clusters for tracks"}; |
44 | 44 | ConfigurableAxis itsClustersBins{"itsClustersBins", {5, 0, 6}, "Min ITS clusters for tracks"}; |
| 45 | + // Selection configurables |
| 46 | + Configurable<float> selectionPosZ{"selectionPosZ", 10.f, "Max |z| of the primary vertex"}; |
45 | 47 |
|
46 | 48 | HistogramRegistry registry{"registry"}; |
47 | 49 |
|
48 | 50 | template <typename T> |
49 | 51 | bool isCollisionSelected(T const& collision) |
50 | 52 | { |
51 | | - return collision.sel8() && std::abs(collision.posZ()) <= 10.f; |
| 53 | + return collision.sel8() && std::abs(collision.posZ()) <= selectionPosZ; |
52 | 54 | } |
53 | 55 |
|
54 | 56 | void init(InitContext const&) |
@@ -110,7 +112,7 @@ struct systematicsMapping { |
110 | 112 | } |
111 | 113 | } |
112 | 114 | } |
113 | | - PROCESS_SWITCH(systematicsMapping, processData, "Systematics study for K0s and charged Kaons", true); |
| 115 | + PROCESS_SWITCH(SystematicsMapping, processData, "Systematics study for K0s and charged Kaons", true); |
114 | 116 |
|
115 | 117 | void processMc(soa::Join<CollisionType, aod::McCollisionLabels> const& collisions, |
116 | 118 | aod::McParticles const& particles, |
@@ -144,7 +146,7 @@ struct systematicsMapping { |
144 | 146 | } |
145 | 147 | } |
146 | 148 | } |
147 | | - PROCESS_SWITCH(systematicsMapping, processMc, "Systematics study for K0s and charged Kaons on MC", false); |
| 149 | + PROCESS_SWITCH(SystematicsMapping, processMc, "Systematics study for K0s and charged Kaons on MC", false); |
148 | 150 | }; |
149 | 151 |
|
150 | | -WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) { return WorkflowSpec{adaptAnalysisTask<systematicsMapping>(cfgc)}; } |
| 152 | +WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) { return WorkflowSpec{adaptAnalysisTask<SystematicsMapping>(cfgc)}; } |
0 commit comments