@@ -43,8 +43,6 @@ inline auto collisionSelector(C const& collision)
4343
4444using namespace o2 ::framework;
4545
46- std::vector<double > defaultBinning = {0 ., 0.01 , 0.1 , 0.5 , 1 , 5 , 10 , 15 , 20 , 30 , 40 , 50 , 70 , 100 };
47-
4846template <uint8_t TRACKTYPE >
4947struct PseudorapidityDensity {
5048 Service<TDatabasePDG> pdg;
@@ -54,7 +52,9 @@ struct PseudorapidityDensity {
5452 Configurable<float > vtxZMax{" vtxZMax" , 15 , " max z vertex" };
5553 Configurable<float > vtxZMin{" vtxZMin" , -15 , " min z vertex" };
5654
57- Configurable<std::vector<double >> percentileBinning{" pBins" , std::move (defaultBinning), " Centrality/multiplicity percentile binning" };
55+ ConfigurableAxis percentileBinning{" pBins" ,
56+ {VARIABLE_WIDTH , 0 ., 0.01 , 0.1 , 0.5 , 1 , 5 , 10 , 15 , 20 , 30 , 40 , 50 , 70 , 100 },
57+ " Centrality/multiplicity percentile binning" };
5858
5959 HistogramRegistry registry{
6060 " registry" ,
@@ -85,12 +85,10 @@ struct PseudorapidityDensity {
8585 x->SetBinLabel (3 , " Selected" );
8686
8787 if (doprocessBinned) {
88- auto bins = (std::vector<double >)percentileBinning;
89- AxisSpec pAxis = {bins, " Percentile (%)" };
90- registry.add ({" EventsNtrkZvtxBin" , " ; N_{trk}; Z_{vtx}; Percentile" , {HistType::kTH3F , {{301 , -0.5 , 300.5 }, {201 , -20.1 , 20.1 }, pAxis}}});
91- registry.add ({" TracksEtaZvtxBin" , " ; #eta; Z_{vtx}; Percentile" , {HistType::kTH3F , {{21 , -2.1 , 2.1 }, {201 , -20.1 , 20.1 }, pAxis}}});
92- registry.add ({" TracksPhiEtaBin" , " ; #varphi; #eta; Percentile" , {HistType::kTH3F , {{600 , 0 , 2 * M_PI }, {21 , -2.1 , 2.1 }, pAxis}}});
93- registry.add ({" EventSelectionBin" , " ; status; Percentile; events" , {HistType::kTH2F , {{3 , 0.5 , 3.5 }, pAxis}}});
88+ registry.add ({" EventsNtrkZvtxBin" , " ; N_{trk}; Z_{vtx}; Percentile" , {HistType::kTH3F , {{301 , -0.5 , 300.5 }, {201 , -20.1 , 20.1 }, percentileBinning}}});
89+ registry.add ({" TracksEtaZvtxBin" , " ; #eta; Z_{vtx}; Percentile" , {HistType::kTH3F , {{21 , -2.1 , 2.1 }, {201 , -20.1 , 20.1 }, percentileBinning}}});
90+ registry.add ({" TracksPhiEtaBin" , " ; #varphi; #eta; Percentile" , {HistType::kTH3F , {{600 , 0 , 2 * M_PI }, {21 , -2.1 , 2.1 }, percentileBinning}}});
91+ registry.add ({" EventSelectionBin" , " ; status; Percentile; events" , {HistType::kTH2F , {{3 , 0.5 , 3.5 }, percentileBinning}}});
9492
9593 hstat = registry.get <TH2 >(HIST (" EventSelectionBin" ));
9694 x = hstat->GetXaxis ();
0 commit comments