2 #include <Math/GenVector/PxPyPzE4D.h> 3 #include <Math/GenVector/PxPyPzM4D.h> 9 chi2_( chi2 ), ndof_( ndof ), position_( p ), time_(0.) {
13 for(
index j = 0; j <=
i; ++ j ) {
29 for(
index j = 0; j <=
i; ++ j )
38 for(
index j = 0; j <=
i; ++ j ) {
53 for(
index j = 0; j <=
i; ++ j )
61 err = temp.Sub<
Error>(0,0);
67 for(
index j = 0; j <=
i; ++ j )
111 throw cms::Exception(
"Vertex") <<
"No refitted tracks stored in vertex\n";
112 std::vector<Track>::const_iterator it =
115 throw cms::Exception(
"Vertex") <<
"Refitted track not found in list\n";
123 throw cms::Exception(
"Vertex") <<
"No refitted tracks stored in vertex\n";
139 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double> > vec;
145 vec.SetPx(iter->px());
146 vec.SetPy(iter->py());
147 vec.SetPz(iter->pz());
155 for(std::vector<reco::TrackBaseRef>::const_iterator iter =
tracks_begin();
158 vec.SetPx((*iter)->px());
159 vec.SetPy((*iter)->py());
160 vec.SetPz((*iter)->pz());
void fill(CovarianceMatrix &v) const
fill SMatrix
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)
std::vector< TrackBaseRef > tracks_
reference to tracks
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
double chi2() const
chi-squares
float trackWeight(const TREF &r) const
returns the weight with which a Track has contributed to the vertex-fit.
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...
float covariance_[size4D]
covariance matrix (4x4) as vector
Structure Point Contains parameters of Gaussian fits to DMRs.
math::Error< dimension4D >::type Error4D
covariance error matrix (4x4)
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
trackRef_iterator tracks_begin() const
first iterator over tracks
index idx(index i, index j) const
position index
size_t tracksSize() const
number of tracks
float ndof_
number of degrees of freedom
bool validity_
tells wether the vertex is really valid.
std::vector< uint8_t > weights_