Skip to content

Commit 6279688

Browse files
authored
[PWGCF] modify MC and Eff func (#10508)
1 parent 2f79661 commit 6279688

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

PWGCF/Flow/Tasks/flowMc.cxx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,12 @@ struct FlowMc {
5858
O2_DEFINE_CONFIGURABLE(cfgCutPtRefMax, float, 3.0f, "Maximal pT for ref tracks")
5959
O2_DEFINE_CONFIGURABLE(cfgCutPtPOIMin, float, 0.2f, "Minimal pT for poi tracks")
6060
O2_DEFINE_CONFIGURABLE(cfgCutPtPOIMax, float, 10.0f, "Maximal pT for poi tracks")
61+
O2_DEFINE_CONFIGURABLE(cfgCutTPCclu, float, 70.0f, "minimum TPC clusters")
62+
O2_DEFINE_CONFIGURABLE(cfgCutITSclu, float, 6.0f, "minimum ITS clusters")
6163
O2_DEFINE_CONFIGURABLE(cfgFlowAcceptance, std::string, "", "CCDB path to acceptance object")
6264
O2_DEFINE_CONFIGURABLE(cfgFlowEfficiency, std::string, "", "CCDB path to efficiency object")
6365
O2_DEFINE_CONFIGURABLE(cfgCentVsIPTruth, std::string, "", "CCDB path to centrality vs IP truth")
66+
O2_DEFINE_CONFIGURABLE(cfgIsGlobalTrack, bool, false, "Use global tracks instead of hasTPC&&hasITS")
6467
O2_DEFINE_CONFIGURABLE(cfgFlowCumulantEnabled, bool, false, "switch of calculating flow")
6568
O2_DEFINE_CONFIGURABLE(cfgFlowCumulantNbootstrap, int, 30, "Number of subsamples")
6669

@@ -97,6 +100,9 @@ struct FlowMc {
97100

98101
void init(InitContext&)
99102
{
103+
// QA histograms
104+
histos.add<TH1>("hnTPCClu", "Number of found TPC clusters", HistType::kTH1D, {{100, 40, 180}});
105+
histos.add<TH1>("hnITSClu", "Number of found ITS clusters", HistType::kTH1D, {{100, 0, 20}});
100106
// pT histograms
101107
histos.add<TH1>("hImpactParameter", "hImpactParameter", HistType::kTH1D, {axisB});
102108
histos.add<TH2>("hNchVsImpactParameter", "hNchVsImpactParameter", HistType::kTH2D, {axisB, axisNch});
@@ -269,7 +275,7 @@ struct FlowMc {
269275
}
270276
}
271277

272-
using RecoTracks = soa::Join<aod::TracksIU, aod::TracksExtra>;
278+
using RecoTracks = soa::Join<aod::TracksIU, aod::TracksExtra, aod::TrackSelection>;
273279

274280
void process(aod::McCollision const& mcCollision, aod::BCsWithTimestamps const&, soa::Join<aod::McParticles, aod::ParticlesToTracks> const& mcParticles, RecoTracks const&)
275281
{
@@ -344,7 +350,15 @@ struct FlowMc {
344350
if (mcParticle.has_tracks()) {
345351
auto const& tracks = mcParticle.tracks_as<RecoTracks>();
346352
for (auto const& track : tracks) {
347-
if (track.hasTPC() && track.hasITS()) {
353+
if (!((track.tpcNClsFound() >= cfgCutTPCclu) && (track.itsNCls() >= cfgCutITSclu))) {
354+
continue;
355+
}
356+
histos.fill(HIST("hnTPCClu"), track.tpcNClsFound());
357+
histos.fill(HIST("hnITSClu"), track.itsNCls());
358+
if (cfgIsGlobalTrack && track.isGlobalTrack()) {
359+
validGlobal = true;
360+
}
361+
if (!cfgIsGlobalTrack && track.hasTPC() && track.hasITS()) {
348362
validGlobal = true;
349363
}
350364
if (track.hasTPC() || track.hasITS()) {

PWGCF/Flow/Tasks/flowQa.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,9 @@ struct FlowQa {
369369
std::vector<double> pTEffBins = {0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.4, 1.8, 2.2, 2.6, 3.0};
370370
hFindPtBin = new TH1D("hFindPtBin", "hFindPtBin", pTEffBins.size() - 1, &pTEffBins[0]);
371371
funcEff.resize(pTEffBins.size() - 1);
372-
std::vector<double> f1p0 = {0.713412, 0.73259, 0.749925, 0.760693, 0.767321, 0.772874, 0.777889, 0.782172, 0.792831, 0.808402, 0.817907, 0.82473, 0.829151};
373-
std::vector<double> f1p1 = {-2.15831e-05, -2.19538e-05, -2.2958e-05, -2.55123e-05, -2.75207e-05, -2.81486e-05, -2.839e-05, -2.83713e-05, -2.69748e-05, -2.48438e-05, -2.31138e-05, -2.20517e-05, -2.0758e-05};
372+
// LHC24g3 Eff
373+
std::vector<double> f1p0 = {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};
374+
std::vector<double> f1p1 = {-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};
374375
for (uint ifunc = 0; ifunc < pTEffBins.size() - 1; ifunc++) {
375376
funcEff[ifunc] = new TF1(Form("funcEff%i", ifunc), "[0]+[1]*x", 0, 3000);
376377
funcEff[ifunc]->SetParameters(f1p0[ifunc], f1p1[ifunc] * cfgTrackDensityCorrSlopeFactor);

PWGCF/Flow/Tasks/flowTask.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,9 @@ struct FlowTask {
431431
std::vector<double> pTEffBins = {0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.4, 1.8, 2.2, 2.6, 3.0};
432432
hFindPtBin = new TH1D("hFindPtBin", "hFindPtBin", pTEffBins.size() - 1, &pTEffBins[0]);
433433
funcEff.resize(pTEffBins.size() - 1);
434-
std::vector<double> f1p0 = {0.713412, 0.73259, 0.749925, 0.760693, 0.767321, 0.772874, 0.777889, 0.782172, 0.792831, 0.808402, 0.817907, 0.82473, 0.829151};
435-
std::vector<double> f1p1 = {-2.15831e-05, -2.19538e-05, -2.2958e-05, -2.55123e-05, -2.75207e-05, -2.81486e-05, -2.839e-05, -2.83713e-05, -2.69748e-05, -2.48438e-05, -2.31138e-05, -2.20517e-05, -2.0758e-05};
434+
// LHC24g3 Eff
435+
std::vector<double> f1p0 = {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};
436+
std::vector<double> f1p1 = {-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};
436437
for (uint ifunc = 0; ifunc < pTEffBins.size() - 1; ifunc++) {
437438
funcEff[ifunc] = new TF1(Form("funcEff%i", ifunc), "[0]+[1]*x", 0, 3000);
438439
funcEff[ifunc]->SetParameters(f1p0[ifunc], f1p1[ifunc]);

0 commit comments

Comments
 (0)