@@ -101,6 +101,7 @@ struct NetProtCumulants {
101101 Configurable<bool > cfgIfRejectElectron{" cfgIfRejectElectron" , true , " Remove electrons" };
102102 Configurable<bool > cfgIfMandatoryTOF{" cfgIfMandatoryTOF" , true , " Mandatory TOF requirement to remove pileup" };
103103 Configurable<bool > cfgEvSelkIsVertexTOFmatched{" cfgEvSelkIsVertexTOFmatched" , true , " If matched with TOF, for pileup" };
104+ Configurable<bool > cfgEvSelkIsGoodZvtxFT0vsPV{" cfgEvSelkIsGoodZvtxFT0vsPV" , false , " Apply kIsGoodZvtxFT0vsPV event selection" };
104105 ConfigurableAxis cfgCentralityBins{" cfgCentralityBins" , {90 , 0 ., 90 .}, " Centrality/Multiplicity percentile bining" };
105106
106107 // Connect to ccdb
@@ -987,6 +988,9 @@ struct NetProtCumulants {
987988 if (cfgEvSelkIsVertexTOFmatched && !(collision.selection_bit (o2::aod::evsel::kIsVertexTOFmatched ))) {
988989 continue ;
989990 }
991+ if (cfgEvSelkIsGoodZvtxFT0vsPV && !(collision.selection_bit (o2::aod::evsel::kIsGoodZvtxFT0vsPV ))) {
992+ continue ;
993+ }
990994
991995 cent = collision.centFT0C ();
992996
@@ -1078,7 +1082,7 @@ struct NetProtCumulants {
10781082 }
10791083 // -------------------------------------------------------------------------------------------
10801084 }
1081- PROCESS_SWITCH (NetProtCumulants, processMCGen, " Process Generated" , false );
1085+ PROCESS_SWITCH (NetProtCumulants, processMCGen, " Process Generated" , true );
10821086
10831087 void processMCRec (MyMCRecCollision const & collision, MyMCTracks const & tracks, aod::McCollisions const &, aod::McParticles const &)
10841088 {
@@ -1097,7 +1101,9 @@ struct NetProtCumulants {
10971101 }
10981102 if (cfgEvSelkIsVertexTOFmatched && !(collision.selection_bit (o2::aod::evsel::kIsVertexTOFmatched ))) {
10991103 return ;
1100- ;
1104+ }
1105+ if (cfgEvSelkIsGoodZvtxFT0vsPV && !(collision.selection_bit (o2::aod::evsel::kIsGoodZvtxFT0vsPV ))) {
1106+ return ;
11011107 }
11021108
11031109 auto cent = collision.centFT0C ();
@@ -2026,7 +2032,7 @@ struct NetProtCumulants {
20262032 histos.get <TProfile2D>(HIST (" Prof2D_Q112221_111" ))->Fill (cent, sampleIndex, fQ112221_111 );
20272033 }
20282034 }
2029- PROCESS_SWITCH (NetProtCumulants, processMCRec, " Process Generated" , false );
2035+ PROCESS_SWITCH (NetProtCumulants, processMCRec, " Process Generated" , true );
20302036
20312037 void processDataRec (AodCollisions::iterator const & coll, aod::BCsWithTimestamps const &, AodTracks const & inputTracks)
20322038 {
@@ -2044,7 +2050,10 @@ struct NetProtCumulants {
20442050
20452051 if (cfgEvSelkIsVertexTOFmatched && !(coll.selection_bit (o2::aod::evsel::kIsVertexTOFmatched ))) {
20462052 return ;
2047- ;
2053+ }
2054+
2055+ if (cfgEvSelkIsGoodZvtxFT0vsPV && !(coll.selection_bit (o2::aod::evsel::kIsGoodZvtxFT0vsPV ))) {
2056+ return ;
20482057 }
20492058
20502059 histos.fill (HIST (" hZvtx_after" ), coll.posZ ());
@@ -2978,7 +2987,7 @@ struct NetProtCumulants {
29782987 histos.get <TProfile2D>(HIST (" Prof2D_Q112221_111" ))->Fill (cent, sampleIndex, fQ112221_111 );
29792988 }
29802989 }
2981- PROCESS_SWITCH (NetProtCumulants, processDataRec, " Process real data" , true );
2990+ PROCESS_SWITCH (NetProtCumulants, processDataRec, " Process real data" , false );
29822991};
29832992
29842993WorkflowSpec defineDataProcessing (ConfigContext const & cfgc)
0 commit comments