@@ -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::kTH1I , {{11 , 0 .f , 11 .f }}});
246+ registry.add (" hNEvents" , " hNEvents" , {HistType::kTH1I , {{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" }});
@@ -435,6 +439,7 @@ struct K0MixedEvents {
435439 return true ;
436440 }
437441
442+ // Event selection
438443 // Event selection
439444 template <typename TCollision>
440445 bool acceptEvent (TCollision const & collision, bool fill = true )
@@ -484,16 +489,31 @@ struct K0MixedEvents {
484489 if (fill) {
485490 registry.fill (HIST (" hNEvents" ), 7.5 );
486491 }
487- if (isInelGt0 && !collision.isInelGt0 ( )) {
492+ if (isNoSameBunchPileup && !collision.selection_bit (aod::evsel:: kNoSameBunchPileup )) {
488493 return false ;
489494 }
490495 if (fill) {
491496 registry.fill (HIST (" hNEvents" ), 8.5 );
492497 }
498+ if (isInelGt0 && !collision.isInelGt0 ()) {
499+ return false ;
500+ }
501+ if (fill) {
502+ registry.fill (HIST (" hNEvents" ), 9.5 );
503+ }
493504 if (collision.centFT0M () > multPercentileCut.value .second )
494505 return false ;
506+ if (fill) {
507+ registry.fill (HIST (" hNEvents" ), 10.5 );
508+ }
495509 if (collision.centFT0M () < multPercentileCut.value .first )
496510 return false ;
511+ if (fill) {
512+ registry.fill (HIST (" hNEvents" ), 11.5 );
513+ }
514+ if (fill) {
515+ registry.fill (HIST (" hNEvents" ), 12.5 );
516+ }
497517 return true ;
498518 }
499519
0 commit comments