@@ -113,7 +113,6 @@ struct DeltaAnalysis {
113113 Configurable<float > cfgMaxY{" cfgMaxY" , 0 .5f , " Maximum rapidity of reconstructed Delta" };
114114 Configurable<int > cfgMinITSClusters{" cfgMinITSClusters" , 5 , " Minimum ITS clusters" };
115115 Configurable<int > cfgMinTPCClusters{" cfgMinTPCClusters" , 70 , " Minimum TPC clusters found" };
116- Configurable<int > numberOfInvMassBins{" numberOfInvMassBins" , 120 , " Number of bins along the invariant mass axis" };
117116 Configurable<int > cfgMinTPCCrossedRows{" cfgMinTPCCrossedRows" , 70 , " Minimum TPC crossed pad rows" };
118117 Configurable<float > cfgMinCrossedRowsOverFindable{" cfgMinCrossedRowsOverFindable" , 0 .8f , " Minimum ratio crossedRows/findableClusters" };
119118 Configurable<int > cfgMaxTPCSharedClusters{" cfgMaxTPCSharedClusters" , 0 , " Maximum TPC shared clusters" };
@@ -198,7 +197,10 @@ struct DeltaAnalysis {
198197 } rotBkg;
199198
200199 struct : ConfigurableGroup {
201- ConfigurableAxis cfgPtAxis{" cfgPtAxis" , {VARIABLE_WIDTH , 0.1 , 0.2 , 0.3 , 0.4 , 0.5 , 0.6 , 0.7 , 0.8 , 0.9 , 1.0 , 1.1 , 1.2 , 1.3 , 1.4 , 1.5 , 1.6 , 1.8 , 2.0 , 2.2 , 2.4 , 2.8 , 3.2 , 3.6 , 4.0 , 5.0 , 7.0 , 10.0 }, " #it{p}_{T} (GeV/#it{c})" };
200+ // Fixed-width {nBins, min, max} or variable-width {VARIABLE_WIDTH, edge0, edge1, ...}; both can be set from the JSON config.
201+ ConfigurableAxis cfgPtAxis{" cfgPtAxis" , {50 , 0.0 , 12.0 }, " p_{T} (GeV/c)" };
202+ ConfigurableAxis cfgMassAxis{" cfgMassAxis" , {120 , 1.0 , 6.0 }, " M_{inv} (GeV/#it{c}^{2})" };
203+ ConfigurableAxis cfgMomentumAxis{" cfgMomentumAxis" , {50 , 0.0 , 12.0 }, " p (GeV/#it{c})" };
202204 ConfigurableAxis cfgCentAxis{" cfgCentAxis" , {VARIABLE_WIDTH , 0 .f , 10 .f , 20 .f , 30 .f , 40 .f , 50 .f , 60 .f , 70 .f , 80 .f , 90 .f , 100 .f }, " Centrality (%)" };
203205 ConfigurableAxis cfgVtxAxis{" cfgVtxAxis" , {VARIABLE_WIDTH , -12 .f , -10 .f , -9 .f , -8 .f , -7 .f , -6 .f , -5 .f , -4 .f , -3 .f , -2 .f , -1 .f , 0 .f , 1 .f , 2 .f , 3 .f , 4 .f , 5 .f , 6 .f , 7 .f , 8 .f , 9 .f , 10 .f , 12 .f }, " Vertex z [cm]" };
204206 ConfigurableAxis cfgRapAxis{" cfgRapAxis" , {20 , -1.0 , 1.0 }, " Rapidity y" };
@@ -253,15 +255,15 @@ struct DeltaAnalysis {
253255 mPionDCAPtEdges = dcaCuts.pionDCAPtBinEdges .value ;
254256 mPionMaxDCAxy = dcaCuts.pionMaxDCAxyPerPtBin .value ;
255257
256- const AxisSpec ptAxis{50 , 0 ., 12 . , " p_{T} (GeV/c)" };
257- const AxisSpec massAxis{trackCuts. numberOfInvMassBins , 1.0 , 6.0 , " M_{inv} (GeV/#it{c}^{2})" };
258+ const AxisSpec ptAxis{axes. cfgPtAxis , " p_{T} (GeV/c)" };
259+ const AxisSpec massAxis{axes. cfgMassAxis , " M_{inv} (GeV/#it{c}^{2})" };
258260 const AxisSpec centAxis{axes.cfgCentAxis , " Centrality (%)" };
259261 const AxisSpec vtxAxis{axes.cfgVtxAxis , " Vertex z [cm]" };
260262 const AxisSpec rapAxis{axes.cfgRapAxis , " Rapidity y" };
261263 const AxisSpec nSigmaTPCaxis{100 , -5 ., 5 ., " n#sigma^{TPC}" };
262264 const AxisSpec nSigmaTOFaxis{100 , -5 ., 5 ., " n#sigma^{TOF}" };
263- const AxisSpec momentumAxis{50 , 0 ., 12 . , " p (GeV/#it{c})" };
264- const AxisSpec ptForPIDAxis{50 , 0 ., 12 . , " p_{T} (GeV/#it{c})" };
265+ const AxisSpec momentumAxis{axes. cfgMomentumAxis , " p (GeV/#it{c})" };
266+ const AxisSpec ptForPIDAxis{axes. cfgPtAxis , " p_{T} (GeV/#it{c})" };
265267 const AxisSpec dcaXYaxis{200 , -0 .2f , 0 .2f , " DCA_{xy} (cm)" };
266268 const AxisSpec dcaZaxis{200 , -1 .2f , 1 .2f , " DCA_{z} (cm)" };
267269 const AxisSpec tpcClusAxis{200 , 0 , 200 , " N_{clusters}^{TPC}" };
0 commit comments