39 TVector3 vtx_pos(secVtx->
x(), secVtx->
y(), secVtx->
z());
40 float vtx_r = vtx_pos.Perp();
46 float minD0 = 1.0 * 1.e4;
52 size_t ntrk = trkParts.size();
53 TLorentzVector sumP4(0,0,0,0);
55 for (
const auto &trklink : trkParts) {
56 if (!trklink.isValid()) {
62 if(trk_d0 < minD0){ minD0 = trk_d0; }
63 if(trk_d0 > maxD0){ maxD0 = trk_d0; }
69 TLorentzVector trk_P4;
70 trk_P4.SetPtEtaPhiM(ptAcc(trk), etaAcc(trk), phiAcc(trk), trk.
p4().M());
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
DefiningParameters_t definingParameters() const
Returns a SVector of the Perigee track parameters.
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.