CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
TransientVertex Class Reference

#include <TransientVertex.h>

Public Types

typedef std::map
< reco::TransientTrack, float > 
TransientTrackToFloatMap
 

Public Member Functions

float degreesOfFreedom () const
 
bool hasPrior () const
 
bool hasRefittedTracks () const
 
bool hasTrackWeight () const
 
bool isValid () const
 
float normalisedChiSquared () const
 
 operator reco::Vertex () const
 
 operator reco::VertexCompositePtrCandidate () const
 
reco::TransientTrack originalTrack (const reco::TransientTrack &refTrack) const
 
std::vector
< reco::TransientTrack > const & 
originalTracks () const
 
GlobalPoint position () const
 
GlobalError positionError () const
 
GlobalError priorError () const
 
GlobalPoint priorPosition () const
 
reco::TransientTrack refittedTrack (const reco::TransientTrack &track) const
 
std::vector
< reco::TransientTrack > const & 
refittedTracks () const
 
void refittedTracks (const std::vector< reco::TransientTrack > &refittedTracks)
 
AlgebraicMatrix33 tkToTkCovariance (const reco::TransientTrack &t1, const reco::TransientTrack &t2) const
 
void tkToTkCovariance (const TTtoTTmap &covMap)
 
bool tkToTkCovarianceIsAvailable () const
 
float totalChiSquared () const
 
float trackWeight (const reco::TransientTrack &track) const
 
 TransientVertex ()
 
 TransientVertex (const GlobalPoint &pos, const GlobalError &posError, const std::vector< reco::TransientTrack > &tracks, float chi2)
 
 TransientVertex (const GlobalPoint &pos, const GlobalError &posError, const std::vector< reco::TransientTrack > &tracks, float chi2, float ndf)
 
 TransientVertex (const GlobalPoint &priorPos, const GlobalError &priorErr, const GlobalPoint &pos, const GlobalError &posError, const std::vector< reco::TransientTrack > &tracks, float chi2)
 
 TransientVertex (const GlobalPoint &priorPos, const GlobalError &priorErr, const GlobalPoint &pos, const GlobalError &posError, const std::vector< reco::TransientTrack > &tracks, float chi2, float ndf)
 
 TransientVertex (const VertexState &state, const std::vector< reco::TransientTrack > &tracks, float chi2)
 
 TransientVertex (const VertexState &state, const std::vector< reco::TransientTrack > &tracks, float chi2, float ndf)
 
 TransientVertex (const VertexState &prior, const VertexState &state, const std::vector< reco::TransientTrack > &tracks, float chi2)
 
 TransientVertex (const VertexState &prior, const VertexState &state, const std::vector< reco::TransientTrack > &tracks, float chi2, float ndf)
 
VertexState const & vertexState () const
 
TransientTrackToFloatMap weightMap () const
 
void weightMap (const TransientTrackToFloatMap &theMap)
 

Private Attributes

float theChi2
 
TTtoTTmap theCovMap
 
bool theCovMapAvailable
 
float theNDF
 
std::vector< reco::TransientTracktheOriginalTracks
 
VertexState thePriorVertexState
 
std::vector< reco::TransientTracktheRefittedTracks
 
VertexState theVertexState
 
TransientTrackToFloatMap theWeightMap
 
bool theWeightMapIsAvailable
 
bool vertexValid
 
bool withPrior
 
bool withRefittedTracks
 

Detailed Description

Definition at line 18 of file TransientVertex.h.

Member Typedef Documentation

Definition at line 22 of file TransientVertex.h.

Constructor & Destructor Documentation

TransientVertex::TransientVertex ( )

Empty constructor, produces invalid vertex

Definition at line 11 of file TransientVertex.cc.

TransientVertex::TransientVertex ( const GlobalPoint pos,
const GlobalError posError,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2 
)

Constructor defining the RecVertex by its 3D position and position uncertainty, its associated tracks and its chi-squared. The number of degrees of freedom is equal to 2*nb of tracks - 3.

Definition at line 18 of file TransientVertex.cc.

TransientVertex::TransientVertex ( const GlobalPoint pos,
const GlobalError posError,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2,
float  ndf 
)

Constructor defining the RecVertex by its 3D position and position uncertainty, its associated tracks, its chi-squared and its number of degrees of freedom. The ndf can be a float.

Definition at line 30 of file TransientVertex.cc.

