@@ -172,6 +172,7 @@ struct K0MixedEvents {
172172 Configurable<bool > isNoITSROFrameBorder{" evSelisNoITSROFrameBorder" , 1 , " Is No ITS Readout Frame Border" };
173173 Configurable<bool > isVertexTOFmatched{" evSelisVertexTOFmatched" , 0 , " Is Vertex TOF matched" };
174174 Configurable<bool > isGoodZvtxFT0vsPV{" evSelisGoodZvtxFT0vsPV" , 0 , " isGoodZvtxFT0vsPV" };
175+ Configurable<bool > isNoSameBunchPileup{" isNoSameBunchPileup" , 0 , " isNoSameBunchPileup" };
175176 Configurable<bool > isInelGt0{" evSelisInelGt0" , 0 , " isInelGt0" };
176177
177178 // Binnings
@@ -242,7 +243,7 @@ struct K0MixedEvents {
242243 const AxisSpec dcaZAxis{dcaXyBinning, " DCA_{z} (cm)" };
243244 const AxisSpec multPercentileAxis{multPercentileBinning, " Mult. Perc." };
244245
245- registry.add (" hNEvents" , " hNEvents" , {HistType::kTH1D , {{11 , 0 .f , 11 .f }}});
246+ registry.add (" hNEvents" , " hNEvents" , {HistType::kTH1D , {{14 , 0 .f , 14 .f }}});
246247 registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (1 , " all" );
247248 registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (2 , " sel8" );
248249 registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (3 , " TVX" );
@@ -251,8 +252,11 @@ struct K0MixedEvents {
251252 registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (6 , " ITSROFBorder" );
252253 registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (7 , " isTOFVertexMatched" );
253254 registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (8 , " isGoodZvtxFT0vsPV" );
254- registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (9 , " InelGT0" );
255- registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (10 , " Applied selection" );
255+ registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (9 , " isNoSameBunchPileup" );
256+ registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (10 , " InelGT0" );
257+ registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (11 , Form (" collision.centFT0M() < %f" , multPercentileCut.value .second ));
258+ registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (12 , Form (" collision.centFT0M() > %f" , multPercentileCut.value .first ));
259+ registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (13 , " Applied selection" );
256260
257261 registry.add (" Trks" , " Trks" , kTH1D , {{2 , 0.5 , 2.5 , " Tracks" }});
258262 registry.add (" VTXc" , " VTXc" , kTH1D , {{100 , -20 ., 20 ., " vtx" }});
@@ -484,16 +488,31 @@ struct K0MixedEvents {
484488 if (fill) {
485489 registry.fill (HIST (" hNEvents" ), 7.5 );
486490 }
487- if (isInelGt0 && !collision.isInelGt0 ( )) {
491+ if (isNoSameBunchPileup && !collision.selection_bit (aod::evsel:: kNoSameBunchPileup )) {
488492 return false ;
489493 }
490494 if (fill) {
491495 registry.fill (HIST (" hNEvents" ), 8.5 );
492496 }
497+ if (isInelGt0 && !collision.isInelGt0 ()) {
498+ return false ;
499+ }
500+ if (fill) {
501+ registry.fill (HIST (" hNEvents" ), 9.5 );
502+ }
493503 if (collision.centFT0M () > multPercentileCut.value .second )
494504 return false ;
505+ if (fill) {
506+ registry.fill (HIST (" hNEvents" ), 10.5 );
507+ }
495508 if (collision.centFT0M () < multPercentileCut.value .first )
496509 return false ;
510+ if (fill) {
511+ registry.fill (HIST (" hNEvents" ), 11.5 );
512+ }
513+ if (fill) {
514+ registry.fill (HIST (" hNEvents" ), 12.5 );
515+ }
497516 return true ;
498517 }
499518
@@ -507,7 +526,7 @@ struct K0MixedEvents {
507526 LOGF (fatal, " One of passed PDG is 0!!!" );
508527 }
509528 registry.fill (HIST (" Trks" ), 2 .f , tracks.size ());
510- for (auto collision : collisions) {
529+ for (const auto & collision : collisions) {
511530 LOG (debug) << " Collision index " << collision.globalIndex ();
512531 registry.fill (HIST (" VTXc" ), collision.posZ ());
513532 registry.fill (HIST (" multPerc" ), collision.multPerc ());
0 commit comments