Skip to content

Commit 6be770f

Browse files
authored
PWGJE: Adding histograms to trigger task to study correlation of global and TPC inner momentum (#6875)
1 parent 6397449 commit 6be770f

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

PWGJE/Tasks/ChJetTriggerQATask.cxx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ struct ChJetTriggerQATask {
7878

7979
Configurable<bool> bAddSupplementHistosToOutput{"bAddAdditionalHistosToOutput", false, "add supplementary histos to the output"};
8080

81+
Configurable<float> phiAngleRestriction{"phiAngleRestriction", 0.3, "angle to restrict track phi for plotting tpc momentum"};
82+
8183
float fiducialVolume; // 0.9 - jetR
8284

8385
HistogramRegistry spectra;
@@ -103,6 +105,11 @@ struct ChJetTriggerQATask {
103105
spectra.add("ptetaLeadingJetFullVol", "pT vs eta leading jet", {HistType::kTH2F, {{100, 0., +100.}, {80, -1., 1.}}});
104106
spectra.add("ptphiLeadingJetFullVol", "pT vs phi leading jet", {HistType::kTH2F, {{100, 0., +100.}, {60, 0, TMath::TwoPi()}}});
105107

108+
spectra.add("globalP_tpcglobalPDiff_withoutcuts", "difference of global and TPC inner momentum vs global momentum without any selection applied", {HistType::kTH2F, {{100, 0., +100.}, {200, -100., +100.}}});
109+
spectra.add("globalP_tpcglobalPDiff", "difference of global and TPC inner momentum vs global momentum with selection applied", {HistType::kTH2F, {{100, 0., +100.}, {200, -100., +100.}}});
110+
spectra.add("globalP_tpcglobalPDiff_withoutcuts_phirestrict", "difference of global and TPC inner momentum vs global momentum without any selection applied in a restricted phi", {HistType::kTH2F, {{100, 0., +100.}, {200, -100., +100.}}});
111+
spectra.add("globalP_tpcglobalPDiff_phirestrict", "difference of global and TPC inner momentum vs global momentum with selection applied restricted phi", {HistType::kTH2F, {{100, 0., +100.}, {200, -100., +100.}}});
112+
106113
// Supplementary plots
107114
if (bAddSupplementHistosToOutput) {
108115
spectra.add("ptJetChInclFullVol", "inclusive charged jet pT in full volume", {HistType::kTH1F, {{200, 0., +200.}}});
@@ -134,7 +141,7 @@ struct ChJetTriggerQATask {
134141
void
135142
process(soa::Filtered<soa::Join<JetCollisions,
136143
aod::JChTrigSels, aod::EvSels>>::iterator const& collision,
137-
soa::Filtered<JetTracks> const& tracks, o2::soa::Filtered<soa::Join<o2::aod::ChargedJets, aod::ChargedJetConstituents>> const& jets)
144+
soa::Filtered<soa::Join<JetTracks, aod::JTrackPIs>> const& tracks, o2::soa::Filtered<soa::Join<o2::aod::ChargedJets, aod::ChargedJetConstituents>> const& jets, soa::Join<aod::Tracks, aod::TracksExtra> const&)
138145
{
139146

140147
if (!collision.selection_bit(aod::evsel::kNoTimeFrameBorder)) {
@@ -171,10 +178,22 @@ struct ChJetTriggerQATask {
171178

172179
for (auto& trk : tracks) { // loop over filtered tracks in full TPC volume having pT > 100 MeV
173180

181+
auto const& originalTrack = trk.track_as<soa::Join<aod::Tracks, aod::TracksExtra>>();
182+
spectra.fill(HIST("globalP_tpcglobalPDiff_withoutcuts"), trk.p() - originalTrack.tpcInnerParam(), trk.p());
183+
184+
if (TMath::Abs(trk.phi() - TMath::Pi()) < phiAngleRestriction) {
185+
spectra.fill(HIST("globalP_tpcglobalPDiff_withoutcuts_phirestrict"), trk.p() - originalTrack.tpcInnerParam(), trk.p());
186+
}
187+
174188
if (!jetderiveddatautilities::selectTrack(trk, trackSelection)) {
175189
continue;
176190
}
177191

192+
spectra.fill(HIST("globalP_tpcglobalPDiff"), trk.p() - originalTrack.tpcInnerParam(), trk.p());
193+
if (TMath::Abs(trk.phi() - TMath::Pi()) < phiAngleRestriction) {
194+
spectra.fill(HIST("globalP_tpcglobalPDiff_phirestrict"), trk.p() - originalTrack.tpcInnerParam(), trk.p());
195+
}
196+
178197
spectra.fill(
179198
HIST("ptphiTrackInclGood"), trk.pt(),
180199
trk.phi()); // Inclusive Track pT vs phi spectrum in TPC volume

0 commit comments

Comments
 (0)