4 #include <Math/GenVector/PxPyPzE4D.h>
5 #include <Math/GenVector/PxPyPzM4D.h>
24 for(std::vector<Track>::const_iterator
iter = tracks.begin();
43 if (hasRefittedTracks)
63 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double> > vec;
65 vec.SetPx(track.
px());
66 vec.SetPy(track.
py());
67 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)
Track refittedTrack(const TrackBaseRef &track) const
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.
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
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
trackRef_iterator tracks_begin() const
first iterator over tracks
math::XYZTLorentzVector sum
double py() const
y coordinate of momentum vector