Go to the documentation of this file.
2 #include <Math/GenVector/PxPyPzE4D.h>
3 #include <Math/GenVector/PxPyPzM4D.h>
9 : chi2_(
chi2), ndof_(
ndof), position_(
p), time_(0.) {
98 throw cms::Exception(
"Vertex") <<
"No refitted tracks stored in vertex\n";
101 throw cms::Exception(
"Vertex") <<
"Refitted track not found in list\n";
108 throw cms::Exception(
"Vertex") <<
"No refitted tracks stored in vertex\n";
120 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double> > vec;
125 vec.SetPx(iter->px());
126 vec.SetPy(iter->py());
127 vec.SetPz(iter->pz());
133 for (std::vector<reco::TrackBaseRef>::const_iterator iter =
tracks_begin(); iter !=
tracks_end(); iter++) {
135 vec.SetPx((*iter)->px());
136 vec.SetPy((*iter)->py());
137 vec.SetPz((*iter)->pz());
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
TrackBaseRef originalTrack(const Track &refTrack) const
math::Error< dimension >::type Error
covariance error matrix (3x3)
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Track refittedTrack(const TrackBaseRef &track) const
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
index idx(index i, index j) const
position index
bool validity_
tells wether the vertex is really valid.
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< TrackBaseRef > tracks_
reference to tracks
trackRef_iterator tracks_end() const
last iterator over tracks
void add(const TrackBaseRef &r, float w=1.0)
add a reference to a Track
bool hasRefittedTracks() const
Checks whether refitted tracks are stored.
Structure Point Contains parameters of Gaussian fits to DMRs.
math::XYZTLorentzVectorD p4(float mass=0.13957018, float minWeight=0.5) const
Returns the four momentum of the sum of the tracks, assuming the given mass for the decay products.
std::vector< Track > refittedTracks_
The vector of refitted tracks.
trackRef_iterator tracks_begin() const
first iterator over tracks
size_t tracksSize() const
number of tracks
float trackWeight(const TREF &r) const
returns the weight with which a Track has contributed to the vertex-fit.
void fill(CovarianceMatrix &v) const
fill SMatrix
float covariance_[size4D]
covariance matrix (4x4) as vector
unsigned int nTracks(float minWeight=0.5) const
Returns the number of tracks in the vertex with weight above minWeight.
unsigned int index
index type
math::Error< dimension4D >::type Error4D
covariance error matrix (4x4)
std::vector< uint8_t > weights_