CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes
reco::Vertex Class Reference

#include <Vertex.h>

Inheritance diagram for reco::Vertex:
reco::PFDisplacedVertex

Classes

class  TrackEqual
 

Public Types

enum  { dimension = 3, dimension4D = 4 }
 error matrix dimension More...
 
enum  { size = dimension * ( dimension + 1 ) / 2, size4D = ( dimension4D ) * ( dimension4D + 1 ) / 2 }
 matix size More...
 
typedef math::Error< dimension >::type CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef math::Error< dimension4D >::type CovarianceMatrix4D
 covariance error matrix (4x4) More...
 
typedef math::Error< dimension >::type Error
 covariance error matrix (3x3) More...
 
typedef math::Error< dimension4D >::type Error4D
 covariance error matrix (4x4) More...
 
typedef unsigned int index
 index type More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef std::vector< TrackBaseRef >::const_iterator trackRef_iterator
 The iteratator for the vector<TrackRef> More...
 

Public Member Functions

void add (const TrackBaseRef &r, float w=1.0)
 add a reference to a Track More...
 
void add (const TrackBaseRef &r, const Track &refTrack, float w=1.0)
 add the original a Track(reference) and the smoothed Track More...
 
double chi2 () const
 chi-squares More...
 
double covariance (int i, int j) const
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix covariance () const
 return SMatrix More...
 
CovarianceMatrix4D covariance4D () const
 return SMatrix 4D More...
 
Error error () const
 return SMatrix More...
 
Error4D error4D () const
 return SMatrix More...
 
void fill (CovarianceMatrix &v) const
 fill SMatrix More...
 
void fill (CovarianceMatrix4D &v) const
 4D version More...
 
bool hasRefittedTracks () const
 Checks whether refitted tracks are stored. More...
 
bool isFake () const
 
bool isValid () const
 Tells whether the vertex is valid. More...
 
double ndof () const
 
double normalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
unsigned int nTracks (float minWeight=0.5) const
 Returns the number of tracks in the vertex with weight above minWeight. More...
 
TrackBaseRef originalTrack (const Track &refTrack) const
 
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. More...
 
const Pointposition () const
 position More...
 
Track refittedTrack (const TrackBaseRef &track) const
 
Track refittedTrack (const TrackRef &track) const
 
const std::vector< Track > & refittedTracks () const
 Returns the container of refitted tracks. More...
 
void removeTracks ()
 
double t () const
 t coordinate More...
 
double tError () const
 error on t More...
 
const TrackBaseReftrackRefAt (size_t idx) const
 python friendly track getting More...
 
trackRef_iterator tracks_begin () const
 first iterator over tracks More...
 
trackRef_iterator tracks_end () const
 last iterator over tracks More...
 
size_t tracksSize () const
 number of tracks More...
 
template<typename TREF >
float trackWeight (const TREF &r) const
 returns the weight with which a Track has contributed to the vertex-fit. More...
 
 Vertex ()
 
 Vertex (const Point &, const Error &)
 Constructor for a fake vertex. More...
 
 Vertex (const Point &, const Error4D &, double)
 Constructor for a fake vertex. 4D. More...
 
 Vertex (const Point &, const Error &, double chi2, double ndof, size_t size)
 constructor for a valid vertex, with all data More...
 
 Vertex (const Point &, const Error4D &, double time, double chi2, double ndof, size_t size)
 constructor for a valid vertex, with all data 4D More...
 
double x () const
 x coordinate More...
 
double xError () const
 error on x More...
 
double y () const
 y coordinate More...
 
double yError () const
 error on y More...
 
double z () const
 z coordinate More...
 
double zError () const
 error on z More...
 

Private Member Functions

index idx (index i, index j) const
 position index More...
 

Private Attributes

float chi2_
 chi-sqared More...
 
float covariance_ [size4D]
 covariance matrix (4x4) as vector More...
 
float ndof_
 number of degrees of freedom More...
 
Point position_
 position More...
 
std::vector< TrackrefittedTracks_
 The vector of refitted tracks. More...
 
double time_
 
std::vector< TrackBaseReftracks_
 reference to tracks More...
 
bool validity_
 tells wether the vertex is really valid. More...
 
std::vector< uint8_t > weights_
 

Detailed Description

A reconstructed Vertex providing position, error, chi2, ndof and reconstrudted tracks. The vertex can be valid, fake, or invalid. A valid vertex is one which has been obtained from a vertex fit of tracks, and all data is meaningful A fake vertex is a vertex which was not made out of a proper fit with tracks, but still has a position and error (chi2 and ndof are null). For a primary vertex, it could simply be the beam line. A fake vertex is considered valid. An invalid vertex has no meaningful data.

Author
Luca Lista, INFN

Definition at line 34 of file Vertex.h.

Member Typedef Documentation

covariance error matrix (3x3)

Definition at line 45 of file Vertex.h.

covariance error matrix (4x4)

Definition at line 49 of file Vertex.h.

covariance error matrix (3x3)

Definition at line 43 of file Vertex.h.

covariance error matrix (4x4)

Definition at line 47 of file Vertex.h.

typedef unsigned int reco::Vertex::index

index type

Definition at line 53 of file Vertex.h.

point in the space

Definition at line 39 of file Vertex.h.

typedef std::vector<TrackBaseRef >::const_iterator reco::Vertex::trackRef_iterator

The iteratator for the vector<TrackRef>

Definition at line 37 of file Vertex.h.

Member Enumeration Documentation

anonymous enum

error matrix dimension

Enumerator
dimension 
dimension4D 

Definition at line 41 of file Vertex.h.

anonymous enum

matix size

Enumerator
size 
size4D 

Definition at line 51 of file Vertex.h.

Constructor & Destructor Documentation

reco::Vertex::Vertex ( )
inline

default constructor - The vertex will not be valid. Position, error, chi2, ndof will have random entries, and the vectors of tracks will be empty Use the isValid method to check that your vertex is valid.

Definition at line 57 of file Vertex.h.

References chi2(), covariance_, mps_fire::i, ndof(), size, size4D, ntuplemaker::time, and validity_.

57  : chi2_( 0.0 ), ndof_( 0 ), position_(0.,0.,0.), time_(0.) { validity_ = false; for(int i = 0; i < size4D; ++ i ) covariance_[i]=0.;
58 }
float chi2_
chi-sqared
Definition: Vertex.h:182
Point position_
position
Definition: Vertex.h:186
float covariance_[size4D]
covariance matrix (4x4) as vector
Definition: Vertex.h:188
double time_
Definition: Vertex.h:196
float ndof_
number of degrees of freedom
Definition: Vertex.h:184
bool validity_
tells wether the vertex is really valid.
Definition: Vertex.h:195
Vertex::Vertex ( const Point p,
const Error err 
)