TransientVertex::TransientVertex ( const GlobalPoint priorPos,
const GlobalError priorErr,
const GlobalPoint pos,
const GlobalError posError,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2 
)

Constructor defining the RecVertex by the prior, the vertex 3D position and uncertainty, the associated tracks and the chi-squared. Since the prior brings information on 3 coordinates, the number of degrees of freedom is equal to 2*nb of tracks.

Definition at line 41 of file TransientVertex.cc.

TransientVertex::TransientVertex ( const GlobalPoint priorPos,
const GlobalError priorErr,
const GlobalPoint pos,
const GlobalError posError,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2,
float  ndf 
)

Constructor defining the RecVertex by the prior, the vertex 3D position and uncertainty, the associated tracks, the chi-squared and the number of degrees of freedom. The ndf can be a float.

Definition at line 54 of file TransientVertex.cc.

TransientVertex::TransientVertex ( const VertexState state,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2 
)

Constructor defining the RecVertex by its 3D position and position uncertainty, its associated tracks and its chi-squared. The number of degrees of freedom is equal to 2*nb of tracks - 3.

Definition at line 66 of file TransientVertex.cc.

TransientVertex::TransientVertex ( const VertexState state,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2,
float  ndf 
)

Constructor defining the RecVertex by its 3D position and position uncertainty, its associated tracks, its chi-squared and its number of degrees of freedom. The ndf can be a float.

Definition at line 77 of file TransientVertex.cc.

TransientVertex::TransientVertex ( const VertexState prior,
const VertexState state,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2 
)

Constructor defining the RecVertex by the prior, the vertex 3D position and uncertainty, the associated tracks and the chi-squared. Since the prior brings information on 3 coordinates, the number of degrees of freedom is equal to 2*nb of tracks.

Definition at line 88 of file TransientVertex.cc.

TransientVertex::TransientVertex ( const VertexState prior,
const VertexState state,
const std::vector< reco::TransientTrack > &  tracks,
float  chi2,
float  ndf 
)

Constructor defining the RecVertex by the prior, the vertex 3D position and uncertainty, the associated tracks, the chi-squared and the number of degrees of freedom. The ndf can be a float.

Definition at line 102 of file TransientVertex.cc.

Member Function Documentation

float TransientVertex::degreesOfFreedom ( ) const
inline

Definition at line 129 of file TransientVertex.h.

bool TransientVertex::hasPrior ( ) const
inline

Definition at line 118 of file TransientVertex.h.

bool TransientVertex::hasRefittedTracks ( ) const
inline

Returns true if at for at least one of the original tracks, the refitted track is available

Definition at line 150 of file TransientVertex.h.

Referenced by PFTauSecondaryVertexProducer::produce().

bool TransientVertex::hasTrackWeight ( ) const
inline

Returns true if the track-weights are available.

Definition at line 181 of file TransientVertex.h.

bool TransientVertex::isValid ( void  ) const
inline

Returns true if vertex is valid. An invalid RecVertex is created e.g. when vertex fitting fails.

Definition at line 134 of file TransientVertex.h.

Referenced by CandCommonVertexFitter< Fitter >::fit(), PFCandCommonVertexFitter< Fitter >::fit(), core.AutoHandle.AutoHandle::ReallyLoad(), and PFRecoTauDiscriminationByFlightPathSignificance::threeProngFlightPathSig().

float TransientVertex::normalisedChiSquared ( ) const
inline

Definition at line 126 of file TransientVertex.h.

TransientVertex::operator reco::Vertex ( ) const

Definition at line 208 of file TransientVertex.cc.

TransientVertex::operator reco::VertexCompositePtrCandidate ( ) const

Definition at line 235 of file TransientVertex.cc.

