Skip to content

Commit 62ea5f3

Browse files
committed
Fix issues for ZvtxFT0vsPV selection
1 parent 441800c commit 62ea5f3

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

PWGCF/EbyEFluctuations/Tasks/netprotcumulants.cxx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -1078,7 +1079,7 @@ struct NetProtCumulants {
10781079
}
10791080
//-------------------------------------------------------------------------------------------
10801081
}
1081-
PROCESS_SWITCH(NetProtCumulants, processMCGen, "Process Generated", false);
1082+
PROCESS_SWITCH(NetProtCumulants, processMCGen, "Process Generated", true);
10821083

10831084
void processMCRec(MyMCRecCollision const& collision, MyMCTracks const& tracks, aod::McCollisions const&, aod::McParticles const&)
10841085
{
@@ -1097,7 +1098,9 @@ struct NetProtCumulants {
10971098
}
10981099
if (cfgEvSelkIsVertexTOFmatched && !(collision.selection_bit(o2::aod::evsel::kIsVertexTOFmatched))) {
10991100
return;
1100-
;
1101+
}
1102+
if (cfgEvSelkIsGoodZvtxFT0vsPV && !(collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV))) {
1103+
return;
11011104
}
11021105

11031106
auto cent = collision.centFT0C();
@@ -2026,7 +2029,7 @@ struct NetProtCumulants {
20262029
histos.get<TProfile2D>(HIST("Prof2D_Q112221_111"))->Fill(cent, sampleIndex, fQ112221_111);
20272030
}
20282031
}
2029-
PROCESS_SWITCH(NetProtCumulants, processMCRec, "Process Generated", false);
2032+
PROCESS_SWITCH(NetProtCumulants, processMCRec, "Process Generated", true);
20302033

20312034
void processDataRec(AodCollisions::iterator const& coll, aod::BCsWithTimestamps const&, AodTracks const& inputTracks)
20322035
{
@@ -2044,7 +2047,10 @@ struct NetProtCumulants {
20442047

20452048
if (cfgEvSelkIsVertexTOFmatched && !(coll.selection_bit(o2::aod::evsel::kIsVertexTOFmatched))) {
20462049
return;
2047-
;
2050+
}
2051+
2052+
if (cfgEvSelkIsGoodZvtxFT0vsPV && !(coll.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV))) {
2053+
return;
20482054
}
20492055

20502056
histos.fill(HIST("hZvtx_after"), coll.posZ());
@@ -2978,7 +2984,7 @@ struct NetProtCumulants {
29782984
histos.get<TProfile2D>(HIST("Prof2D_Q112221_111"))->Fill(cent, sampleIndex, fQ112221_111);
29792985
}
29802986
}
2981-
PROCESS_SWITCH(NetProtCumulants, processDataRec, "Process real data", true);
2987+
PROCESS_SWITCH(NetProtCumulants, processDataRec, "Process real data", false);
29822988
};
29832989

29842990
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)

0 commit comments

Comments
 (0)