@@ -351,6 +351,19 @@ struct sigmaanalysis {
351351 histos.get <TH1 >(HIST (" hEventSelection" ))->GetXaxis ()->SetBinLabel (19 , " Below min IR" );
352352 histos.get <TH1 >(HIST (" hEventSelection" ))->GetXaxis ()->SetBinLabel (20 , " Above max IR" );
353353
354+ //
355+ if (doprocessAnalysedCollisions) {
356+ histos.add (" hEventPreSelection" , " hEventPreSelection" , kTH1D , {{8 , -0 .5f , +7 .5f }});
357+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->GetXaxis ()->SetBinLabel (1 , " All collisions" );
358+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->GetXaxis ()->SetBinLabel (2 , " kIsTriggerTVX" );
359+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->GetXaxis ()->SetBinLabel (3 , " kNoITSROFrameBorder" );
360+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->GetXaxis ()->SetBinLabel (4 , " kNoTimeFrameBorder" );
361+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->GetXaxis ()->SetBinLabel (5 , " posZ cut" );
362+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->GetXaxis ()->SetBinLabel (6 , " kNoSameBunchPileup" );
363+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->GetXaxis ()->SetBinLabel (7 , " RCT flags" );
364+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->GetXaxis ()->SetBinLabel (8 , " Preselected collisions" );
365+ }
366+
354367 if (fGetIR ) {
355368 histos.add (" GeneralQA/hRunNumberNegativeIR" , " " , kTH1D , {{1 , 0 ., 1 .}});
356369 histos.add (" GeneralQA/hInteractionRate" , " hInteractionRate" , kTH1D , {axisIRBinning});
@@ -1873,6 +1886,23 @@ struct sigmaanalysis {
18731886 }
18741887 }
18751888
1889+ // ______________________________________________________
1890+ // Simulated processing in Run 2 (subscribes to MC information too)
1891+ void processAnalysedCollisions (aod::StraSelections const & straSelections)
1892+ {
1893+ for (auto const & straSelection : straSelections) {
1894+ // Event selection criteria
1895+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->AddBinContent (1 , straSelection.totalNbrOfCollisions () /* all collisions */ );
1896+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->AddBinContent (2 , straSelection.totalIsTriggerTVXCollisions () /* preselected IsTriggerTVX collisions */ );
1897+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->AddBinContent (3 , straSelection.totalNoITSROFBorderCollisions () /* + preselected NoITSROF collisions */ );
1898+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->AddBinContent (4 , straSelection.totalNoTFBorderCollisions () /* + preselected NoTF collisions */ );
1899+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->AddBinContent (5 , straSelection.totalIsGoodZvtxCollisions () /* + preselected |Zvtx| < X cm collisions */ );
1900+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->AddBinContent (6 , straSelection.totalNoSBPileupCollisions () /* + preselected NoSameBunchPileup collisions */ );
1901+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->AddBinContent (7 , straSelection.totalIsGoodRCTCollisions () /* + preselected Good RCT collisions */ );
1902+ histos.get <TH1 >(HIST (" hEventPreSelection" ))->AddBinContent (8 , straSelection.totalNbrOfSelCollisions () /* total number of preselected collisions */ );
1903+ }
1904+ }
1905+
18761906 void processRealData (soa::Join<aod::StraCollisions, aod::StraCents, aod::StraEvSels, aod::StraEvSelExtras, aod::StraStamps> const & collisions, Sigma0s const & fullSigma0s)
18771907 {
18781908 analyzeRecoeSigma0s (collisions, fullSigma0s);
@@ -1925,6 +1955,7 @@ struct sigmaanalysis {
19251955 PROCESS_SWITCH (sigmaanalysis, processPi0RealData, " Do real data analysis for pi0 QA" , false );
19261956 PROCESS_SWITCH (sigmaanalysis, processPi0MonteCarlo, " Do Monte-Carlo-based analysis for pi0 QA" , false );
19271957 PROCESS_SWITCH (sigmaanalysis, processPi0GeneratedRun3, " process MC generated Run 3 for pi0 QA" , false );
1958+ PROCESS_SWITCH (sigmaanalysis, processAnalysedCollisions, " process filtered events for bookkeeping" , false );
19281959};
19291960
19301961WorkflowSpec defineDataProcessing (ConfigContext const & cfgc)
0 commit comments