Constructor for a fake vertex.

Definition at line 34 of file Vertex.cc.

References covariance_, dimension, dimension4D, mps_fire::i, idx(), and validity_.

34  :
35  chi2_( 0.0 ), ndof_( 0 ), position_( p ), time_(0.) {
36  index idx = 0;
37  for( index i = 0; i < dimension4D; ++ i ) {
38  for( index j = 0; j <= i; ++ j ) {
39  if( i == dimension || j == dimension ) {
40  covariance_[ idx ++ ] = 0.0;
41  } else {
42  covariance_[ idx ++ ] = err( i, j );
43  }
44  }
45  }
46  validity_ = true;
47 }
float chi2_
chi-sqared
Definition: Vertex.h:182
unsigned int index
index type
Definition: Vertex.h:53
Point position_
position
Definition: Vertex.h:186
float covariance_[size4D]
covariance matrix (4x4) as vector
Definition: Vertex.h:188
double time_
Definition: Vertex.h:196
index idx(index i, index j) const
position index
Definition: Vertex.h:199
float ndof_
number of degrees of freedom
Definition: Vertex.h:184
bool validity_
tells wether the vertex is really valid.
Definition: Vertex.h:195
Vertex::Vertex ( const Point p,
const Error4D err,
double  time 
)

Constructor for a fake vertex. 4D.

Definition at line 49 of file Vertex.cc.

References covariance_, dimension, mps_fire::i, idx(), and validity_.

49  :
50  chi2_( 0.0 ), ndof_( 0 ), position_( p ), time_(time) {
51  index idx = 0;
52  for( index i = 0; i < dimension + 1; ++ i )
53  for( index j = 0; j <= i; ++ j )
54  covariance_[ idx ++ ] = err( i, j );
55  validity_ = true;
56 }
float chi2_
chi-sqared
Definition: Vertex.h:182
unsigned int index
index type
Definition: Vertex.h:53
Point position_
position
Definition: Vertex.h:186
float covariance_[size4D]
covariance matrix (4x4) as vector
Definition: Vertex.h:188
double time_
Definition: Vertex.h:196
index idx(index i, index j) const
position index
Definition: Vertex.h:199
float ndof_
number of degrees of freedom
Definition: Vertex.h:184
bool validity_
tells wether the vertex is really valid.
Definition: Vertex.h:195
Vertex::Vertex ( const Point p,
const Error err,
double  chi2,
double  ndof,
size_t  size 
)

constructor for a valid vertex, with all data

Definition at line 8 of file Vertex.cc.

References covariance_, dimension, dimension4D, mps_fire::i, idx(), tracks_, and validity_.

8  :
9  chi2_( chi2 ), ndof_( ndof ), position_( p ), time_(0.) {
10  tracks_.reserve( size );
11  index idx = 0;
12  for( index i = 0; i < dimension4D; ++ i ) {
13  for( index j = 0; j <= i; ++ j ) {
14  if( i == dimension || j == dimension ) {
15  covariance_[ idx ++ ] = 0.0;
16  } else {
17  covariance_[ idx ++ ] = err( i, j );
18  }
19  }
20  }
21  validity_ = true;
22 }
float chi2_
chi-sqared
Definition: Vertex.h:182
std::vector< TrackBaseRef > tracks_
reference to tracks
Definition: Vertex.h:190
unsigned int index
index type
Definition: Vertex.h:53
double chi2() const
chi-squares
Definition: Vertex.h:98
double ndof() const
Definition: Vertex.h:105
Point position_
position
Definition: Vertex.h:186
float covariance_[size4D]
covariance matrix (4x4) as vector
Definition: Vertex.h:188
double time_
Definition: Vertex.h:196
index idx(index i, index j) const
position index
Definition: Vertex.h:199
float ndof_
number of degrees of freedom
Definition: Vertex.h:184
bool validity_
tells wether the vertex is really valid.
Definition: Vertex.h:195
Vertex::Vertex ( const Point p,
const Error4D err,
double  time,
double  chi2,
double  ndof,
size_t  size 
)

constructor for a valid vertex, with all data 4D

Definition at line 24 of file Vertex.cc.

References covariance_, dimension4D, mps_fire::i, idx(), size4D, tracks_, and validity_.

24  :
25  chi2_( chi2 ), ndof_( ndof ), position_( p ), time_(time) {
26  tracks_.reserve( size4D );
27  index idx = 0;
28  for( index i = 0; i < dimension4D; ++ i )
29  for( index j = 0; j <= i; ++ j )
30  covariance_[ idx ++ ] = err( i, j );
31  validity_ = true;
32 }
float chi2_
chi-sqared
Definition: Vertex.h:182
std::vector< TrackBaseRef > tracks_
reference to tracks
Definition: Vertex.h:190
unsigned int index
index type
Definition: Vertex.h:53
double chi2() const
chi-squares
Definition: Vertex.h:98
double ndof() const
Definition: Vertex.h:105
Point position_
position
Definition: Vertex.h:186
float covariance_[size4D]
covariance matrix (4x4) as vector
Definition: Vertex.h:188
double time_
Definition: Vertex.h:196
index idx(index i, index j) const
position index
Definition: Vertex.h:199
float ndof_
number of degrees of freedom
Definition: Vertex.h:184
bool validity_
tells wether the vertex is really valid.
Definition: Vertex.h:195

Member Function Documentation

void reco::Vertex::add ( const TrackBaseRef r,
float  w = 1.0 
)
void reco::Vertex::add ( const TrackBaseRef r,
const Track refTrack,
float  w = 1.0 
)

add the original a Track(reference) and the smoothed Track

Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

double reco::Vertex::chi2 ( void  ) const
inline
double reco::Vertex::covariance ( int  i,
int  j 
) const
inline

(i, j)-th element of error matrix, i, j = 0, ... 2

Definition at line 130 of file Vertex.h.

References covariance_, and idx().

