Skip to content

Commit c6c1e6f

Browse files
authored
[PWGCF] fix MC (#10597)
1 parent d939269 commit c6c1e6f

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

PWGCF/Flow/Tasks/flowMc.cxx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,15 @@ struct FlowMc {
353353
if (mcParticle.has_tracks()) {
354354
auto const& tracks = mcParticle.tracks_as<RecoTracks>();
355355
for (auto const& track : tracks) {
356-
if (track.hasTPC() && track.hasITS())
356+
if (!((track.tpcNClsFound() >= cfgCutTPCclu) && (track.itsNCls() >= cfgCutITSclu))) {
357+
continue;
358+
}
359+
if (cfgIsGlobalTrack && track.isGlobalTrack()) {
357360
nChGlobal++;
361+
}
362+
if (!cfgIsGlobalTrack && track.hasTPC() && track.hasITS()) {
363+
nChGlobal++;
364+
}
358365
if (cfgTrackDensityCorrUse && cfgFlowCumulantEnabled) {
359366
bool withinPtRef = (cfgCutPtRefMin < track.pt()) && (track.pt() < cfgCutPtRefMax); // within RF pT rang
360367
if (withinPtRef) {

PWGCF/Flow/Tasks/flowTask.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ struct FlowTask {
101101
Configurable<std::vector<std::string>> cfgUserDefineGFWCorr{"cfgUserDefineGFWCorr", std::vector<std::string>{"refN02 {2} refP02 {-2}", "refN12 {2} refP12 {-2}"}, "User defined GFW CorrelatorConfig"};
102102
Configurable<std::vector<std::string>> cfgUserDefineGFWName{"cfgUserDefineGFWName", std::vector<std::string>{"Ch02Gap22", "Ch12Gap22"}, "User defined GFW Name"};
103103
Configurable<std::vector<int>> cfgRunRemoveList{"cfgRunRemoveList", std::vector<int>{-1}, "excluded run numbers"};
104+
Configurable<std::vector<double>> cfgTrackDensityP0{"cfgTrackDensityP0", std::vector<double>{0.7217476707, 0.7384792571, 0.7542625668, 0.7640680200, 0.7701951667, 0.7755299053, 0.7805901710, 0.7849446786, 0.7957356586, 0.8113039262, 0.8211968966, 0.8280558878, 0.8329342135}, "parameter 0 for track density efficiency correction"};
105+
Configurable<std::vector<double>> cfgTrackDensityP1{"cfgTrackDensityP1", std::vector<double>{-2.169488e-05, -2.191913e-05, -2.295484e-05, -2.556538e-05, -2.754463e-05, -2.816832e-05, -2.846502e-05, -2.843857e-05, -2.705974e-05, -2.477018e-05, -2.321730e-05, -2.203315e-05, -2.109474e-05}, "parameter 1 for track density efficiency correction"};
104106

105107
ConfigurableAxis axisPtHist{"axisPtHist", {100, 0., 10.}, "pt axis for histograms"};
106108
ConfigurableAxis axisPt{"axisPt", {VARIABLE_WIDTH, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2, 2.2, 2.4, 2.6, 2.8, 3, 3.5, 4, 5, 6, 8, 10}, "pt axis for histograms"};
@@ -432,8 +434,8 @@ struct FlowTask {
432434
hFindPtBin = new TH1D("hFindPtBin", "hFindPtBin", pTEffBins.size() - 1, &pTEffBins[0]);
433435
funcEff.resize(pTEffBins.size() - 1);
434436
// LHC24g3 Eff
435-
std::vector<double> f1p0 = {0.6003720411, 0.6152630970, 0.6288860646, 0.6360694031, 0.6409494798, 0.6450540203, 0.6482117301, 0.6512592056, 0.6640008690, 0.6862631416, 0.7005738691, 0.7106567432, 0.7170728333};
436-
std::vector<double> f1p1 = {-1.007592e-05, -8.932635e-06, -9.114538e-06, -1.054818e-05, -1.220212e-05, -1.312304e-05, -1.376433e-05, -1.412813e-05, -1.289562e-05, -1.050065e-05, -8.635725e-06, -7.380821e-06, -6.201250e-06};
437+
std::vector<double> f1p0 = cfgTrackDensityP0;
438+
std::vector<double> f1p1 = cfgTrackDensityP1;
437439
for (uint ifunc = 0; ifunc < pTEffBins.size() - 1; ifunc++) {
438440
funcEff[ifunc] = new TF1(Form("funcEff%i", ifunc), "[0]+[1]*x", 0, 3000);
439441
funcEff[ifunc]->SetParameters(f1p0[ifunc], f1p1[ifunc]);

0 commit comments

Comments
 (0)