Skip to content

Commit 16cff23

Browse files
committed
Variable binning was added
1 parent ca0902a commit 16cff23

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

PWGMM/UE/Tasks/dedxAnalysis.cxx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@ using namespace o2::framework;
3434
using namespace constants::physics;
3535

3636
using PIDTracks = soa::Join<
37-
aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::pidTOFbeta,
38-
aod::pidTOFmass, aod::TrackSelection, aod::TrackSelectionExtension,
39-
aod::pidTPCFullPi, aod::pidTPCFullKa, aod::pidTPCFullPr, aod::pidTPCFullDe,
40-
aod::pidTPCFullTr, aod::pidTPCFullHe, aod::pidTOFFullPi, aod::pidTOFFullKa,
41-
aod::pidTOFFullPr, aod::pidTOFFullDe, aod::pidTOFFullTr, aod::pidTOFFullHe, aod::pidTOFFullEl>;
37+
aod::Tracks, aod::TracksExtra, aod::TrackSelectionExtension,
38+
aod::pidTOFFullPi, aod::pidTOFFullPr, aod::pidTOFFullEl>;
4239

4340
using SelectedCollisions = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Cs>;
4441

@@ -85,11 +82,13 @@ struct DedxAnalysis {
8582
Configurable<float> maxDCAxy{"maxDCAxy", 0.1f, "maxDCAxy"};
8683
Configurable<float> maxDCAz{"maxDCAz", 0.1f, "maxDCAz"};
8784
Configurable<bool> eventSelection{"eventSelection", true, "event selection"};
88-
Configurable<bool> calibrationMode{"calibrationMode", false, "calibration mode"};
85+
Configurable<bool> calibrationMode{"calibrationMode", true, "calibration mode"};
8986
// Histograms names
9087
static constexpr std::string_view kDedxvsMomentum[4] = {"dEdx_vs_Momentum_all", "dEdx_vs_Momentum_Pi_v0", "dEdx_vs_Momentum_Pr_v0", "dEdx_vs_Momentum_El_v0"};
9188
static constexpr double EtaCut[9] = {-0.8, -0.6, -0.4, -0.2, 0.0, 0.2, 0.4, 0.6, 0.8};
92-
static constexpr double Correction[8] = {56.0452, 56.632, 57.2627, 57.8265, 57.8403, 57.5441, 57.2386, 56.7532};
89+
static constexpr double Correction[8] = {54.5281, 54.6548, 54.6513, 54.6781, 54.6167, 54.7384, 55.0047, 54.9592};
90+
ConfigurableAxis binP{"binP", {0.1, 0.12, 0.14, 0.16, 0.18, 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.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.2, 3.4, 3.6, 3.8, 4.0, 4.5, 5.0, 5.5, 6.0, 6.5, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 18.0, 20.0}, ""};
91+
AxisSpec pAxis = {binP, "#it{p}/Z (GeV/c)"};
9392

9493
void init(InitContext const&)
9594
{
@@ -113,7 +112,7 @@ struct DedxAnalysis {
113112
// De/Dx for ch and v0 particles
114113
for (int i = 0; i < 4; ++i) {
115114
registryDeDx.add(kDedxvsMomentum[i].data(), "dE/dx", HistType::kTH3F,
116-
{{100, -20, 20, "#it{p}/Z (GeV/c)"}, {100, 0.0, 600.0, "dE/dx (a. u.)"}, {8, -0.8, 0.8, "#eta"}});
115+
{{pAxis}, {100, 0.0, 600.0, "dE/dx (a. u.)"}, {8, -0.8, 0.8, "#eta"}});
117116
}
118117
}
119118
// Event Counter
@@ -306,7 +305,7 @@ struct DedxAnalysis {
306305
float signedP = trk.sign() * trk.tpcInnerParam();
307306

308307
// MIP for pions
309-
if (trk.tpcInnerParam() >= 0.25 && trk.tpcInnerParam() <= 0.35) {
308+
if (trk.tpcInnerParam() >= 0.35 && trk.tpcInnerParam() <= 0.45) {
310309
if (calibrationMode) {
311310
registryDeDx.fill(HIST("hdEdxMIP_vs_eta"), trk.eta(), trk.tpcSignal());
312311
registryDeDx.fill(HIST("hdEdxMIP_vs_phi"), trk.phi(), trk.tpcSignal());

0 commit comments

Comments
 (0)