Referenced by SignedImpactParameter3D::apply(), SignedTransverseImpactParameter::apply(), SignedDecayLength3D::apply(), VertexDistance::compatibility(), reco::TemplatedSecondaryVertex< SV >::computeDist1d(), reco::TemplatedSecondaryVertex< SV >::computeDist2d(), reco::TemplatedSecondaryVertex< SV >::computeDist3d(), GsfConstraintAtVertex::constrainAtVertex(), svhelper::cov33(), tauImpactParameter::ParticleBuilder::createLorentzVectorParticle(), VertexDistance::distance(), VertexCompatibleWithBeam::distanceToBeam(), GsfVertexTrackCompatibilityEstimator::estimate(), KalmanVertexTrackCompatibilityEstimator< N >::estimate(), V0Fitter::fitAll(), IPTools::linearizedSignedImpactParameter3D(), TracksClusteringFromDisplacedSeed::nearTracks(), ConversionHitChecker::nHitsBeforeVtx(), VertexCompatibleWithBeam::operator()(), VertexConstraintProducer::produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >::produce(), PVFitter::pvQuality(), PFCandCommonVertexFitterBase::set(), IPTools::signedDecayLength3D(), TrackVertexArbitration< VTX >::trackVertexArbitrator(), reco::JetSignalVertexCompatibilityAlgo::trackVertexCompat(), PrimaryVertexMonitor::vertexPlots(), reco::V0Candidate::vtxCovariance(), and SignedTransverseImpactParameter::zImpactParameter().

130  {
131  return covariance_[ idx( i, j ) ];
132  }
float covariance_[size4D]
covariance matrix (4x4) as vector
Definition: Vertex.h:188
index idx(index i, index j) const
position index
Definition: Vertex.h:199
CovarianceMatrix reco::Vertex::covariance ( void  ) const
inline

return SMatrix

Definition at line 134 of file Vertex.h.

References fill(), and funct::m.

Referenced by tError(), xError(), yError(), and zError().

134 { Error m; fill( m ); return m; }
void fill(CovarianceMatrix &v) const
fill SMatrix
math::Error< dimension >::type Error
covariance error matrix (3x3)
Definition: Vertex.h:43
CovarianceMatrix4D reco::Vertex::covariance4D ( ) const
inline

return SMatrix 4D

Definition at line 136 of file Vertex.h.

References fill(), and funct::m.

Referenced by pat::PATVertexSlimmer::produce().

136 { Error4D m; fill( m ); return m; }
void fill(CovarianceMatrix &v) const
fill SMatrix
math::Error< dimension4D >::type Error4D
covariance error matrix (4x4)
Definition: Vertex.h:47
Error reco::Vertex::error ( ) const
inline
Error4D reco::Vertex::error4D ( ) const
inline

return SMatrix

Definition at line 141 of file Vertex.h.

References fill(), funct::m, and findQualityFiles::v.

141 { Error4D m; fill( m ); return m; }
void fill(CovarianceMatrix &v) const
fill SMatrix
math::Error< dimension4D >::type Error4D
covariance error matrix (4x4)
Definition: Vertex.h:47
void reco::Vertex::fill ( CovarianceMatrix v) const
void Vertex::fill ( CovarianceMatrix4D v) const

4D version

Definition at line 58 of file Vertex.cc.

References covariance_, dimension4D, fill(), mps_fire::i, idx(), and groupFilesInBlocks::temp.

58  {
59  Error4D temp;
60  fill(temp);
61  err = temp.Sub<Error>(0,0);
62 }
void fill(CovarianceMatrix &v) const
fill SMatrix
fixed size error matrix
Definition: Error.h:32
math::Error< dimension4D >::type Error4D
covariance error matrix (4x4)
Definition: Vertex.h:47
bool reco::Vertex::hasRefittedTracks ( ) const
inline

Checks whether refitted tracks are stored.

Definition at line 149 of file Vertex.h.

References originalTrack(), refittedTrack(), refittedTracks_, and HiIsolationCommonParameters_cff::track.

Referenced by nTracks(), GhostTrackComputer::operator()(), CombinedSVComputer::operator()(), p4(), Onia2MuMuPAT::produce(), and reco::TrackKinematics::TrackKinematics().

149 {return !refittedTracks_.empty();}
std::vector< Track > refittedTracks_
The vector of refitted tracks.
Definition: Vertex.h:192
index reco::Vertex::idx ( index  i,
index  j 
) const
inlineprivate

position index

Definition at line 199 of file Vertex.h.

References a, and b.

Referenced by covariance(), fill(), ntupleDataFormat.TrackMatchInfo::track(), ntupleDataFormat.TrackingParticleMatchInfo::trackingParticle(), trackRefAt(), and Vertex().

