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++)
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)
trackRef_iterator tracks_end() const
last iterator over tracks
void add(const reco::Track &track, double weight=1.0)
bool hasRefittedTracks() const
Checks whether refitted tracks are stored.
double px() const
x coordinate of momentum vector
const_iterator end() const
Termination of iteration.
const_iterator begin() const
Initialize an iterator over the RefVector.
const_iterator begin() const
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
const_iterator end() const
float trackWeight(const TREF &r) const
returns the weight with which a Track has contributed to the vertex-fit.
double pz() const
z coordinate of momentum vector
Track refittedTrack(const TrackBaseRef &track) const
trackRef_iterator tracks_begin() const
first iterator over tracks
math::XYZTLorentzVector sum
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
double py() const
y coordinate of momentum vector