@@ -53,9 +53,6 @@ enum ColHist {
5353 kCentVsMult ,
5454 kCentVsSphericity ,
5555 kMultVsSphericity ,
56- // particle number correlation
57- kNpart1VsNpart2 ,
58- kNpart1VsNpart2VsNpart3 ,
5956 // mc
6057 kTrueCentVsCent ,
6158 kTrueMultVsMult ,
@@ -84,21 +81,16 @@ constexpr std::array<histmanager::HistInfo<ColHist>, kColHistLast> HistTable = {
8481 {kCentVsMult , o2::framework::kTH2F , " hCentVsMult" , " Centrality vs Multiplicity; Centrality (%); Multiplicity" },
8582 {kMultVsSphericity , o2::framework::kTH2F , " hMultVsSphericity" , " Multiplicity vs Sphericity; Multiplicity; Sphericity" },
8683 {kCentVsSphericity , o2::framework::kTH2F , " hCentVsSphericity" , " Centrality vs Sphericity; Centrality (%); Sphericity" },
87- // particle number correlation
88- {kNpart1VsNpart2 , o2::framework::kTH2F , " hNpart1VsNpart2" , " # particle 1 vs # particle 2; # particle 1; # particle 2" },
89- {kNpart1VsNpart2VsNpart3 , o2::framework::kTHnSparseF , " hNpart1VsNpart2VsNpart3" , " # particle 1 vs # particle 2 vs particle 3; # particle 1; # particle 2; # particle 3" },
9084 // mc
9185 {kTrueCentVsCent , o2::framework::kTH2F , " hTrueCentVsCent" , " True centrality vs centrality; Centrality_{True} (%); Centrality (%)" },
9286 {kTrueMultVsMult , o2::framework::kTH2F , " hTrueMultVsMult" , " True multiplicity vs multiplicity; Multiplicity_{True}; Multiplicity" },
9387 }};
9488
95- #define COL_HIST_ANALYSIS_MAP (conf ) \
96- {kPosZ , {conf.vtxZ }}, \
97- {kMult , {conf.mult }}, \
98- {kCent , {conf.cent }}, \
99- {kMagField , {conf.magField }}, \
100- {kNpart1VsNpart2 , {conf.particleCorrelation , conf.particleCorrelation }}, \
101- {kNpart1VsNpart2VsNpart3 , {conf.particleCorrelation , conf.particleCorrelation , conf.particleCorrelation }},
89+ #define COL_HIST_ANALYSIS_MAP (conf ) \
90+ {kPosZ , {conf.vtxZ }}, \
91+ {kMult , {conf.mult }}, \
92+ {kCent , {conf.cent }}, \
93+ {kMagField , {conf.magField }},
10294
10395#define COL_HIST_QA_MAP (confAnalysis, confQa ) \
10496 {kPosX , {confQa.vtxXY }}, \
@@ -158,9 +150,6 @@ struct ConfCollisionBinning : o2::framework::ConfigurableGroup {
158150 o2::framework::ConfigurableAxis mult{" mult" , {200 , 0 , 200 }, " Multiplicity binning" };
159151 o2::framework::ConfigurableAxis cent{" cent" , {100 , 0 .0f , 100 .0f }, " Centrality (multiplicity percentile) binning" };
160152 o2::framework::ConfigurableAxis magField{" magField" , {11 , -5.5 , 5.5 }, " Magnetic field binning" };
161- o2::framework::Configurable<bool > plotParticlePairCorrelation{" plotParticlePairCorrelation" , false , " Plot particle number correlation for pairs" };
162- o2::framework::Configurable<bool > plotParticleTripletCorrelation{" plotParticleTripletCorrelation" , false , " Plot particle number correlation for triplets" };
163- o2::framework::ConfigurableAxis particleCorrelation{" particleCorrelation" , {6 , -0 .5f , 5 .5f }, " Binning for particle number correlation of pairs/triplets" };
164153};
165154
166155struct ConfCollisionQaBinning : o2::framework::ConfigurableGroup {
@@ -181,11 +170,9 @@ class CollisionHistManager
181170 template <modes::Mode mode, typename T>
182171 void init (o2::framework::HistogramRegistry* registry,
183172 std::map<ColHist, std::vector<o2::framework::AxisSpec>> const & Specs,
184- T const & ConfCollisionBinning)
173+ T const & /* ConfCollisionBinning*/ )
185174 {
186175 mHistogramRegistry = registry;
187- mPlotPairCorrelation = ConfCollisionBinning.plotParticlePairCorrelation .value ;
188- mPlotTripletCorrelation = ConfCollisionBinning.plotParticleTripletCorrelation .value ;
189176 if constexpr (isFlagSet (mode, modes::Mode::kAnalysis )) {
190177 initAnalysis (Specs);
191178 }
@@ -214,21 +201,21 @@ class CollisionHistManager
214201 }
215202
216203 template <modes::Mode mode, typename T>
217- void fill (T const & col, int64_t nSlice1, int64_t nSlice2, int64_t nSlice3 )
204+ void fill (T const & col)
218205 {
219206 if constexpr (isFlagSet (mode, modes::Mode::kAnalysis )) {
220- fillAnalysis (col, nSlice1, nSlice2, nSlice3 );
207+ fillAnalysis (col);
221208 }
222209 if constexpr (isFlagSet (mode, modes::Mode::kQa )) {
223210 fillQa (col);
224211 }
225212 }
226213
227214 template <modes::Mode mode, typename T1, typename T2>
228- void fill (T1 const & col, T2 const & mcCols, int64_t nSlice1, int64_t nSlice2, int64_t nSlice3 )
215+ void fill (T1 const & col, T2 const & mcCols)
229216 {
230217 if constexpr (isFlagSet (mode, modes::Mode::kAnalysis )) {
231- fillAnalysis (col, nSlice1, nSlice2, nSlice3 );
218+ fillAnalysis (col);
232219 }
233220 if constexpr (isFlagSet (mode, modes::Mode::kQa )) {
234221 fillQa (col);
@@ -246,12 +233,6 @@ class CollisionHistManager
246233 mHistogramRegistry ->add (analysisDir + getHistNameV2 (kMult , HistTable), getHistDesc (kMult , HistTable), getHistType (kMult , HistTable), {Specs.at (kMult )});
247234 mHistogramRegistry ->add (analysisDir + getHistNameV2 (kCent , HistTable), getHistDesc (kCent , HistTable), getHistType (kCent , HistTable), {Specs.at (kCent )});
248235 mHistogramRegistry ->add (analysisDir + getHistNameV2 (kMagField , HistTable), getHistDesc (kMagField , HistTable), getHistType (kMagField , HistTable), {Specs.at (kMagField )});
249- if (mPlotPairCorrelation ) {
250- mHistogramRegistry ->add (analysisDir + getHistNameV2 (kNpart1VsNpart2 , HistTable), getHistDesc (kNpart1VsNpart2 , HistTable), getHistType (kNpart1VsNpart2 , HistTable), {Specs.at (kNpart1VsNpart2 )});
251- }
252- if (mPlotTripletCorrelation ) {
253- mHistogramRegistry ->add (analysisDir + getHistNameV2 (kNpart1VsNpart2VsNpart3 , HistTable), getHistDesc (kNpart1VsNpart2VsNpart3 , HistTable), getHistType (kNpart1VsNpart2VsNpart3 , HistTable), {Specs.at (kNpart1VsNpart2VsNpart3 )});
254- }
255236 }
256237
257238 void initQa (std::map<ColHist, std::vector<o2::framework::AxisSpec>> const & Specs)
@@ -279,18 +260,12 @@ class CollisionHistManager
279260 }
280261
281262 template <typename T>
282- void fillAnalysis (T const & col, size_t nSlice1, size_t nSlice2, size_t nSlice3 )
263+ void fillAnalysis (T const & col)
283264 {
284265 mHistogramRegistry ->fill (HIST (AnalysisDir) + HIST (getHistName (kPosZ , HistTable)), col.posZ ());
285266 mHistogramRegistry ->fill (HIST (AnalysisDir) + HIST (getHistName (kMult , HistTable)), col.mult ());
286267 mHistogramRegistry ->fill (HIST (AnalysisDir) + HIST (getHistName (kCent , HistTable)), col.cent ());
287268 mHistogramRegistry ->fill (HIST (AnalysisDir) + HIST (getHistName (kMagField , HistTable)), col.magField ());
288- if (mPlotPairCorrelation ) {
289- mHistogramRegistry ->fill (HIST (AnalysisDir) + HIST (getHistName (kNpart1VsNpart2 , HistTable)), nSlice1, nSlice2);
290- }
291- if (mPlotTripletCorrelation ) {
292- mHistogramRegistry ->fill (HIST (AnalysisDir) + HIST (getHistName (kNpart1VsNpart2VsNpart3 , HistTable)), nSlice1, nSlice2, nSlice3);
293- }
294269 }
295270
296271 template <typename T>
@@ -323,8 +298,6 @@ class CollisionHistManager
323298
324299 o2::framework::HistogramRegistry* mHistogramRegistry = nullptr ;
325300 bool mPlot2d = false ;
326- bool mPlotPairCorrelation = false ;
327- bool mPlotTripletCorrelation = false ;
328301}; // namespace femtounitedcolhistmanager
329302}; // namespace colhistmanager
330303}; // namespace o2::analysis::femto
0 commit comments