199  {
200  int a = ( i <= j ? i : j ), b = ( i <= j ? j : i );
201  return b * ( b + 1 ) / 2 + a;
202  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
bool reco::Vertex::isFake ( ) const
inline
bool reco::Vertex::isValid ( void  ) const
inline
double reco::Vertex::ndof ( ) const
inline

Number of degrees of freedom Meant to be Double32_t for soft-assignment fitters: tracks may contribute to the vertex with fractional weights. The ndof is then = to the sum of the track weights. see e.g. CMS NOTE-2006/032, CMS NOTE-2004/002

Definition at line 105 of file Vertex.h.

References ndof_.

Referenced by BPHCompositeVertexSelect::accept(), BPHFittedVertexSelect::accept(), CMSDAS11DijetTestAnalyzer::analyze(), CMSDAS11DijetAnalyzer::analyze(), TrackingRecoMaterialAnalyser::analyze(), VertexMonitor::analyze(), V0Monitor::analyze(), ElectronConversionRejectionValidator::analyze(), SiPixelTrackResidualSource::analyze(), TkConvValidator::analyze(), TrackingMonitor::analyze(), PrimaryVertexValidation::analyze(), BPHMonitor::analyze(), VertexAssociatorByPositionAndTracks::associateRecoToSim(), VertexAssociatorByPositionAndTracks::associateSimToReco(), ConversionProducer::buildCollection(), PileupJetIdAlgo::computeIdVariables(), MVAJetPuId::computeIdVariables(), ConversionLessByChi2(), reco::PFDisplacedVertex::Dump(), PrimaryVertexAnalyzer4PUSlimmed::fillGenAssociatedRecoVertexHistograms(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), TrackingNtuple::fillVertices(), V0Fitter::fitAll(), PFDisplacedVertexFinder::fitVertexFromSeed(), ConversionTools::getVtxFitProb(), OniaPhotonConversionProducer::HighpuritySubset(), HLTmumutkFilter::hltFilter(), HLTmumutktkFilter::hltFilter(), ConversionTools::isGoodConversion(), HcalHBHEMuonAnalyzer::isGoodVertex(), PVObjectSelector::operator()(), EventVtxInfoNtupleDumper::produce(), pat::PATVertexSlimmer::produce(), pat::PATSecondaryVertexSlimmer::produce(), ConeIsolation::produce(), VertexCompositeCandidateCollectionSelector::produce(), PFchsMETcorrInputProducer::produce(), pat::PATConversionProducer::produce(), CandCommonVertexFitterBase::set(), PFCandCommonVertexFitterBase::set(), Vertex(), PrimaryVertexMonitor::vertexPlots(), and BPHChi2Select::~BPHChi2Select().

105 { return ndof_; }
float ndof_
number of degrees of freedom
Definition: Vertex.h:184
double reco::Vertex::normalizedChi2 ( ) const
inline
unsigned int Vertex::nTracks ( float  minWeight = 0.5) const

Returns the number of tracks in the vertex with weight above minWeight.

Definition at line 169 of file Vertex.cc.

References hasRefittedTracks(), fftjetcommon_cfi::minWeight, gen::n, originalTrack(), refittedTracks_, tracks_begin(), tracks_end(), and trackWeight().

Referenced by nTracks(), and refittedTracks().

170 {
171  int n=0;
172  if(hasRefittedTracks()) {
173  for(std::vector<Track>::const_iterator iter = refittedTracks_.begin(); iter != refittedTracks_.end(); ++iter)
174  if (trackWeight(originalTrack(*iter)) >=minWeight)
175  n++;
176  }
177  else
178  {
179  for(std::vector<reco::TrackBaseRef>::const_iterator iter = tracks_begin(); iter != tracks_end(); iter++)
180  if (trackWeight(*iter) >=minWeight)
181  n++;
182  }
183  return n;
184 }
trackRef_iterator tracks_end() const
last iterator over tracks
Definition: Vertex.cc:81
TrackBaseRef originalTrack(const Track &refTrack) const
Definition: Vertex.cc:108
std::vector< Track > refittedTracks_
The vector of refitted tracks.
Definition: Vertex.h:192
bool hasRefittedTracks() const
Checks whether refitted tracks are stored.
Definition: Vertex.h:149
float trackWeight(const TREF &r) const
returns the weight with which a Track has contributed to the vertex-fit.
Definition: Vertex.h:81
trackRef_iterator tracks_begin() const
first iterator over tracks
Definition: Vertex.cc:76
TrackBaseRef Vertex::originalTrack ( const Track refTrack) const

Returns the original track which corresponds to a particular refitted Track Throws an exception if now refitted tracks are stored ot the track is not found in the list

Definition at line 108 of file Vertex.cc.

References Exception, spr::find(), refittedTrack(), refittedTracks_, HiIsolationCommonParameters_cff::track, tracks_, tracks_begin(), and tracks_end().

Referenced by PFDisplacedVertexFinder::commonTracks(), PF_PU_AssoMapAlgos::FindNIVertex(), hasRefittedTracks(), PFDisplacedVertexHelper::identifyVertex(), reco::PFDisplacedVertex::isBSM(), PFDisplacedVertexHelper::lambdaCP(), reco::PFDisplacedVertex::momentum(), nTracks(), p4(), and Onia2MuMuPAT::produce().

109 {
110  if (refittedTracks_.empty())
111  throw cms::Exception("Vertex") << "No refitted tracks stored in vertex\n";
112  std::vector<Track>::const_iterator it =
113  find_if(refittedTracks_.begin(), refittedTracks_.end(), TrackEqual(refTrack));
114  if (it==refittedTracks_.end())
115  throw cms::Exception("Vertex") << "Refitted track not found in list\n";
116  size_t pos = it - refittedTracks_.begin();
117  return tracks_[pos];
118 }
std::vector< Track > refittedTracks_
The vector of refitted tracks.
Definition: Vertex.h:192
std::vector< TrackBaseRef > tracks_
reference to tracks
Definition: Vertex.h:190
math::XYZTLorentzVectorD Vertex::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.

Definition at line 135 of file Vertex.cc.

References hasRefittedTracks(), fftjetcommon_cfi::minWeight, originalTrack(), refittedTracks_, tracks_begin(), tracks_end(), and trackWeight().

Referenced by FWVertexProxyBuilder::build(), BtoCharmDecayVertexMergerT< VTX >::buildVertexProxy(), Tau.Tau::dxy_approx(), Tau.Tau::dz(), Lepton.Lepton::p4WithFSR(), pat::PATSecondaryVertexSlimmer::produce(), reco::Conversion::refittedPair4Momentum(), and refittedTracks().

136 {
137 
139  ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double> > vec;
140 
141  if(hasRefittedTracks()) {
142  for(std::vector<Track>::const_iterator iter = refittedTracks_.begin();
143  iter != refittedTracks_.end(); ++iter) {
144  if (trackWeight(originalTrack(*iter)) >=minWeight) {
145  vec.SetPx(iter->px());
146  vec.SetPy(iter->py());
147  vec.SetPz(iter->pz());
148  vec.SetM(mass);
149  sum += vec;
150  }
151  }
152  }
153  else
154  {
155  for(std::vector<reco::TrackBaseRef>::const_iterator iter = tracks_begin();
156  iter != tracks_end(); iter++) {
157  if (trackWeight(*iter) >=minWeight) {
158  vec.SetPx((*iter)->px());
159  vec.SetPy((*iter)->py());
160  vec.SetPz((*iter)->pz());
161  vec.SetM(mass);
162  sum += vec;
163  }
164  }
165  }
166  return sum;
167 }
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
trackRef_iterator tracks_end() const
last iterator over tracks
Definition: Vertex.cc:81
TrackBaseRef originalTrack(const Track &refTrack) const
Definition: Vertex.cc:108
std::vector< Track > refittedTracks_
The vector of refitted tracks.
Definition: Vertex.h:192
bool hasRefittedTracks() const
Checks whether refitted tracks are stored.
Definition: Vertex.h:149
float trackWeight(const TREF &r) const
returns the weight with which a Track has contributed to the vertex-fit.
Definition: Vertex.h:81
trackRef_iterator tracks_begin() const
first iterator over tracks
Definition: Vertex.cc:76
const Point& reco::Vertex::position ( ) const
inline

position

Definition at line 109 of file Vertex.h.

References position_.

Referenced by IPTools::absoluteImpactParameter(), IPTools::absoluteImpactParameter3D(), IPTools::absoluteTransverseImpactParameter(), BPHSoftMuonSelect::accept(), CMSDAS11DijetAnalyzer::analyze(), CMSDAS11DijetTestAnalyzer::analyze(), TrackTypeMonitor::analyze(), TrackingRecoMaterialAnalyser::analyze(), dqm::TrackAnalyzer::analyze(), ElectronConversionRejectionValidator::analyze(), BDHadronTrackMonitoringAnalyzer::analyze(), TkConvValidator::analyze(), HcalRaddamMuon::analyze(), TopMonitor::analyze(), TrackingMonitor::analyze(), PrimaryVertexValidation::analyze(), METMonitor::analyze(), HTMonitor::analyze(), FSQDQM::analyze(), PackedCandidateTrackValidator::analyze(), SignedImpactParameter3D::apply(), CaloRecoTauAlgorithm::buildCaloTau(), PFRecoTauAlgorithm::buildPFTau(), pat::LeptonVertexSignificance::calculate(), LeptonJetVarProducer< T >::calculatePtRatioRel(), reco::PFMETProducerMVA::chargedFracInCone(), ConversionProducer::checkPhi(), VertexDistance::compatibility(), reco::TemplatedSecondaryVertex< SV >::computeDist1d(), reco::TemplatedSecondaryVertex< SV >::computeDist2d(), reco::TemplatedSecondaryVertex< SV >::computeDist3d(), PileupJetIdAlgo::computeIdVariables(), MVAJetPuId::computeIdVariables(), pat::MuonMvaEstimator::computeMva(), reco::PFMETProducerMVA::computePFCandidateInfo(), vertexTools::computeSharedTracks(), GsfConstraintAtVertex::constrainAtVertex(), EcalBarrelClusterFastTimer::correctTimeToVertex(), DeepTauId::createEgammaBlockInputs(), DeepTauId::createHadronsBlockInputs(), tauImpactParameter::ParticleBuilder::createLorentzVectorParticle(), DeepTauId::createMuonBlockInputs(), VertexDistance::distance(), VertexCompatibleWithBeam::distanceToBeam(), dummyPrediction(), reco::PFDisplacedVertex::Dump(), pat::PATMuonProducer::embedHighLevel(), pat::PATElectronProducer::embedHighLevel(), GsfVertexTrackCompatibilityEstimator::estimate(), KalmanVertexTrackCompatibilityEstimator< N >::estimate(), BPHWriteSpecificDecay::fill(), SingleTopTChannelLepton_miniAOD::MonitorEnsemble::fill(), TopSingleLepton_miniAOD::MonitorEnsemble::fill(), SingleTopTChannelLepton::MonitorEnsemble::fill(), TopSingleLepton::MonitorEnsemble::fill(), DeepBoostedJetTagInfoProducer::fillParticleFeatures(), PFEGammaAlgo::fillPFCandidates(), PrimaryVertexValidation::fillTrackHistos(), TrackingFailureFilter::filter(), TauTagTools::filteredPFChargedHadrCands(), TauTagTools::filteredTracks(), NuclearInteractionEDProducer::findAdditionalSecondaryTracks(), PF_PU_AssoMapAlgos::FindConversionVertex(), PF_PU_AssoMapAlgos::FindNIVertex(), PFDisplacedVertexFinder::fitVertexFromSeed(), L1TTauOffline::getPrimaryVertex(), HLTmumutkFilter::hltFilter(), HLTmumutktkFilter::hltFilter(), PFDisplacedVertexHelper::identifyVertex(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), NuclearVertexBuilder::isCompatible(), HcalHBHEMuonAnalyzer::isGoodVertex(), muon::isHighPtMuon(), EGammaMvaEleEstimator::isoMvaValue(), muon::isSoftMuon(), MuonIDTableProducer::isSoftMuonHIP(), muon::isTightMuon(), isTightMuonCustom(), MuonIDTableProducer::isTrackerHighPt(), muon::isTrackerHighPtMuon(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::loop(), OniaPhotonConversionProducer::makePhotonCandidate(), muon::makeSelectorBitset(), L3MuonTrajectoryBuilder::makeTkCandCollection(), ConversionTools::matchesConversion(), EGammaMvaEleEstimatorCSA14::mvaValue(), EGammaMvaEleEstimator::mvaValue(), TracksClusteringFromDisplacedSeed::nearTracks(), NuclearTrackCorrector::newTrajNeeded(), VertexCompatibleWithBeam::operator()(), reco::VertexFilter::operator()(), PVObjectSelector::operator()(), pat::VertexAssociationSelector::operator()(), PrimaryVertexValidation::passesTrackCuts(), PFTauElementsOperators::PFGammaCandsInOutEllipse(), position(), PFAlgo::processBlock(), EventVtxInfoNtupleDumper::produce(), pat::PATVertexSlimmer::produce(), pat::PATSecondaryVertexSlimmer::produce(), JetCoreClusterSplitter::produce(), TOFPIDProducer::produce(), Onia2MuMuPAT::produce(), pat::PATIsolatedTrackProducer::produce(), VertexFromTrackProducer::produce(), pat::PATMuonProducer::produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >::produce(), IPProducer< Container, Base, Helper >::produce(), PrimaryVertexMonitor::pvTracksPlots(), TkConvValidator::recalculateMomentumAtFittedVertex(), TauElementsOperators::replaceSubStr(), pf2pat::IPCutPFCandidateSelectorDefinition::select(), PFTauElementsOperators::setAreaMetricrecoElementsmaxabsEta(), pat::LeptonUpdater< T >::setDZ(), reco::PFDisplacedVertex::setPrimaryDirection(), reco::V0Candidate::setRecoVertex(), FWConvTrackHitsDetailView::setTextInfo(), VertexDistanceXY::signedDistance(), VertexDistance3D::signedDistance(), IPTools::signedImpactParameter3D(), IPTools::signedTransverseImpactParameter(), ConeIsolationAlgorithm::tag(), ConversionProducer::trackD0Cut(), QcdUeDQM::trackSelection(), TrackVertexArbitration< VTX >::trackVertexArbitrator(), reco::JetSignalVertexCompatibilityAlgo::trackVertexCompat(), PrimaryVertexMonitor::vertexPlots(), and reco::GhostTrackVertexFinder::vertices().

109 { return position_; }
Point position_
position
Definition: Vertex.h:186
Track reco::Vertex::refittedTrack ( const TrackBaseRef track) const

Returns the refitted track which corresponds to a particular original Track Throws an exception if now refitted tracks are stored ot the track is not found in the list

Referenced by hasRefittedTracks(), GhostTrackComputer::operator()(), CombinedSVComputer::operator()(), originalTrack(), refittedTrack(), reco::TrackKinematics::TrackKinematics(), and reco::PFDisplacedVertex::trackPosition().

Track Vertex::refittedTrack ( const TrackRef track) const

Returns the refitted track which corresponds to a particular original Track Throws an exception if now refitted tracks are stored ot the track is not found in the list

Definition at line 130 of file Vertex.cc.

References refittedTrack().

131 {
132  return refittedTrack(TrackBaseRef(track));
133 }
Track refittedTrack(const TrackBaseRef &track) const
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
Definition: TrackFwd.h:36
const std::vector<Track>& reco::Vertex::refittedTracks ( ) const
inline
void Vertex::removeTracks ( )

Definition at line 101 of file Vertex.cc.

References refittedTracks_, tracks_, and weights_.

Referenced by reco::PFDisplacedVertex::cleanTracks(), PFDisplacedVertexFinder::fitVertexFromSeed(), and isFake().

102 {
103  weights_.clear();
104  tracks_.clear();
105  refittedTracks_.clear();
106 }
std::vector< Track > refittedTracks_
The vector of refitted tracks.
Definition: Vertex.h:192
std::vector< TrackBaseRef > tracks_
reference to tracks
Definition: Vertex.h:190
std::vector< uint8_t > weights_
Definition: Vertex.h:193
double reco::Vertex::t ( ) const
inline
double reco::Vertex::tError ( ) const
inline

error on t

Definition at line 125 of file Vertex.h.

References covariance(), and mathSSE::sqrt().

Referenced by VertexAssociatorByPositionAndTracks::associateRecoToSim(), VertexAssociatorByPositionAndTracks::associateSimToReco(), and TOFPIDProducer::produce().

125 { return sqrt( covariance(3, 3) ); }
T sqrt(T t)
Definition: SSEVec.h:18
CovarianceMatrix covariance() const
return SMatrix
Definition: Vertex.h:134
const TrackBaseRef& reco::Vertex::trackRefAt ( size_t  idx) const
inline

python friendly track getting

Definition at line 96 of file Vertex.h.

References idx(), and tracks_.

96 { return tracks_[idx]; }
std::vector< TrackBaseRef > tracks_
reference to tracks
Definition: Vertex.h:190
index idx(index i, index j) const
position index
Definition: Vertex.h:199
Vertex::trackRef_iterator Vertex::tracks_begin ( ) const

first iterator over tracks

Definition at line 76 of file Vertex.cc.

References tracks_.

Referenced by NuclearVertexBuilder::addSecondaryTrack(), PatBJetVertexAnalyzer::analyze(), VertexMonitor::analyze(), PrimaryVertexValidation::analyze(), FSQDQM::analyze(), VertexAssociatorByTracks::associateRecoToSim(), VertexAssociatorByTracks::associateSimToReco(), FWSecVertexProxyBuilder::build(), FWVertexProxyBuilder::build(), NuclearLikelihood::calculate(), PrimaryVertexAnalyzer4PUSlimmed::calculatePurityAndFillHistograms(), calculateVertexSharedTracks(), PFIsolationEstimator::chargedHadronVertex(), MVAJetPuId::computeIdVariables(), vertexTools::computeSharedTracks(), computeSharedTracks(), GsfVertexTrackCompatibilityEstimator::estimate(), KalmanVertexTrackCompatibilityEstimator< N >::estimate(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), SVTagInfoValidationAnalyzer::fillSimToReco(), TrackingNtuple::fillVertices(), FFTJetPFPileupCleaner::findSomeVertexWFakes(), PATPrimaryVertexSelector::getVertexVariables(), HLTmumutkFilter::hltFilter(), HLTmumutktkFilter::hltFilter(), NuclearVertexBuilder::isCompatible(), PFEGammaFilters::isElectronSafeForJetMET(), nTracks(), CombinedSVComputer::operator()(), originalTrack(), p4(), reco::NuclearInteraction::primaryTrack(), pat::PATSecondaryVertexSlimmer::produce(), L2TauPixelIsoTagProducer::produce(), PFchsMETcorrInputProducer::produce(), Onia2MuMuPAT::produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >::produce(), PVClusterComparer::pTSquaredSum(), PrimaryVertexMonitor::pvTracksPlots(), PFEGammaAlgo::removeOrLinkECALClustersToKFTracks(), NuclearLikelihood::secondaryTrackMaxHits(), reco::NuclearInteraction::secondaryTracks_begin(), PFElectronAlgo::SetIDOutputs(), PFElectronAlgo::SetLinks(), BoostedDoubleSVProducer::setTracksPVBase(), PrimaryVertexResolution::sortTracksByPt(), VertexHigherPtSquared::sumPtSquared(), TrackerDpgAnalysis::sumPtSquared(), reco::TrackKinematics::TrackKinematics(), trackWeight(), and PrimaryVertexMonitor::vertexPlots().

77 {
78  return tracks_.begin();
79 }
std::vector< TrackBaseRef > tracks_
reference to tracks
Definition: Vertex.h:190
Vertex::trackRef_iterator Vertex::tracks_end ( ) const

last iterator over tracks

Definition at line 81 of file Vertex.cc.

References add(), alignCSCRings::r, refittedTracks_, tracks_, w, and weights_.

Referenced by NuclearVertexBuilder::addSecondaryTrack(), PatBJetVertexAnalyzer::analyze(), VertexMonitor::analyze(), PrimaryVertexValidation::analyze(), FSQDQM::analyze(), VertexAssociatorByTracks::associateRecoToSim(), VertexAssociatorByTracks::associateSimToReco(), FWSecVertexProxyBuilder::build(), FWVertexProxyBuilder::build(), PrimaryVertexAnalyzer4PUSlimmed::calculatePurityAndFillHistograms(), calculateVertexSharedTracks(), PFIsolationEstimator::chargedHadronVertex(), MVAJetPuId::computeIdVariables(), vertexTools::computeSharedTracks(), computeSharedTracks(), GsfVertexTrackCompatibilityEstimator::estimate(), KalmanVertexTrackCompatibilityEstimator< N >::estimate(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), TrackingNtuple::fillVertices(), FFTJetPFPileupCleaner::findSomeVertexWFakes(), PATPrimaryVertexSelector::getVertexVariables(), HLTmumutktkFilter::hltFilter(), PFEGammaFilters::isElectronSafeForJetMET(), nTracks(), CombinedSVComputer::operator()(), originalTrack(), p4(), pat::PATSecondaryVertexSlimmer::produce(), L2TauPixelIsoTagProducer::produce(), PFchsMETcorrInputProducer::produce(), Onia2MuMuPAT::produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >::produce(), PVClusterComparer::pTSquaredSum(), PrimaryVertexMonitor::pvTracksPlots(), PFEGammaAlgo::removeOrLinkECALClustersToKFTracks(), NuclearLikelihood::secondaryTrackMaxHits(), reco::NuclearInteraction::secondaryTracks_end(), PFElectronAlgo::SetIDOutputs(), PFElectronAlgo::SetLinks(), BoostedDoubleSVProducer::setTracksPVBase(), PrimaryVertexResolution::sortTracksByPt(), VertexHigherPtSquared::sumPtSquared(), TrackerDpgAnalysis::sumPtSquared(), reco::TrackKinematics::TrackKinematics(), trackWeight(), and PrimaryVertexMonitor::vertexPlots().

82 {
83 // if ( !(tracks_.size() ) ) createTracks();
84  return tracks_.end();
85  // return weights_.keys().end();
86 }
std::vector< TrackBaseRef > tracks_
reference to tracks
Definition: Vertex.h:190
size_t Vertex::tracksSize ( ) const
template<typename TREF >
float reco::Vertex::trackWeight ( const TREF &  r) const
inline

returns the weight with which a Track has contributed to the vertex-fit.

Definition at line 81 of file Vertex.h.

References mps_fire::i, t(), tracks_, tracks_begin(), tracks_end(), tracksSize(), and weights_.

Referenced by pat::PATLostTracks::addPackedCandidate(), VertexAssociatorByTracks::associateRecoToSim(), VertexAssociatorByTracks::associateSimToReco(), FWVertexProxyBuilder::build(), PFIsolationEstimator::chargedHadronVertex(), PileupJetIdAlgo::computeIdVariables(), vertexTools::computeSharedTracks(), computeSharedTracks(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), FFTJetPFPileupCleaner::findSomeVertexWFakes(), nTracks(), CombinedSVComputer::operator()(), p4(), pat::PATSecondaryVertexSlimmer::produce(), TOFPIDProducer::produce(), Onia2MuMuPAT::produce(), PrimaryVertexMonitor::pvTracksPlots(), BoostedDoubleSVProducer::setTracksPVBase(), reco::TrackKinematics::TrackKinematics(), trackWeight(), PrimaryVertexMonitor::vertexPlots(), and reco::btag::weight().

81  {
82  int i=0;
83  for(auto const & t : tracks_) {
84  if ( (r.id()==t.id()) & (t.key()==r.key()) ) return weights_[i]/255.f;
85  ++i;
86  }
87  return 0;
88  }
std::vector< TrackBaseRef > tracks_
reference to tracks
Definition: Vertex.h:190
double t() const
t coordinate
Definition: Vertex.h:117
std::vector< uint8_t > weights_
Definition: Vertex.h:193
double reco::Vertex::x ( ) const
inline

x coordinate

Definition at line 111 of file Vertex.h.

References position_.

Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), BPHCompositeVertexSelect::accept(), BPHFittedVertexSelect::accept(), PatVertexAnalyzer::analyze(), TopDiLeptonDQM::analyze(), V0Monitor::analyze(), TkConvValidator::analyze(), FSQDQM::analyze(), SignedImpactParameter3D::apply(), SignedTransverseImpactParameter::apply(), SignedDecayLength3D::apply(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), FWSecVertexProxyBuilder::build(), FWVertexProxyBuilder::build(), PFRecoTauAlgorithm::buildPFTau(), SignedDecayLength3D::closestApproachToJet(), SignedImpactParameter3D::closestApproachToJet(), IPTools::closestApproachToJet(), SignedImpactParameter3D::distance(), SignedImpactParameter3D::distanceWithJetAxis(), reco::Conversion::dxy(), reco::Conversion::dz(), PFPhotonAlgo::EvaluateSingleLegMVA(), PFEGammaAlgo::evaluateSingleLegMVA(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), TrackingNtuple::fillVertices(), V0Fitter::fitAll(), BtoCharmDecayVertexMergerT< VTX >::flightDirection(), flightDirection(), getVertexD0(), ConversionTools::isGoodConversion(), TCMETAlgo::isGoodTrack(), IPTools::jetTrackDistance(), IPTools::linearizedSignedImpactParameter3D(), reco::Conversion::lxy(), reco::PFDisplacedVertex::momentum(), ConversionHitChecker::nHitsBeforeVtx(), pat::VertexAssociationSelector::operator()(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), PFAlgo::processBlock(), EcalDetailedTimeRecHitProducer::produce(), VertexCompositeCandidateCollectionSelector::produce(), pat::PATConversionProducer::produce(), VertexConstraintProducer::produce(), PhotonIDValueMapProducer::produce(), ntupleDataFormat._HitObject::r(), ntupleDataFormat._HitObject::r3D(), PFAlgo::reconstructCluster(), PrimaryVertexResolution::Resolution::Resolution(), PFPhotonAlgo::RunPFPhoton(), reco::PFDisplacedVertex::setPrimaryDirection(), FWConvTrackHitsDetailView::setTextInfo(), IPTools::signedDecayLength3D(), IPTools::signedImpactParameter3D(), IPTools::signedTransverseImpactParameter(), btagbtvdeep::vertexDdotP(), and SignedTransverseImpactParameter::zImpactParameter().

111 { return position_.X(); }
Point position_
position
Definition: Vertex.h:186
double reco::Vertex::xError ( ) const
inline
double reco::Vertex::y ( ) const
inline

y coordinate

Definition at line 113 of file Vertex.h.

References position_.

Referenced by svgfig.Ellipse::__repr__(), BPHCompositeVertexSelect::accept(), BPHFittedVertexSelect::accept(), PatVertexAnalyzer::analyze(), TopDiLeptonDQM::analyze(), V0Monitor::analyze(), TkConvValidator::analyze(), FSQDQM::analyze(), SignedImpactParameter3D::apply(), SignedTransverseImpactParameter::apply(), SignedDecayLength3D::apply(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), FWSecVertexProxyBuilder::build(), FWVertexProxyBuilder::build(), PFRecoTauAlgorithm::buildPFTau(), SignedDecayLength3D::closestApproachToJet(), SignedImpactParameter3D::closestApproachToJet(), IPTools::closestApproachToJet(), SignedImpactParameter3D::distance(), SignedImpactParameter3D::distanceWithJetAxis(), reco::Conversion::dxy(), reco::Conversion::dz(), PFPhotonAlgo::EvaluateSingleLegMVA(), PFEGammaAlgo::evaluateSingleLegMVA(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), TrackingNtuple::fillVertices(), V0Fitter::fitAll(), BtoCharmDecayVertexMergerT< VTX >::flightDirection(), flightDirection(), getVertexD0(), ConversionTools::isGoodConversion(), TCMETAlgo::isGoodTrack(), IPTools::jetTrackDistance(), IPTools::linearizedSignedImpactParameter3D(), reco::Conversion::lxy(), reco::PFDisplacedVertex::momentum(), ConversionHitChecker::nHitsBeforeVtx(), pat::VertexAssociationSelector::operator()(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), PFAlgo::processBlock(), EcalDetailedTimeRecHitProducer::produce(), VertexCompositeCandidateCollectionSelector::produce(), pat::PATConversionProducer::produce(), VertexConstraintProducer::produce(), PhotonIDValueMapProducer::produce(), ntupleDataFormat._HitObject::r(), ntupleDataFormat._HitObject::r3D(), PFAlgo::reconstructCluster(), PrimaryVertexResolution::Resolution::Resolution(), PFPhotonAlgo::RunPFPhoton(), reco::PFDisplacedVertex::setPrimaryDirection(), FWConvTrackHitsDetailView::setTextInfo(), IPTools::signedDecayLength3D(), IPTools::signedImpactParameter3D(), IPTools::signedTransverseImpactParameter(), btagbtvdeep::vertexDdotP(), and SignedTransverseImpactParameter::zImpactParameter().

113 { return position_.Y(); }
Point position_
position
Definition: Vertex.h:186
double reco::Vertex::yError ( ) const
inline
double reco::Vertex::z ( ) const
inline

z coordinate

Definition at line 115 of file Vertex.h.

References position_.

Referenced by CMSDAS11DijetAnalyzer::analyze(), CMSDAS11DijetTestAnalyzer::analyze(), PatVertexAnalyzer::analyze(), TrackingRecoMaterialAnalyser::analyze(), TopDiLeptonDQM::analyze(), V0Monitor::analyze(), TrackingMonitor::analyze(), FSQDQM::analyze(), SignedImpactParameter3D::apply(), SignedTransverseImpactParameter::apply(), SignedDecayLength3D::apply(), VertexAssociatorByPositionAndTracks::associateRecoToSim(), VertexAssociatorByPositionAndTracks::associateSimToReco(), FWSecVertexProxyBuilder::build(), FWVertexProxyBuilder::build(), CaloRecoTauTagInfoAlgorithm::buildCaloTauTagInfo(), PFRecoTauAlgorithm::buildPFTau(), PFRecoTauTagInfoAlgorithm::buildPFTauTagInfo(), SignedDecayLength3D::closestApproachToJet(), SignedImpactParameter3D::closestApproachToJet(), IPTools::closestApproachToJet(), vertexTools::computeSharedTracks(), SignedImpactParameter3D::distance(), SignedImpactParameter3D::distanceWithJetAxis(), reco::Conversion::dz(), PFPhotonAlgo::EvaluateLCorrMVA(), PFPhotonAlgo::EvaluateSingleLegMVA(), PFEGammaAlgo::evaluateSingleLegMVA(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), SVTagInfoValidationAnalyzer::fillSimToReco(), TrackingNtuple::fillVertices(), V0Fitter::fitAll(), BtoCharmDecayVertexMergerT< VTX >::flightDirection(), flightDirection(), TCMETAlgo::isGoodTrack(), IPTools::jetTrackDistance(), IPTools::linearizedSignedImpactParameter3D(), QualityCutsAnalyzer::LoopOverJetTracksAssociation(), reco::Conversion::lz(), reco::PFDisplacedVertex::momentum(), ConversionHitChecker::nHitsBeforeVtx(), PVObjectSelector::operator()(), pat::VertexAssociationSelector::operator()(), geometryXMLparser.Alignable::pos(), PFAlgo::processBlock(), EventVtxInfoNtupleDumper::produce(), ConeIsolation::produce(), EcalDetailedTimeRecHitProducer::produce(), L2TauPixelIsoTagProducer::produce(), VertexCompositeCandidateCollectionSelector::produce(), PFchsMETcorrInputProducer::produce(), VertexConstraintProducer::produce(), PhotonIDValueMapProducer::produce(), ntupleDataFormat._HitObject::r3D(), PFAlgo::reconstructCluster(), PrimaryVertexResolution::Resolution::Resolution(), PFPhotonAlgo::RunPFPhoton(), reco::PFDisplacedVertex::setPrimaryDirection(), FWConvTrackHitsDetailView::setTextInfo(), IPTools::signedDecayLength3D(), IPTools::signedImpactParameter3D(), ConeIsolationAlgorithm::tag(), ImpactParameterAlgorithm::tag(), btagbtvdeep::vertexDdotP(), and SignedTransverseImpactParameter::zImpactParameter().

115 { return position_.Z(); }
Point position_
position
Definition: Vertex.h:186
double reco::Vertex::zError ( ) const
inline

Member Data Documentation

float reco::Vertex::chi2_
private

chi-sqared

Definition at line 182 of file Vertex.h.

Referenced by chi2(), isFake(), and normalizedChi2().

float reco::Vertex::covariance_[size4D]
private

covariance matrix (4x4) as vector

Definition at line 188 of file Vertex.h.

Referenced by covariance(), fill(), and Vertex().

float reco::Vertex::ndof_
private

number of degrees of freedom

Definition at line 184 of file Vertex.h.

Referenced by isFake(), ndof(), and normalizedChi2().

Point reco::Vertex::position_
private

position

Definition at line 186 of file Vertex.h.

Referenced by position(), x(), y(), and z().

std::vector<Track> reco::Vertex::refittedTracks_
private

The vector of refitted tracks.

Definition at line 192 of file Vertex.h.

Referenced by hasRefittedTracks(), nTracks(), originalTrack(), p4(), refittedTracks(), removeTracks(), and tracks_end().

double reco::Vertex::time_
private

Definition at line 196 of file Vertex.h.

Referenced by t().

std::vector<TrackBaseRef> reco::Vertex::tracks_
private

reference to tracks

Definition at line 190 of file Vertex.h.

Referenced by isFake(), originalTrack(), removeTracks(), trackRefAt(), tracks_begin(), tracks_end(), trackWeight(), and Vertex().

bool reco::Vertex::validity_
private

tells wether the vertex is really valid.

Definition at line 195 of file Vertex.h.

Referenced by isValid(), and Vertex().

std::vector<uint8_t> reco::Vertex::weights_
private

Definition at line 193 of file Vertex.h.

Referenced by removeTracks(), tracks_end(), tracksSize(), and trackWeight().