@@ -127,7 +127,7 @@ struct StrangenessInJetsIons {
127127 Configurable<double > deltaEtaEdge{" deltaEtaEdge" , 0.05 , " eta gap from detector edge" };
128128 Configurable<bool > cfgSkimmedProcessing{" cfgSkimmedProcessing" , false , " Enable processing of skimmed data" };
129129 Configurable<std::string> triggerName{" triggerName" , " fOmega" , " Software trigger name" };
130- Configurable<std::string > centrEstimator{" centrEstimator" , " FT0C " , " Select centrality estimator. Options: FT0C, FT0M" };
130+ Configurable<int > centrEstimator{" centrEstimator" , 0 , " Select centrality estimator. Options: 0 = FT0C, 1 = FT0M" };
131131
132132 // Event selection
133133 Configurable<bool > requireNoSameBunchPileup{" requireNoSameBunchPileup" , true , " Require kNoSameBunchPileup selection" };
@@ -212,13 +212,12 @@ struct StrangenessInJetsIons {
212212
213213 // Define binning and axis specifications for multiplicity, eta, pT, PID, and invariant mass histograms
214214 std::string multAxTitle;
215- std::string centrEstimatorStr = static_cast <std::string>(centrEstimator);
216- if (centrEstimatorStr == " FT0C" ) {
215+ if (centrEstimator == 0 ) {
217216 multAxTitle = " FT0C percentile" ;
218- } else if (centrEstimatorStr == " FT0M " ) {
217+ } else if (centrEstimator == 1 ) {
219218 multAxTitle = " FT0M percentile" ;
220219 } else {
221- LOG (fatal) << " Centrality estimator " << centrEstimatorStr << " not available. Exit." << endl;
220+ LOG (fatal) << " Centrality estimator " << centrEstimator << " not available. Exit." << endl;
222221 }
223222 AxisSpec multAxis = {multBinning, multAxTitle};
224223
@@ -1158,7 +1157,7 @@ struct StrangenessInJetsIons {
11581157
11591158 // Event multiplicity
11601159 float multiplicity;
1161- if (static_cast <std::string>( centrEstimator) == " FT0C " ) {
1160+ if (centrEstimator == 0 ) {
11621161 multiplicity = collision.centFT0C ();
11631162 } else {
11641163 multiplicity = collision.centFT0M ();
@@ -1373,7 +1372,7 @@ struct StrangenessInJetsIons {
13731372 if (!selectRecoEvent (recoColl))
13741373 continue ;
13751374
1376- if (static_cast <std::string>( centrEstimator) == " FT0C " ) {
1375+ if (centrEstimator == 0 ) {
13771376 multiplicity = recoColl.centFT0C ();
13781377 } else {
13791378 multiplicity = recoColl.centFT0M ();
@@ -1695,7 +1694,7 @@ struct StrangenessInJetsIons {
16951694
16961695 // Event multiplicity
16971696 float multiplicity;
1698- if (static_cast <std::string>( centrEstimator) == " FT0C " ) {
1697+ if (centrEstimator == 0 ) {
16991698 multiplicity = collision.centFT0C ();
17001699 } else {
17011700 multiplicity = collision.centFT0M ();
0 commit comments