Skip to content

Commit

Permalink
[PWGLF] NucleiTask - Add ITS cuts
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannimalfattore committed Dec 17, 2024
1 parent e5ad85e commit 8132f95
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include "Common/DataModel/Multiplicity.h"
#include "Common/DataModel/PIDResponse.h"
#include "Common/DataModel/PIDResponseITS.h"
#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/Centrality.h"
#include "Common/DataModel/TrackSelectionTables.h"
Expand Down Expand Up @@ -96,6 +97,11 @@ struct LFNucleiBATask {
Configurable<float> nsigmaTPCAl{"nsigmaTPCAl", 3.f, "Value of the Nsigma TPC cut for alpha"};
} nsigmaTPCvar;

struct : ConfigurableGroup {
Configurable<float> nsigmaITSTr{"nsigmaITSTr", 3.f, "Value of the Nsigma ITS cut for tritons"};
Configurable<float> nsigmaITSHe{"nsigmaITSHe", 3.f, "Value of the Nsigma ITS cut for helium-3"};
} nsigmaITSvar;

// Set additional cuts (used for debug)
Configurable<float> betaCut{"betaCut", 0.4f, "Value of the beta selection for TOF cut (default 0.4)"};

Expand All @@ -108,6 +114,7 @@ struct LFNucleiBATask {
ConfigurableAxis binsdEdx{"binsdEdx", {600, 0.f, 3000.f}, ""};
ConfigurableAxis binsBeta{"binsBeta", {120, 0.0, 1.2}, ""};
ConfigurableAxis binsDCA{"binsDCA", {400, -1.f, 1.f}, ""};
ConfigurableAxis binsSigmaITS{"binsSigmaITS", {1000, -100, 100}, ""};
ConfigurableAxis binsSigmaTPC{"binsSigmaTPC", {1000, -100, 100}, ""};
ConfigurableAxis binsSigmaTOF{"binsSigmaTOF", {1000, -100, 100}, ""};
ConfigurableAxis binsMassPr{"binsMassPr", {100, -1., 1.f}, ""};
Expand Down Expand Up @@ -195,6 +202,7 @@ struct LFNucleiBATask {
const AxisSpec massDeAxis{binsMassDe, ""};
const AxisSpec massTrAxis{binsMassTr, ""};
const AxisSpec massHeAxis{binsMassHe, ""};
const AxisSpec SigmaITSAxis{binsSigmaITS, ""};
const AxisSpec SigmaTPCAxis{binsSigmaTPC, ""};
const AxisSpec SigmaTOFAxis{binsSigmaTOF, ""};

Expand Down Expand Up @@ -1486,10 +1494,16 @@ struct LFNucleiBATask {
}
}
if (enableTr) {
histos.add<TH2>("tracks/triton/h2TritonVspTNSigmaITS", "NSigmaITS(t) vs pT; #it{p}_{T} (GeV/#it{c}); NSigmaITS", HistType::kTH2F, {{ptAxis}, {SigmaITSAxis}});
histos.add<TH2>("tracks/triton/h2antiTritonVspTNSigmaITS", "NSigmaITS(#bar{t}) vs pT; #it{p}_{T} (GeV/#it{c}); NSigmaITS", HistType::kTH2F, {{ptAxis}, {SigmaITSAxis}});

histos.add<TH2>("tracks/triton/h2TritonVspTNSigmaTPC", "NSigmaTPC(t) vs pT; #it{p}_{T} (GeV/#it{c}); NSigmaTPC", HistType::kTH2F, {{ptAxis}, {SigmaTPCAxis}});
histos.add<TH2>("tracks/triton/h2antiTritonVspTNSigmaTPC", "NSigmaTPC(#bar{t}) vs pT; #it{p}_{T} (GeV/#it{c}); NSigmaTPC", HistType::kTH2F, {{ptAxis}, {SigmaTPCAxis}});
}
if (enableHe) {
histos.add<TH2>("tracks/helium/h2HeliumVspTNSigmaITS", "NSigmaITS(He) vs pT/z; #it{p}_{T}/z (GeV/#it{c}); NSigmaITS", HistType::kTH2F, {{ptZHeAxis}, {SigmaITSAxis}});
histos.add<TH2>("tracks/helium/h2antiHeliumVspTNSigmaITS", "NSigmaITS(#bar{He}) vs pT/z; #it{p}_{T}/z (GeV/#it{c}); NSigmaITS", HistType::kTH2F, {{ptZHeAxis}, {SigmaITSAxis}});

histos.add<TH2>("tracks/helium/h2HeliumVspTNSigmaTPC", "NSigmaTPC(He) vs pT/z; #it{p}_{T}/z (GeV/#it{c}); NSigmaTPC", HistType::kTH2F, {{ptZHeAxis}, {SigmaTPCAxis}});
histos.add<TH2>("tracks/helium/h2antiHeliumVspTNSigmaTPC", "NSigmaTPC(#bar{He}) vs pT/z; #it{p}_{T}/z (GeV/#it{c}); NSigmaTPC", HistType::kTH2F, {{ptZHeAxis}, {SigmaTPCAxis}});
}
Expand Down Expand Up @@ -2126,6 +2140,8 @@ struct LFNucleiBATask {
break;
}

float nITSTr, nITSHe;

heP = track.p();
antiheP = track.p();
heTPCmomentum = track.tpcInnerParam();
Expand Down Expand Up @@ -4003,11 +4019,13 @@ struct LFNucleiBATask {
if (isHeWoTPCpid) {
if (outFlagOptions.enableExpSignalTPC)
histos.fill(HIST("tracks/helium/h2HeliumTPCExpSignalDiffVsPt"), hePt, track.tpcExpSignalDiffHe());
histos.fill(HIST("tracks/helium/h2HeliumVspTNSigmaITS"), hePt, nITSHe);
histos.fill(HIST("tracks/helium/h2HeliumVspTNSigmaTPC"), hePt, track.tpcNSigmaHe());
}
if (isAntiHeWoTPCpid) {
if (outFlagOptions.enableExpSignalTPC)
histos.fill(HIST("tracks/helium/h2antiHeliumTPCExpSignalDiffVsPt"), antihePt, track.tpcExpSignalDiffHe());
histos.fill(HIST("tracks/helium/h2antiHeliumVspTNSigmaITS"), antihePt, nITSHe);
histos.fill(HIST("tracks/helium/h2antiHeliumVspTNSigmaTPC"), antihePt, track.tpcNSigmaHe());
}

Expand Down

0 comments on commit 8132f95

Please sign in to comment.