@@ -1202,20 +1202,49 @@ struct ExclusiveRhoTo4Pi {
12021202 return -1 ; // Not found
12031203 } // End of getRunNumberIndex function
12041204
1205+ std::string strFormat (double value, int precision = 2 )
1206+ {
1207+ std::ostringstream oss;
1208+ oss << std::fixed << std::setprecision (precision) << value;
1209+ return oss.str ();
1210+ }
1211+
12051212 void setHistBinLabels ()
12061213 {
12071214
12081215 std::string eventLabels[13 ] = {
1209- " No Cuts" , " isCBTHadronOk" , " UPC or STD" , " vtxITSTPC=" + std::to_string (vtxITSTPCcut), " sbp=" + std::to_string (sbpCut), " itsROFb=" + std::to_string (itsROFbCut), " tfb=" + std::to_string (tfbCut),
1210- " FT0A<=" + std::to_string (fv0Cut), " FT0C<=" + std::to_string (ft0cCut), " FV0A<=" + std::to_string (ft0aCut), " ZDC <=0" ,
1211- " n PV Contrib = 4" , " V_{z} < cm" + std::to_string (vZCut) + " cm" };
1216+ " No Cuts" ,
1217+ " isCBTHadronOk" ,
1218+ " UPC or STD" ,
1219+ " vtxITSTPC=" + strFormat (vtxITSTPCcut, 0 ),
1220+ " sbp=" + strFormat (sbpCut, 0 ),
1221+ " itsROFb=" + strFormat (itsROFbCut, 0 ),
1222+ " tfb=" + strFormat (tfbCut, 0 ),
1223+ " FT0A<=" + strFormat (fv0Cut),
1224+ " FT0C<=" + strFormat (ft0cCut),
1225+ " FV0A<=" + strFormat (ft0aCut),
1226+ " ZDC" ,
1227+ " n PV Contrib = 4" ,
1228+ " V_{z} < " + strFormat (vZCut) + " cm" };
12121229
12131230 int numEventCuts = 13 ;
12141231
12151232 std::string trackLabels[14 ] = {
1216- " No Cuts" , " isPVContributor" , " pT>" + std::to_string (pTcut) + " GeV/c" , " |#eta|<" + std::to_string (etaCut), " DCA Z<" + std::to_string (dcaZcut) + " cm" ,
1217- " DCA XY cut" , " hasITS" , " hasTPC" , " itsChi2NCl<" + std::to_string (itsChi2NClsCut), " tpcChi2NCl<" + std::to_string (tpcChi2NClsCut),
1218- " tpcNClsFindable>" + std::to_string (tpcNClsFindableCut), " #pi tracks" , " #pi^{+} tracks" , " #pi^{-} tracks" };
1233+ " No Cuts" ,
1234+ " isPVContributor" ,
1235+ " pT>" + strFormat (pTcut) + " GeV/c" ,
1236+ " |#eta|<" + strFormat (etaCut),
1237+ " DCA Z<" + strFormat (dcaZcut) + " cm" ,
1238+ " DCA XY cut" ,
1239+ " hasITS" ,
1240+ " hasTPC" ,
1241+ " itsChi2NCl<" + strFormat (itsChi2NClsCut),
1242+ " tpcChi2NCl<" + strFormat (tpcChi2NClsCut),
1243+ " tpcNClsFindable>" + strFormat (tpcNClsFindableCut),
1244+ " #pi tracks" ,
1245+ " #pi^{+} tracks" ,
1246+ " #pi^{-} tracks" };
1247+
12191248 int numTrackCuts = 14 ;
12201249
12211250 auto h1 = histosCounter.get <TH2>(HIST (" EventsCounts_vs_runNo" ));
0 commit comments