@@ -84,6 +84,7 @@ struct CorrFit {
8484 O2_DEFINE_CONFIGURABLE (cfgMaxMultForCorrelations, int , 20 , " maximum multiplicity for correlations" )
8585 O2_DEFINE_CONFIGURABLE (cfgRefMultiplicity, bool , false , " Use multiplicity of reference tracks for multiplicity correlation cut instead of Nch" )
8686 Configurable<std::vector<int >> cfgRunRemoveList{" cfgRunRemoveList" , std::vector<int >{-1 }, " excluded run numbers" };
87+ O2_DEFINE_CONFIGURABLE (cfgEvSelRCTflags, std::string, " " , " keep empty to disable, usage: 'CentralBarrelTracking (CBT)', 'CBT_hadronPID' " )
8788
8889 struct : ConfigurableGroup{
8990 O2_DEFINE_CONFIGURABLE (cfgPtCutMin, float , 0 .2f , " minimum accepted track pT" )
@@ -502,6 +503,10 @@ struct CorrFit {
502503 mixedTPC.setObject (new CorrelationContainer (" mixedEvent_TPC" , " mixedEvent_TPC" , corrAxisTPC, effAxis, userAxis));
503504 }
504505
506+ if (!cfgEvSelRCTflags.value .empty ()) {
507+ rctChecker.init (cfgEvSelRCTflags.value .c_str ()); // override initialzation
508+ }
509+
505510 LOGF (info, " End of init" );
506511 }
507512
@@ -1193,14 +1198,12 @@ struct CorrFit {
11931198 if (system == SameEvent) {
11941199 if (corType == kFT0A ) {
11951200 if (cfgQaCheck) {
1196- registry.fill (HIST (" Nch" ), multiplicity);
11971201 registry.fill (HIST (" Assoc_amp_same_TPC_FT0A" ), chanelid, ampl);
11981202 registry.fill (HIST (" deltaEta_deltaPhi_same_TPC_FT0A" ), deltaPhi, deltaEta, ampl * eventWeight * triggerWeight);
11991203 }
12001204 sameTpcFt0a->getPairHist ()->Fill (step, fSampleIndex , posZ, track1.pt (), multiplicity, deltaPhi, deltaEta, ampl * eventWeight * triggerWeight);
12011205 } else if (corType == kFT0C ) {
12021206 if (cfgQaCheck) {
1203- registry.fill (HIST (" Nch" ), multiplicity);
12041207 registry.fill (HIST (" Assoc_amp_same_TPC_FT0C" ), chanelid, ampl);
12051208 registry.fill (HIST (" deltaEta_deltaPhi_same_TPC_FT0C" ), deltaPhi, deltaEta, ampl * eventWeight * triggerWeight);
12061209 }
@@ -1230,9 +1233,6 @@ struct CorrFit {
12301233 {
12311234 int fSampleIndex = gRandom ->Uniform (0 , cfgSampleSize);
12321235
1233- if (cfgQaCheck) {
1234- registry.fill (HIST (" Nch" ), multiplicity);
1235- }
12361236 float triggerWeight = 1 .0f ;
12371237 std::size_t channelASize = ft0Col1.channelA ().size ();
12381238 std::size_t channelCSize = ft0Col2.channelC ().size ();
@@ -1417,6 +1417,10 @@ struct CorrFit {
14171417
14181418 double multiplicity = tracks.size ();
14191419
1420+ if (cfgQaCheck) {
1421+ registry.fill (HIST (" Nch" ), multiplicity);
1422+ }
1423+
14201424 if (cfgStrictTrackCounter) {
14211425 trackCounter (tracks, multiplicity);
14221426 }
@@ -1472,7 +1476,7 @@ struct CorrFit {
14721476 int currentRunNumber = bc.runNumber ();
14731477 if (!cfgRunRemoveList.value .empty ()) {
14741478 if (!isGoodRun (currentRunNumber)) // Rejects runs if bad run number
1475- return ;
1479+ continue ;
14761480 }
14771481
14781482 loadAlignParam (bc.timestamp ());
@@ -1486,7 +1490,7 @@ struct CorrFit {
14861490 }
14871491
14881492 if (multiplicity > cfgMaxMultForCorrelations || multiplicity < cfgMinMultForCorrelations) {
1489- return ;
1493+ continue ;
14901494 }
14911495
14921496 const auto & ft0 = collision2.foundFT0 ();
@@ -1531,6 +1535,10 @@ struct CorrFit {
15311535
15321536 double multiplicity = tracks.size ();
15331537
1538+ if (cfgQaCheck) {
1539+ registry.fill (HIST (" Nch" ), multiplicity);
1540+ }
1541+
15341542 if (cfgStrictTrackCounter) {
15351543 trackCounter (tracks, multiplicity);
15361544 }
@@ -1584,7 +1592,7 @@ struct CorrFit {
15841592 int currentRunNumber = bc.runNumber ();
15851593 if (!cfgRunRemoveList.value .empty ()) {
15861594 if (!isGoodRun (currentRunNumber)) // Rejects runs if bad run number
1587- return ;
1595+ continue ;
15881596 }
15891597 loadAlignParam (bc.timestamp ());
15901598 loadCorrection (bc.timestamp ());
@@ -1598,7 +1606,7 @@ struct CorrFit {
15981606 }
15991607
16001608 if (multiplicity > cfgMaxMultForCorrelations || multiplicity < cfgMinMultForCorrelations) {
1601- return ;
1609+ continue ;
16021610 }
16031611
16041612 fillCorrelationsTPCFT0<CorrelationContainer::kCFStepReconstructed >(tracks1, ft0, collision1.posZ (), MixedEvent, multiplicity, kFT0C , eventWeight);
@@ -1645,6 +1653,10 @@ struct CorrFit {
16451653
16461654 double multiplicity = tracks.size ();
16471655
1656+ if (cfgQaCheck) {
1657+ registry.fill (HIST (" Nch" ), multiplicity);
1658+ }
1659+
16481660 if (cfgStrictTrackCounter) {
16491661 trackCounter (tracks, multiplicity);
16501662 }
@@ -1698,7 +1710,7 @@ struct CorrFit {
16981710 int currentRunNumber = bc.runNumber ();
16991711 if (!cfgRunRemoveList.value .empty ()) {
17001712 if (!isGoodRun (currentRunNumber)) // Rejects runs if bad run number
1701- return ;
1713+ continue ;
17021714 }
17031715 loadAlignParam (bc.timestamp ());
17041716 loadCorrection (bc.timestamp ());
@@ -1714,7 +1726,7 @@ struct CorrFit {
17141726 }
17151727
17161728 if (multiplicity > cfgMaxMultForCorrelations || multiplicity < cfgMinMultForCorrelations) {
1717- return ;
1729+ continue ;
17181730 }
17191731
17201732 registry.fill (HIST (" eventcount" ), MixedEvent); // fill the mixed event in the 3 bin
@@ -1753,6 +1765,10 @@ struct CorrFit {
17531765
17541766 double multiplicity = tracks.size ();
17551767
1768+ if (cfgQaCheck) {
1769+ registry.fill (HIST (" Nch" ), multiplicity);
1770+ }
1771+
17561772 if (cfgStrictTrackCounter) {
17571773 trackCounter (tracks, multiplicity);
17581774 }
@@ -1804,7 +1820,7 @@ struct CorrFit {
18041820 int currentRunNumber = bc.runNumber ();
18051821 if (!cfgRunRemoveList.value .empty ()) {
18061822 if (!isGoodRun (currentRunNumber)) // Rejects runs if bad run number
1807- return ;
1823+ continue ;
18081824 }
18091825
18101826 loadCorrection (bc.timestamp ());
@@ -1816,7 +1832,7 @@ struct CorrFit {
18161832 }
18171833
18181834 if (multiplicity > cfgMaxMultForCorrelations || multiplicity < cfgMinMultForCorrelations) {
1819- return ;
1835+ continue ;
18201836 }
18211837
18221838 fillCorrelations<CorrelationContainer::kCFStepReconstructed >(tracks1, tracks2, collision1.posZ (), MixedEvent, multiplicity, getMagneticField (collision1.bc_as <aod::BCsWithTimestamps>().timestamp ()));
0 commit comments