2 #include <Math/GenVector/PxPyPzE4D.h>
3 #include <Math/GenVector/PxPyPzM4D.h>
9 chi2_( chi2 ), ndof_( ndof ), position_( p ) {
19 chi2_( 0.0 ), ndof_( 0 ), position_( p ) {
89 throw cms::Exception(
"Vertex") <<
"No refitted tracks stored in vertex\n";
90 std::vector<Track>::const_iterator it =
93 throw cms::Exception(
"Vertex") <<
"Refitted track not found in list\n";
101 throw cms::Exception(
"Vertex") <<
"No refitted tracks stored in vertex\n";
117 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double> > vec;
123 vec.SetPx(iter->px());
124 vec.SetPy(iter->py());
125 vec.SetPz(iter->pz());
133 for(std::vector<reco::TrackBaseRef>::const_iterator iter =
tracks_begin();
136 vec.SetPx((*iter)->px());
137 vec.SetPy((*iter)->py());
138 vec.SetPz((*iter)->pz());
std::vector< TrackBaseRef > tracks_
reference to tracks
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
trackRef_iterator tracks_end() const
last iterator over tracks
TrackBaseRef originalTrack(const Track &refTrack) const
Track refittedTrack(const TrackBaseRef &track) const
std::vector< Track > refittedTracks_
The vector of refitted tracks.
bool hasRefittedTracks() const
Checks whether refitted tracks are stored.
math::Error< dimension >::type Error
covariance error matrix (3x3)
void fill(CovarianceMatrix &v) const
fill SMatrix
unsigned int index
index type
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
float trackWeight(const TrackBaseRef &r) const
returns the weight with which a Track has contributed to the vertex-fit.
math::XYZPoint Point
point in the space
void add(const TrackBaseRef &r, float w=1.0)
add a reference to a Track
unsigned int nTracks(float minWeight=0.5) const
Returns the number of tracks in the vertex with weight above minWeight.
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< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
trackRef_iterator tracks_begin() const
first iterator over tracks
float covariance_[size]
covariance matrix (3x3) as vector
index idx(index i, index j) const
position index
tuple size
Write out results.
size_t tracksSize() const
number of tracks
bool validity_
tells wether the vertex is really valid.
std::vector< uint8_t > weights_