@@ -227,13 +227,15 @@ struct EventSelectionQaTask {
227227 aod::FT0s const & ft0s,
228228 aod::FDDs const & fdds)
229229 {
230+ bool isINT1period = 0 ;
230231 if (!applySelection) {
231232 auto first_bc = bcs.iteratorAt (0 );
232233 EventSelectionParams* par = ccdb->getForTimeStamp <EventSelectionParams>(" EventSelection/EventSelectionParams" , first_bc.timestamp ());
233234 applySelection = par->GetSelection (0 );
234235 for (int i = 0 ; i < kNsel ; i++) {
235236 histos.get <TH1 >(HIST (" hSelMask" ))->SetBinContent (i + 1 , applySelection[i]);
236237 }
238+ isINT1period = first_bc.runNumber () <= 136377 || (first_bc.runNumber () >= 144871 && first_bc.runNumber () <= 159582 );
237239 }
238240
239241 // bc-based event selection qa
@@ -245,19 +247,24 @@ struct EventSelectionQaTask {
245247
246248 // collision-based event selection qa
247249 for (auto & col : cols) {
250+ auto selection = col.selection ();
251+ bool sel1 = selection[kIsINT1 ] & selection[kNoBGV0A ] & selection[kNoBGV0C ] & selection[kNoTPCLaserWarmUp ] & selection[kNoTPCHVdip ];
252+
248253 for (int iAlias = 0 ; iAlias < kNaliases ; iAlias++) {
249254 if (!col.alias ()[iAlias]) {
250255 continue ;
251256 }
252257 histos.fill (HIST (" hColCounterAll" ), iAlias, 1 );
253- if (! col.sel7 ()) {
254- continue ;
258+ if ((!isINT1period && col.sel7 ()) || (isINT1period && sel1 )) {
259+ histos. fill ( HIST ( " hColCounterAcc " ), iAlias, 1 ) ;
255260 }
256- histos.fill (HIST (" hColCounterAcc" ), iAlias, 1 );
257261 }
258262
263+ bool mb = isMC;
264+ mb |= !isINT1period && col.alias ()[kINT7 ];
265+ mb |= isINT1period && col.alias ()[kINT1 ];
259266 // further checks just on minimum bias triggers
260- if (!isMC && !col. alias ()[ kINT7 ] ) {
267+ if (!mb ) {
261268 continue ;
262269 }
263270 for (int i = 0 ; i < kNsel ; i++) {
@@ -354,7 +361,10 @@ struct EventSelectionQaTask {
354361 histos.fill (HIST (" hV0C012vsTklCol" ), nTracklets, multRingV0C012);
355362
356363 // filling plots for accepted events
357- if (!col.sel7 ()) {
364+ bool accepted = 0 ;
365+ accepted |= !isINT1period & col.sel7 ();
366+ accepted |= isINT1period & sel1;
367+ if (!accepted) {
358368 continue ;
359369 }
360370
0 commit comments