@@ -154,13 +154,6 @@ struct LongrangeCorrelation {
154154 LOGF (info, " Offset for FV0-left: x = %.3f y = %.3f\n " , (*offsetFV0)[0 ].getX (), (*offsetFV0)[0 ].getY ());
155155 LOGF (info, " Offset for FV0-right: x = %.3f y = %.3f\n " , (*offsetFV0)[1 ].getX (), (*offsetFV0)[1 ].getY ());
156156
157- auto hstat = histos.get <TH1>(HIST (" QA/EventHist" ));
158- auto * x = hstat->GetXaxis ();
159- x->SetBinLabel (1 , " All events" );
160- x->SetBinLabel (2 , " sel8" );
161- x->SetBinLabel (3 , " kNoSameBunchPileup" ); // reject collisions in case of pileup with another collision in the same foundBC
162- x->SetBinLabel (4 , " |vz|<10" );
163-
164157 std::vector<AxisSpec> corrAxis = {{axisSample, " Sample" },
165158 {axisVtxZ, " z-vtx (cm)" },
166159 {axisPtTrigger, " p_{T} (GeV/c)" },
@@ -176,6 +169,13 @@ struct LongrangeCorrelation {
176169 if (doprocessEventStat) {
177170 histos.add (" QA/EventHist" , " events" , kTH1F , {axisEvent}, false );
178171 histos.add (" QA/VtxZHist" , " v_{z} (cm)" , kTH1F , {axisVtxZ}, false );
172+
173+ auto hstat = histos.get <TH1>(HIST (" QA/EventHist" ));
174+ auto * x = hstat->GetXaxis ();
175+ x->SetBinLabel (1 , " All events" );
176+ x->SetBinLabel (2 , " sel8" );
177+ x->SetBinLabel (3 , " kNoSameBunchPileup" ); // reject collisions in case of pileup with another collision in the same foundBC
178+ x->SetBinLabel (4 , " |vz|<10" );
179179 }
180180
181181 histos.add (" Ft0aGlobal/SE/hMult" , " " , kTH1D , {axisMultiplicity});
0 commit comments