Skip to content

Commit 5d24d62

Browse files
authored
Centrality bins updated as configurable. (#6668)
1 parent 34d3bcf commit 5d24d62

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

PWGMM/Mult/Tasks/dndeta-hi.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ AxisSpec EvtClassAxis = {kECend - 1, +kECbegin + 0.5, +kECend - 0.5, "", "event
155155
AxisSpec TrigClassAxis = {kTrigend - 1, +kTrigbegin + 0.5, +kTrigend - 0.5, "", "trigger class"};
156156
AxisSpec ParticleTypeAxis = {kParTypeend - 1, +kParTypebegin + 0.5, +kParTypeend - 0.5, "", "Particle type"};
157157
std::vector<double> centBinningPbPb = {0, 1, 2, 3, 4, 5, 10, 20, 30, 40, 50, 60, 70, 80, 100};
158-
std::vector<double> centBinning = {0., 0.01, 0.1, 1.0, 5.0, 10., 15, 20., 25, 30., 35., 40., 45., 50., 70., 100.0};
159-
AxisSpec CentAxis = {centBinning, "", "centrality"};
160-
AxisSpec CentAxisPbPb = {centBinningPbPb, "", "centrality"};
161158
AxisSpec SpeciesAxis = {kSpeciesend - 1, +kSpeciesbegin + 0.5, +kSpeciesend - 0.5, "", "species class"};
162159
AxisSpec MassAxis = {600, 0.3f, 1.3f, "Mass (GeV/c^{2})", "Inv. Mass (GeV/c^{2})"};
163160
AxisSpec SignAxis = {kSignend - 1, +kSignbegin + 0.5, +kSignend - 0.5, "", "sign"};
@@ -199,6 +196,7 @@ struct MultiplicityCounter {
199196
Configurable<float> v0radius{"v0radius", 0.5, "Radius"};
200197
Configurable<float> etadau{"etadau", 4, "Eta Daughters"};
201198
Configurable<float> rapidity{"v0rapidity", 0.5, "V0 rapidity"};
199+
ConfigurableAxis centBinning{"centrality", {VARIABLE_WIDTH, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 24, 26, 28, 30, 35, 40, 45, 50, 60, 70, 80, 90, 100}, ""};
202200

203201
// Configurable<bool> mftanalysis{"mftanalysis", false, "mft analysis switch"};
204202
Configurable<bool> zvtxcut{"zvtxcut", false, "z vtx cut < 10cm"};
@@ -212,6 +210,9 @@ struct MultiplicityCounter {
212210
std::vector<int> usedTracksIds;
213211
void init(InitContext&)
214212
{
213+
214+
AxisSpec CentAxis = {centBinning, "", "centrality"};
215+
AxisSpec CentAxisPbPb = {centBinningPbPb, "", "centrality"};
215216
registry.add({"hetaresponse", ";etaresponse", {HistType::kTH2D, {{80, -4, 4}, {80, -4, 4}}}});
216217
registry.add({"hft0multiplicity", ";multiplicity", {HistType::kTH1D, {{10000, 0, 100000}}}});
217218
registry.add({"hcentrality", IsPbPb ? " ; centrality_FT0C (%) " : "; centrality_FT0M", {HistType::kTH1F, {{10000, 0, 100}}}});

0 commit comments

Comments
 (0)