@@ -147,11 +147,13 @@ struct singleTrackSelector {
147147 ccdb->setLocalObjectValidityChecking ();
148148 ccdb->setFatalWhenNull (false );
149149
150- if (applySkimming) {
151- registry.add (" hNEvents" , " hNEvents" , {HistType::kTH1D , {{2 , 0 .f , 2 .f }}});
152- registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (1 , " All" );
153- registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (2 , " Skimmed" );
154- }
150+ registry.add (" hNEvents" , " hNEvents" , {HistType::kTH1D , {{2 , 0 .f , 2 .f }}});
151+ registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (1 , " All" );
152+ registry.get <TH1>(HIST (" hNEvents" ))->GetXaxis ()->SetBinLabel (2 , " Skimmed" );
153+
154+ registry.add (" hNTracks" , " hNTracks" , {HistType::kTH1D , {{2 , 0 .f , 2 .f }}});
155+ registry.get <TH1>(HIST (" hNTracks" ))->GetXaxis ()->SetBinLabel (1 , " All" );
156+ registry.get <TH1>(HIST (" hNTracks" ))->GetXaxis ()->SetBinLabel (2 , " Selected" );
155157
156158 if (enable_gen_info) {
157159 registry.add (" hNEvents_MCGen" , " hNEvents_MCGen" , {HistType::kTH1F , {{1 , 0 .f , 1 .f }}});
@@ -204,6 +206,7 @@ struct singleTrackSelector {
204206 bool skip_track = false ; // flag used for track rejection
205207
206208 for (auto & track : tracks) {
209+ registry.fill (HIST (" hNTracks" ), 0.5 );
207210 if constexpr (isMC) {
208211 if (!track.has_mcParticle ())
209212 continue ;
@@ -223,6 +226,7 @@ struct singleTrackSelector {
223226
224227 if (skip_track)
225228 continue ;
229+ registry.fill (HIST (" hNTracks" ), 1.5 );
226230
227231 for (auto ii : particlesToKeep)
228232 if (o2::aod::singletrackselector::TPCselection (track, std::make_pair (ii, keepWithinNsigmaTPC))) {
@@ -338,17 +342,16 @@ struct singleTrackSelector {
338342 aod::BCsWithTimestamps const &)
339343 {
340344
341- auto bc = collision.bc_as <aod::BCsWithTimestamps>();
345+ const auto & bc = collision.bc_as <aod::BCsWithTimestamps>();
342346 initCCDB (bc);
343347
348+ registry.fill (HIST (" hNEvents" ), 0.5 );
344349 if (applySkimming) {
345- registry.fill (HIST (" hNEvents" ), 0.5 );
346- bool zorroSelected = zorro.isSelected (bc.globalBC ());
347- if (!zorroSelected) {
350+ if (!zorro.isSelected (bc.globalBC ())) {
348351 return ;
349352 }
350- registry.fill (HIST (" hNEvents" ), 1.5 );
351353 }
354+ registry.fill (HIST (" hNEvents" ), 1.5 );
352355
353356 double hadronicRate = 0 .;
354357 if (fetchRate) {
0 commit comments