4 #include <Math/GenVector/PxPyPzE4D.h> 5 #include <Math/GenVector/PxPyPzM4D.h> 19 for (std::vector<Track>::const_iterator iter =
tracks.begin(); iter !=
tracks.end(); iter++)
29 for (std::vector<CandidatePtr>::const_iterator iter =
tracks.begin(); iter !=
tracks.end(); iter++)
39 bool hasRefittedTracks =
vertex.hasRefittedTracks();
41 if (hasRefittedTracks)
58 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double> > vec;
60 vec.SetPx(
track.px());
61 vec.SetPy(
track.py());
62 vec.SetPz(
track.pz());
math::XYZTLorentzVector weightedSum
TrackKinematics & operator+=(const TrackKinematics &other)
void add(const reco::Track &track, double weight=1.0)
math::XYZTLorentzVector sum
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>