@@ -132,10 +132,7 @@ struct OnTheFlyTofPid {
132132 static constexpr int kParticles = 5 ;
133133
134134 void init (o2::framework::InitContext&)
135- {
136- std::string particleNames[kParticles ] = {" #it{e}" , " #it{#mu}" , " #it{#pi}" , " #it{K}" , " #it{p}" };
137- std::string particleNames2[kParticles ] = {" Elec" , " Muon" , " Pion" , " Kaon" , " Prot" };
138-
135+ {
139136 pRandomNumberGenerator.SetSeed (0 ); // fully randomize
140137
141138 // Load LUT for pt and eta smearing
@@ -199,6 +196,8 @@ struct OnTheFlyTofPid {
199196 histos.add (" h2dRelativePtResolution" , " h2dRelativePtResolution" , kTH2F , {axisPt, axisRelativePt});
200197 histos.add (" h2dRelativeEtaResolution" , " h2dRelativeEtaResolution" , kTH2F , {axisEta, axisRelativeEta});
201198
199+ std::string particleNames[kParticles ] = {" #it{e}" , " #it{#mu}" , " #it{#pi}" , " #it{K}" , " #it{p}" };
200+ std::string particleNames2[kParticles ] = {" Elec" , " Muon" , " Pion" , " Kaon" , " Prot" };
202201 for (int i_true = 0 ; i_true < kParticles ; i_true++) {
203202 std::string nameTitleInnerTrackRes = " h2dInnerTimeResTrack" + particleNames2[i_true] + " VsP" ;
204203 std::string nameTitleTotalRes = " h2dInnerTimeResTotal" + particleNames2[i_true] + " VsP" ;
0 commit comments