TransientTrack TransientVertex::originalTrack ( const reco::TransientTrack 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 184 of file TransientVertex.cc.

std::vector<reco::TransientTrack> const& TransientVertex::originalTracks ( ) const
inline

Access to the original tracks used to make the vertex. Returns track container by value.

Definition at line 141 of file TransientVertex.h.

Referenced by VertexHigherPtSquared::operator()(), and TrimmedVertexFitter::vertex().

GlobalPoint TransientVertex::position ( ) const
inline

Definition at line 114 of file TransientVertex.h.

Referenced by KVFTest::analyze(), and TrimmedVertexFitter::vertex().

GlobalError TransientVertex::positionError ( ) const
inline

Definition at line 115 of file TransientVertex.h.

Referenced by TrimmedVertexFitter::vertex().

GlobalError TransientVertex::priorError ( ) const
inline

Definition at line 117 of file TransientVertex.h.

GlobalPoint TransientVertex::priorPosition ( ) const
inline

Definition at line 116 of file TransientVertex.h.

TransientTrack TransientVertex::refittedTrack ( const reco::TransientTrack 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 196 of file TransientVertex.cc.

std::vector<reco::TransientTrack> const& TransientVertex::refittedTracks ( ) const
inline

Access to the refitted tracks used to make the vertex. Returns track container by value.

Definition at line 156 of file TransientVertex.h.

Referenced by PFTauSecondaryVertexProducer::produce(), CandCommonVertexFitterBase::set(), and PFCandCommonVertexFitterBase::set().

void TransientVertex::refittedTracks ( const std::vector< reco::TransientTrack > &  refittedTracks)

Method to set the refitted tracks used to make the vertex.

Definition at line 122 of file TransientVertex.cc.

AlgebraicMatrix33 TransientVertex::tkToTkCovariance ( const reco::TransientTrack t1,
const reco::TransientTrack t2 
) const

Returns the Track-to-track covariance matrix for two specified tracks. In case these do not exist, or one of the tracks does not belong to the vertex, an exception is thrown.

Definition at line 153 of file TransientVertex.cc.

void TransientVertex::tkToTkCovariance ( const TTtoTTmap covMap)

Definition at line 132 of file TransientVertex.cc.

bool TransientVertex::tkToTkCovarianceIsAvailable ( ) const
inline

Returns true if the Track-to-track covariance matrices have been calculated.

Definition at line 200 of file TransientVertex.h.

float TransientVertex::totalChiSquared ( ) const
inline

Implements method of abstract Vertex. Returns track pointer container by value

Definition at line 125 of file TransientVertex.h.

Referenced by TrimmedVertexFitter::vertex().

float TransientVertex::trackWeight ( const reco::TransientTrack track) const

Returns the weight with which a track has been used in the fit. If the track is not present in the list, it is obviously not used, and this method returns a weight of 0. If this information has not been provided at construction, a weight of 1.0 is assumed for all tracks used and present in the originalTracks() std::vector.

Definition at line 138 of file TransientVertex.cc.

VertexState const& TransientVertex::vertexState ( ) const
inline

Constructor defining the RecVertex by its 3D position and position uncertainty, its associated tracks, its chi-squared and its number of degrees of freedom, and the track weights. The ndf can be a float.Access methods

Definition at line 113 of file TransientVertex.h.

TransientTrackToFloatMap TransientVertex::weightMap ( ) const
inline

Definition at line 193 of file TransientVertex.h.

void TransientVertex::weightMap ( const TransientTrackToFloatMap theMap)

Definition at line 114 of file TransientVertex.cc.

Member Data Documentation

float TransientVertex::theChi2
private

Definition at line 226 of file TransientVertex.h.

TTtoTTmap TransientVertex::theCovMap
private

Definition at line 231 of file TransientVertex.h.

bool TransientVertex::theCovMapAvailable
private

Definition at line 229 of file TransientVertex.h.

float TransientVertex::theNDF
private

Definition at line 227 of file TransientVertex.h.

std::vector<reco::TransientTrack> TransientVertex::theOriginalTracks
private

Definition at line 222 of file TransientVertex.h.

VertexState TransientVertex::thePriorVertexState
mutableprivate

Definition at line 217 of file TransientVertex.h.

std::vector<reco::TransientTrack> TransientVertex::theRefittedTracks
private

Definition at line 223 of file TransientVertex.h.

VertexState TransientVertex::theVertexState
mutableprivate

Definition at line 218 of file TransientVertex.h.

TransientTrackToFloatMap TransientVertex::theWeightMap
private

Definition at line 232 of file TransientVertex.h.

bool TransientVertex::theWeightMapIsAvailable
private

Definition at line 229 of file TransientVertex.h.

bool TransientVertex::vertexValid
private

Definition at line 228 of file TransientVertex.h.

bool TransientVertex::withPrior
private

Definition at line 229 of file TransientVertex.h.

bool TransientVertex::withRefittedTracks
private

Definition at line 230 of file TransientVertex.h.