Skip to content

Commit

Permalink
Add 3 prong secondary vertex histograms + fix histogram ranges (#4405)
Browse files Browse the repository at this point in the history
  • Loading branch information
ginnocen authored Sep 22, 2020
1 parent f4dc8e7 commit 6983799
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion Analysis/Tasks/PWGHF/HFTrackIndexSkimsCreator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ struct HFTrackIndexSkimsCreator {

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

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

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

if (b_dovalplots) {
hmass3->Fill(mass3PiKPi);
hvtx3_x_out->Fill(secondaryVertex3[0]);
hvtx3_y_out->Fill(secondaryVertex3[1]);
hvtx3_z_out->Fill(secondaryVertex3[2]);
}

// fill table row
Expand Down
6 changes: 3 additions & 3 deletions Analysis/Tasks/PWGHF/taskD0.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ struct TaskD0 {
OutputObj<TH1F> hptcand{TH1F("hptcand", "pt candidate", 100, 0, 10.0)};
OutputObj<TH1F> hptprong0{TH1F("hptprong0", "pt prong0", 100, 0, 10.0)};
OutputObj<TH1F> hptprong1{TH1F("hptprong1", "pt prong1", 100, 0, 10.0)};
OutputObj<TH1F> hdeclength{TH1F("declength", "decay length", 100, 0., 1.0)};
OutputObj<TH1F> hdeclengthxy{TH1F("declengthxy", "decay length xy", 100, 0., 1.0)};
OutputObj<TH1F> hdeclength{TH1F("declength", "decay length", 200, 0., 2.0)};
OutputObj<TH1F> hdeclengthxy{TH1F("declengthxy", "decay length xy", 200, 0., 2.0)};
OutputObj<TH1F> hd0{TH1F("hd0", "dca xy to prim. vertex (cm)", 100, -1.0, 1.0)};
OutputObj<TH1F> hd0d0{TH1F("hd0d0", "product of dca xy to prim. vertex (cm^{2})", 100, -1.0, 1.0)};
OutputObj<TH1F> hd0d0{TH1F("hd0d0", "product of dca xy to prim. vertex (cm^{2})", 500, -1.0, 1.0)};
OutputObj<TH1F> hCTS{TH1F("hCTS", "cos #it{#theta}*", 120, -1.1, 1.1)};
OutputObj<TH1F> hCt{TH1F("hCt", "proper lifetime * #it{c} (cm)", 120, -20, 100)};
OutputObj<TH1F> hEta{TH1F("hEta", "#it{#eta}", 100, -2, 2)};
Expand Down

0 comments on commit 6983799

Please sign in to comment.