Skip to content

Commit 759139e

Browse files
Fix histgrams for PID
1 parent c76357a commit 759139e

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

PWGJE/Tasks/jetShape.cxx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ using namespace o2::framework::expressions;
4141

4242
struct JetShapeTask {
4343
HistogramRegistry registry{"registry",
44-
{{"tpcTofPi", "tpcTofPi", {HistType::kTH3F, {{401, -10.025f, 10.025f}, {401, -10.025f, 10.025f}, {100, 0, 5}}}},
45-
{"tpcPi", "tpcPi", {HistType::kTH2F, {{500, 0, 5}, {401, -10.025f, 10.025f}}}},
46-
{"tofPi", "tofPi", {HistType::kTH2F, {{500, 0, 5}, {401, -10.025f, 10.025f}}}},
47-
{"tpcTofPr", "tpcTofPr", {HistType::kTH3F, {{401, -10.025f, 10.025f}, {401, -10.025f, 10.025f}, {100, 0, 5}}}},
48-
{"tpcPr", "tpcPr", {HistType::kTH2F, {{500, 0, 5}, {401, -10.025f, 10.025f}}}},
49-
{"tofPr", "tofPr", {HistType::kTH2F, {{500, 0, 5}, {401, -10.025f, 10.025f}}}},
44+
{{"tpcTofPi", "tpcTofPi", {HistType::kTHnSparseD, {{101, -10.1f, 10.1f}, {nBinTof, -10, 10}, {25, 0, 5}, {14, 0, 7}}}},
45+
{"tpcPi", "tpcPi", {HistType::kTH2F, {{100, 0, 5}, {401, -10.025f, 10.025f}}}},
46+
{"tofPi", "tofPi", {HistType::kTH2F, {{100, 0, 5}, {401, -10.025f, 10.025f}}}},
47+
{"tpcTofPr", "tpcTofPr", {HistType::kTHnSparseD, {{101, -10.1f, 10.1f}, {nBinTof, -10, 10}, {25, 0, 5}, {14, 0, 7}}}},
48+
{"tpcPr", "tpcPr", {HistType::kTH2F, {{100, 0, 5}, {401, -10.025f, 10.025f}}}},
49+
{"tofPr", "tofPr", {HistType::kTH2F, {{100, 0, 5}, {401, -10.025f, 10.025f}}}},
5050
{"tpcDedx", "tpcDedx", {HistType::kTH2F, {{500, 0, 5}, {1000, 0, 1000}}}},
5151
{"tofBeta", "tofBeta", {HistType::kTH2F, {{500, 0, 5}, {450, 0.2, 1.1}}}},
5252
{"tofMass", "tofMass", {HistType::kTH1F, {{3000, 0, 3}}}},
@@ -71,6 +71,7 @@ struct JetShapeTask {
7171
Configurable<std::string> eventSelections{"eventSelections", "sel8", "choose event selection"};
7272
Configurable<std::string> trackSelections{"trackSelections", "globalTracks", "set track selections"};
7373

74+
Configurable<int> nBinTof{"nBinTof", 20, "used to make a cut on the jet areas"};
7475
Configurable<float> jetAreaFractionMin{"jetAreaFractionMin", -99.0, "used to make a cut on the jet areas"};
7576
Configurable<float> leadingConstituentPtMin{"leadingConstituentPtMin", 5.0, "minimum pT selection on jet constituent"};
7677
Configurable<float> leadingConstituentPtMax{"leadingConstituentPtMax", 9999.0, "maximum pT selection on jet constituent"};
@@ -256,10 +257,8 @@ struct JetShapeTask {
256257
registry.fill(HIST("tofMass"), track.mass());
257258

258259
// for calculate purity
259-
registry.fill(HIST("tpcTofPi"), track.tpcNSigmaPi(), track.tofNSigmaPi(), track.pt());
260260
registry.fill(HIST("tpcPi"), track.pt(), track.tpcNSigmaPi());
261261
registry.fill(HIST("tofPi"), track.pt(), track.tofNSigmaPi());
262-
registry.fill(HIST("tpcTofPr"), track.tpcNSigmaPr(), track.tofNSigmaPr(), track.pt());
263262
registry.fill(HIST("tpcPr"), track.pt(), track.tpcNSigmaPr());
264263
registry.fill(HIST("tofPr"), track.pt(), track.tofNSigmaPr());
265264

@@ -272,6 +271,8 @@ struct JetShapeTask {
272271
float distance = std::sqrt(deltaEta * deltaEta + deltaPhi1 * deltaPhi1);
273272

274273
registry.fill(HIST("distanceVsTrackpt"), distance, track.pt());
274+
registry.fill(HIST("tpcTofPi"), track.tpcNSigmaPi(), track.tofNSigmaPi(), track.pt(), distance);
275+
registry.fill(HIST("tpcTofPr"), track.tpcNSigmaPr(), track.tofNSigmaPr(), track.pt(), distance);
275276
}
276277
}
277278
}

0 commit comments

Comments
 (0)