5 #include "StMuDSTMaker/COMMON/StMuPrimaryVertex.h"
6 #include "StMuDSTMaker/COMMON/StMuMcVertex.h"
10 tvx::HistContainer(name, motherDir, option)
12 Add(
new TH1I(
"hInvMass",
"; Invariant Mass, GeV; Counts; ", 200, 0.4, 1.2) );
13 Add(
new TH1I(
"hDecayLength",
"; Decay Length, cm; Counts; ", 50, 0, 50) );
14 Add(
new TH1I(
"hDLSignificance",
"; Decay Length Significance, cm; Counts; ", 50, 0, 50) );
20 h(
"hInvMass")->Fill( decayVtx.im_p );
21 h(
"hDecayLength")->Fill( decayVtx.dl_p );
22 double expected_decay_vertex_err2 = 0.15*0.15;
23 h(
"hDLSignificance")->Fill( decayVtx.dl_p / sqrt(vertex.posError().mag()*vertex.posError().mag() + expected_decay_vertex_err2) );
DecayVertexHists(const std::string name, TDirectory *motherDir=nullptr, const std::string option="")
void FillHists(const StMuPrimaryVertex &vertex, const TDecayVertex &decayVtx)