Skip to content

Commit eb78cb1

Browse files
committed
modify_switch_structure
1 parent a197b06 commit eb78cb1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

PWGUD/Tasks/flowCumulantsUpc.cxx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,10 @@ struct FlowCumulantsUpc {
231231
registry.add("hVtxZ", "Vexter Z distribution", {HistType::kTH1D, {axisVertex}});
232232
registry.add("hMult", "Multiplicity distribution", {HistType::kTH1D, {{3000, 0.5, 3000.5}}});
233233
std::string hCentTitle = "Centrality distribution, Estimator " + std::to_string(cfgCentEstimator);
234+
registry.add("hCentMC", hCentTitle.c_str(), {HistType::kTH1D, {{90, 0, 90}}});
235+
registry.add("hVtxZMC", "Vexter Z distribution", {HistType::kTH1D, {axisVertex}});
236+
registry.add("hMultMC", "Multiplicity distribution", {HistType::kTH1D, {{3000, 0.5, 3000.5}}});
237+
registry.add("numberOfTracksMC", "Number of tracks per event", {HistType::kTH1D, {{1000, 0, 1000}}});
234238
registry.add("hCent", hCentTitle.c_str(), {HistType::kTH1D, {{90, 0, 90}}});
235239
if (!cfgUseSmallMemory) {
236240
registry.add("BeforeSel8_globalTracks_centT0C", "before sel8;Centrality T0C;mulplicity global tracks", {HistType::kTH2D, {axisCentForQA, axisNch}});
@@ -279,6 +283,7 @@ struct FlowCumulantsUpc {
279283
registry.add("hnTPCCrossedRowMC", "Number of crossed TPC Rows", {HistType::kTH1D, {{100, 40, 180}}});
280284
registry.add("hDCAzMC", "DCAz after cuts; DCAz (cm); Pt", {HistType::kTH2D, {{200, -0.5, 0.5}, {200, 0, 5}}});
281285
registry.add("hDCAxyMC", "DCAxy after cuts; DCAxy (cm); Pt", {HistType::kTH2D, {{200, -0.5, 0.5}, {200, 0, 5}}});
286+
registry.add("eventCounterMC", "Number of MC Event;; Count", {HistType::kTH1D, {{5, 0, 5}}});
282287
registry.add("hTrackCorrection2dMC", "Correlation table for number of tracks table; uncorrected track; corrected track", {HistType::kTH2D, {axisNch, axisNch}});
283288

284289
o2::framework::AxisSpec axis = axisPt;
@@ -913,14 +918,15 @@ struct FlowCumulantsUpc {
913918
fillFC(corrconfigs.at(l_ind), independent, lRandom);
914919
}
915920
}
916-
PROCESS_SWITCH(FlowCumulantsUpc, process, "process", true);
921+
PROCESS_SWITCH(FlowCumulantsUpc, process, "process", false);
917922

918923
//-----------------------------------------------------------------------------------------------------------------------
919924
void processSim(aod::UDMcCollision const& mcCollision, aod::UDMcParticles const& mcParticles)
920925
{
926+
921927
registry.fill(HIST("eventCounterMC"), 0.5);
922928

923-
registry.fill(HIST("hEventCount"), 1.5);
929+
// registry.fill(HIST("hEventCount"), 1.5);
924930
float cent = 100;
925931
float vtxz = mcCollision.posZ();
926932
registry.fill(HIST("hVtxZMC"), vtxz);
@@ -996,8 +1002,8 @@ struct FlowCumulantsUpc {
9961002
for (uint l_ind = 0; l_ind < corrconfigs.size(); l_ind++) {
9971003
fillFCMC(corrconfigs.at(l_ind), independent, lRandomMc);
9981004
}
999-
PROCESS_SWITCH(FlowCumulantsUpc, processSim, "processSim", false);
10001005
}
1006+
PROCESS_SWITCH(FlowCumulantsUpc, processSim, "processSim", true);
10011007
};
10021008

10031009
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)

0 commit comments

Comments
 (0)