@@ -78,7 +78,8 @@ struct phianalysisrun3_PbPb {
7878 Configurable<float > nsigmaCutCombined{" nsigmaCutCombined" , 3.0 , " Value of the TOF Nsigma cut" };
7979 Configurable<int > cfgNoMixedEvents{" cfgNoMixedEvents" , 5 , " Number of mixed events per event" };
8080 Configurable<bool > fillOccupancy{" fillOccupancy" , true , " fill Occupancy" };
81- Configurable<int > cfgOccupancyCut{" cfgOccupancyCut" , 2500 , " Occupancy cut" };
81+ Configurable<int > cfgOccupancyCut1{" cfgOccupancyCut1" , 500 , " Occupancy cut" };
82+ Configurable<int > cfgOccupancyCut2{" cfgOccupancyCut2" , 1500 , " Occupancy cut" };
8283 Configurable<bool > isNoTOF{" isNoTOF" , false , " isNoTOF" };
8384 Configurable<bool > additionalEvSel2{" additionalEvSel2" , true , " Additional evsel2" };
8485 Configurable<bool > additionalEvSel3{" additionalEvSel3" , true , " Additional evsel3" };
@@ -98,12 +99,10 @@ struct phianalysisrun3_PbPb {
9899 Configurable<bool > avoidsplitrackMC{" avoidsplitrackMC" , false , " avoid split track in MC" };
99100 void init (o2::framework::InitContext&)
100101 {
101- std::vector<double > occupancyBinning = {0.0 , 500.0 , 1000.0 , 1500.0 , 2000.0 , 3000.0 , 4000.0 , 5000.0 , 50000.0 };
102- AxisSpec occupancyAxis = {occupancyBinning, " Occupancy" };
103102
104103 histos.add (" hCentrality" , " Centrality distribution" , kTH1F , {{200 , 0.0 , 200.0 }});
105104 histos.add (" hVtxZ" , " Vertex distribution in Z;Z (cm)" , kTH1F , {{400 , -20.0 , 20.0 }});
106- histos.add (" hOccupancy" , " Occupancy distribution" , kTH1F , {occupancyAxis });
105+ histos.add (" hOccupancy" , " Occupancy distribution" , kTH1F , {{ 500 , 0 , 50000 } });
107106 if (!isMC) {
108107 histos.add (" h3PhiInvMassUnlikeSign" , " Invariant mass of Phi meson Unlike Sign" , kTH3F , {{200 , 0.0 , 200.0 }, {200 , 0 .0f , 20 .0f }, {200 , 0.9 , 1.1 }});
109108 histos.add (" h3PhiInvMassMixed" , " Invariant mass of Phi meson Mixed" , kTH3F , {{200 , 0.0 , 200.0 }, {200 , 0 .0f , 20 .0f }, {200 , 0.9 , 1.1 }});
@@ -120,6 +119,7 @@ struct phianalysisrun3_PbPb {
120119 histos.add (" h1Phimassgen" , " Phi meson gen" , kTH1F , {{200 , 0.9 , 1.1 }});
121120 histos.add (" h1Phimassrec" , " Phi meson Rec" , kTH1F , {{200 , 0.9 , 1.1 }});
122121 histos.add (" h1Phipt" , " Phi meson Rec" , kTH1F , {{200 , 0 .0f , 20 .0f }});
122+ histos.add (" hOccupancy1" , " Occupancy distribution" , kTH1F , {{500 , 0 , 50000 }});
123123 }
124124
125125 // DCA QA
@@ -262,8 +262,7 @@ struct phianalysisrun3_PbPb {
262262 return ;
263263 }
264264 int occupancy = collision.trackOccupancyInTimeRange ();
265- if (fillOccupancy && occupancy > cfgOccupancyCut) // occupancy info is available for this collision (*)
266- {
265+ if (fillOccupancy && !(occupancy > cfgOccupancyCut1 && occupancy < cfgOccupancyCut2)) {
267266 return ;
268267 }
269268 float multiplicity{-1 };
@@ -344,8 +343,10 @@ struct phianalysisrun3_PbPb {
344343 }
345344 int occupancy1 = c1.trackOccupancyInTimeRange ();
346345 int occupancy2 = c2.trackOccupancyInTimeRange ();
347- if (fillOccupancy && occupancy1 > cfgOccupancyCut && occupancy2 > cfgOccupancyCut) // occupancy info is available for this collision (*)
348- {
346+ if (fillOccupancy && !(occupancy1 > cfgOccupancyCut1 && occupancy1 < cfgOccupancyCut2)) {
347+ return ;
348+ }
349+ if (fillOccupancy && !(occupancy2 > cfgOccupancyCut1 && occupancy2 < cfgOccupancyCut2)) {
349350 return ;
350351 }
351352 float multiplicity;
@@ -400,8 +401,7 @@ struct phianalysisrun3_PbPb {
400401 continue ;
401402 }
402403 int occupancy = RecCollision.trackOccupancyInTimeRange ();
403- if (fillOccupancy && occupancy > cfgOccupancyCut) // occupancy info is available for this collision (*)
404- {
404+ if (fillOccupancy && !(occupancy > cfgOccupancyCut1 && occupancy < cfgOccupancyCut2)) {
405405 return ;
406406 }
407407 if (TMath::Abs (RecCollision.posZ ()) > cfgCutVertex) {
@@ -582,10 +582,10 @@ struct phianalysisrun3_PbPb {
582582 continue ;
583583 }
584584 int occupancy = collision.trackOccupancyInTimeRange ();
585- if (fillOccupancy && occupancy > cfgOccupancyCut) // occupancy info is available for this collision (*)
586- {
587- continue ;
585+ if (fillOccupancy && !(occupancy > cfgOccupancyCut1 && occupancy < cfgOccupancyCut2)) {
586+ return ;
588587 }
588+ histos.fill (HIST (" hOccupancy1" ), occupancy);
589589 multiplicity = collision.centFT0C ();
590590 histos.fill (HIST (" Centgen" ), multiplicity);
591591 SelectedEvents[nevts++] = collision.mcCollision_as <aod::McCollisions>().globalIndex ();
@@ -636,8 +636,7 @@ struct phianalysisrun3_PbPb {
636636 return ;
637637 }
638638 int occupancy = collision.trackOccupancyInTimeRange ();
639- if (fillOccupancy && occupancy > cfgOccupancyCut) // occupancy info is available for this collision (*)
640- {
639+ if (fillOccupancy && !(occupancy > cfgOccupancyCut1 && occupancy < cfgOccupancyCut2)) {
641640 return ;
642641 }
643642 auto multiplicity = collision.centFT0C ();
0 commit comments