@@ -112,13 +112,15 @@ struct JetSpectraCharged {
112112 if (doprocessCollisions || doprocessCollisionsWeighted) {
113113 registry.add (" h_collisions" , " number of events;event status;entries" , {HistType::kTH1F , {{4 , 0.0 , 4.0 }}});
114114 registry.get <TH1>(HIST (" h_collisions" ))->GetXaxis ()->SetBinLabel (1 , " allColl" );
115- registry.get <TH1>(HIST (" h_collisions" ))->GetXaxis ()->SetBinLabel (2 , " centralitycut" );
116- registry.get <TH1>(HIST (" h_collisions" ))->GetXaxis ()->SetBinLabel (3 , " occupancycut" );
115+ registry.get <TH1>(HIST (" h_collisions" ))->GetXaxis ()->SetBinLabel (2 , " qualitySel" );
116+ registry.get <TH1>(HIST (" h_collisions" ))->GetXaxis ()->SetBinLabel (3 , " centralitycut" );
117+ registry.get <TH1>(HIST (" h_collisions" ))->GetXaxis ()->SetBinLabel (4 , " occupancycut" );
117118 if (doprocessCollisionsWeighted) {
118119 registry.add (" h_collisions_weighted" , " number of events;event status;entries" , {HistType::kTH1F , {{4 , 0.0 , 4.0 }}});
119120 registry.get <TH1>(HIST (" h_collisions_weighted" ))->GetXaxis ()->SetBinLabel (1 , " allColl" );
120- registry.get <TH1>(HIST (" h_collisions_weighted" ))->GetXaxis ()->SetBinLabel (2 , " centralitycut" );
121- registry.get <TH1>(HIST (" h_collisions_weighted" ))->GetXaxis ()->SetBinLabel (3 , " occupancycut" );
121+ registry.get <TH1>(HIST (" h_collisions_weighted" ))->GetXaxis ()->SetBinLabel (2 , " qualitySel" );
122+ registry.get <TH1>(HIST (" h_collisions_weighted" ))->GetXaxis ()->SetBinLabel (3 , " centralitycut" );
123+ registry.get <TH1>(HIST (" h_collisions_weighted" ))->GetXaxis ()->SetBinLabel (4 , " occupancycut" );
122124 if (doprocessSpectraMCDWeighted) {
123125 registry.add (" h_coll_phat" , " collision #hat{p};#hat{p} (GeV/#it{c});entries" , {HistType::kTH1F , {{1000 , 0 , 1000 }}});
124126 registry.add (" h_coll_phat_weighted" , " collision #hat{p};#hat{p} (GeV/#it{c});entries" , {HistType::kTH1F , {{1000 , 0 , 1000 }}});
@@ -263,13 +265,13 @@ struct JetSpectraCharged {
263265 template <typename TTracks, typename TJets>
264266 bool isAcceptedJet (TJets const & jet, bool mcLevelIsParticleLevel = false )
265267 {
266- if (jetAreaFractionMin > - configSwitchLow) {
268+ if (jetAreaFractionMin > configSwitchLow) {
267269 if (jet.area () < jetAreaFractionMin * o2::constants::math::PI * (jet.r () / 100.0 ) * (jet.r () / 100.0 )) {
268270 return false ;
269271 }
270272 }
271273 bool checkConstituentPt = true ;
272- bool checkConstituentMinPt = (leadingConstituentPtMin > - configSwitchLow);
274+ bool checkConstituentMinPt = (leadingConstituentPtMin > configSwitchLow);
273275 bool checkConstituentMaxPt = (leadingConstituentPtMax < configSwitchHigh);
274276 if (!checkConstituentMinPt && !checkConstituentMaxPt) {
275277 checkConstituentPt = false ;
@@ -400,17 +402,14 @@ struct JetSpectraCharged {
400402 float centrality = -1.0 ;
401403 checkCentFT0M ? centrality = collision.centFT0M () : centrality = collision.centFT0C ();
402404
403- if (!jetderiveddatautilities::selectCollision (collision, eventSelectionBits, skipMBGapEvents)) {
404- return false ;
405- }
406405 if (fillHistograms) {
407406 registry.fill (HIST (" h_collisions" ), 0.5 );
408407 registry.fill (HIST (" h2_centrality_collisions" ), centrality, 0.5 , eventWeight);
409408 if (isWeighted)
410409 registry.fill (HIST (" h_collisions_weighted" ), 0.5 , eventWeight);
411410 }
412411
413- if (centrality < centralityMin || centralityMax < centrality ) {
412+ if (! jetderiveddatautilities::selectCollision (collision, eventSelectionBits, skipMBGapEvents) ) {
414413 return false ;
415414 }
416415 if (fillHistograms) {
@@ -420,7 +419,7 @@ struct JetSpectraCharged {
420419 registry.fill (HIST (" h_collisions_weighted" ), 1.5 , eventWeight);
421420 }
422421
423- if (collision. trackOccupancyInTimeRange () < trackOccupancyInTimeRangeMin || trackOccupancyInTimeRangeMax < collision. trackOccupancyInTimeRange () ) {
422+ if (centrality < centralityMin || centralityMax < centrality ) {
424423 return false ;
425424 }
426425 if (fillHistograms) {
@@ -430,6 +429,16 @@ struct JetSpectraCharged {
430429 registry.fill (HIST (" h_collisions_weighted" ), 2.5 , eventWeight);
431430 }
432431
432+ if (collision.trackOccupancyInTimeRange () < trackOccupancyInTimeRangeMin || trackOccupancyInTimeRangeMax < collision.trackOccupancyInTimeRange ()) {
433+ return false ;
434+ }
435+ if (fillHistograms) {
436+ registry.fill (HIST (" h_collisions" ), 3.5 );
437+ registry.fill (HIST (" h2_centrality_collisions" ), centrality, 3.5 , eventWeight);
438+ if (isWeighted)
439+ registry.fill (HIST (" h_collisions_weighted" ), 3.5 , eventWeight);
440+ }
441+
433442 return true ;
434443 }
435444
0 commit comments