4 #include <Math/GenVector/PxPyPzE4D.h>
5 #include <Math/GenVector/PxPyPzM4D.h>
24 for(std::vector<Track>::const_iterator iter = tracks.begin();
25 iter != tracks.end(); iter++)
33 iter != tracks.
end(); iter++)
40 for(std::vector<CandidatePtr>::const_iterator iter = tracks.begin();
41 iter != tracks.end(); iter++)
49 iter != tracks.
end(); iter++)
59 if (hasRefittedTracks)
79 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double> > vec;
81 vec.SetPx(track.
px());
82 vec.SetPy(track.
py());
83 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.
const_iterator begin() const
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
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