Skip to content

Commit 6983799

Browse files
authored
Add 3 prong secondary vertex histograms + fix histogram ranges (#4405)
1 parent f4dc8e7 commit 6983799

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Analysis/Tasks/PWGHF/HFTrackIndexSkimsCreator.cxx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,12 @@ struct HFTrackIndexSkimsCreator {
8888

8989
OutputObj<TH1F> hvtx_x_out{TH1F("hvtx_x", "2-track vtx", 1000, -2.0, 2.0)};
9090
OutputObj<TH1F> hvtx_y_out{TH1F("hvtx_y", "2-track vtx", 1000, -2.0, 2.0)};
91-
OutputObj<TH1F> hvtx_z_out{TH1F("hvtx_z", "2-track vtx", 1000, -10.0, 10.0)};
91+
OutputObj<TH1F> hvtx_z_out{TH1F("hvtx_z", "2-track vtx", 1000, -20.0, 20.0)};
9292
OutputObj<TH1F> hmass2{TH1F("hmass2", "; Inv Mass (GeV/c^{2})", 500, 0, 5.0)};
9393
OutputObj<TH1F> hmass3{TH1F("hmass3", "; Inv Mass (GeV/c^{2})", 500, 1.6, 2.1)};
94+
OutputObj<TH1F> hvtx3_x_out{TH1F("hvtx3_x", "3-track vtx", 1000, -2.0, 2.0)};
95+
OutputObj<TH1F> hvtx3_y_out{TH1F("hvtx3_y", "3-track vtx", 1000, -2.0, 2.0)};
96+
OutputObj<TH1F> hvtx3_z_out{TH1F("hvtx3_z", "3-track vtx", 1000, -20.0, 20.0)};
9497

9598
Filter filterSelectTracks = aod::seltrack::issel == 1;
9699
using SelectedTracks = soa::Filtered<soa::Join<aod::Tracks, aod::TracksCov, aod::TracksExtra, aod::SelTrack>>;
@@ -218,13 +221,17 @@ struct HFTrackIndexSkimsCreator {
218221
df3.getTrack(0).getPxPyPzGlo(pvec0);
219222
df3.getTrack(1).getPxPyPzGlo(pvec1);
220223
df3.getTrack(2).getPxPyPzGlo(pvec2);
224+
const auto& secondaryVertex3 = df3.getPCACandidate();
221225

222226
// calculate invariant mass
223227
arr3Mom = array{pvec0, pvec1, pvec2};
224228
mass3PiKPi = RecoDecay::M(std::move(arr3Mom), array{massPi, massK, massPi});
225229

226230
if (b_dovalplots) {
227231
hmass3->Fill(mass3PiKPi);
232+
hvtx3_x_out->Fill(secondaryVertex3[0]);
233+
hvtx3_y_out->Fill(secondaryVertex3[1]);
234+
hvtx3_z_out->Fill(secondaryVertex3[2]);
228235
}
229236

230237
// fill table row

Analysis/Tasks/PWGHF/taskD0.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ struct TaskD0 {
3939
OutputObj<TH1F> hptcand{TH1F("hptcand", "pt candidate", 100, 0, 10.0)};
4040
OutputObj<TH1F> hptprong0{TH1F("hptprong0", "pt prong0", 100, 0, 10.0)};
4141
OutputObj<TH1F> hptprong1{TH1F("hptprong1", "pt prong1", 100, 0, 10.0)};
42-
OutputObj<TH1F> hdeclength{TH1F("declength", "decay length", 100, 0., 1.0)};
43-
OutputObj<TH1F> hdeclengthxy{TH1F("declengthxy", "decay length xy", 100, 0., 1.0)};
42+
OutputObj<TH1F> hdeclength{TH1F("declength", "decay length", 200, 0., 2.0)};
43+
OutputObj<TH1F> hdeclengthxy{TH1F("declengthxy", "decay length xy", 200, 0., 2.0)};
4444
OutputObj<TH1F> hd0{TH1F("hd0", "dca xy to prim. vertex (cm)", 100, -1.0, 1.0)};
45-
OutputObj<TH1F> hd0d0{TH1F("hd0d0", "product of dca xy to prim. vertex (cm^{2})", 100, -1.0, 1.0)};
45+
OutputObj<TH1F> hd0d0{TH1F("hd0d0", "product of dca xy to prim. vertex (cm^{2})", 500, -1.0, 1.0)};
4646
OutputObj<TH1F> hCTS{TH1F("hCTS", "cos #it{#theta}*", 120, -1.1, 1.1)};
4747
OutputObj<TH1F> hCt{TH1F("hCt", "proper lifetime * #it{c} (cm)", 120, -20, 100)};
4848
OutputObj<TH1F> hEta{TH1F("hEta", "#it{#eta}", 100, -2, 2)};

0 commit comments

Comments
 (0)