#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 | |
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::TransientTrack > | theOriginalTracks |
VertexState | thePriorVertexState |
std::vector< reco::TransientTrack > | theRefittedTracks |
VertexState | theVertexState |
TransientTrackToFloatMap | theWeightMap |
bool | theWeightMapIsAvailable |
bool | vertexValid |
bool | withPrior |
bool | withRefittedTracks |
Definition at line 17 of file TransientVertex.h.
typedef std::map<reco::TransientTrack, float> TransientVertex::TransientTrackToFloatMap |
Definition at line 21 of file TransientVertex.h.
TransientVertex::TransientVertex | ( | ) |
Empty constructor, produces invalid vertex
Definition at line 9 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 16 of file TransientVertex.cc.
References theNDF, and theOriginalTracks.
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 28 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 39 of file TransientVertex.cc.
References theNDF, and theOriginalTracks.
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 52 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 64 of file TransientVertex.cc.
References theNDF, and theOriginalTracks.
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 75 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 86 of file TransientVertex.cc.
References theNDF, and theOriginalTracks.
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 100 of file TransientVertex.cc.
|
inline |
Definition at line 128 of file TransientVertex.h.
References theNDF.
Referenced by PrimaryVertexValidation::analyze(), AdaptiveVertexReconstructor::cleanUp(), VertexFitterResult::fill(), normalisedChiSquared(), PrimaryVertexProducer::produce(), and PrimaryVertexProducerAlgorithm::vertices().
|
inline |
Definition at line 117 of file TransientVertex.h.
References withPrior.
Referenced by AdaptiveVertexReconstructor::cleanUp().
|
inline |
Returns true if at for at least one of the original tracks, the refitted track is available
Definition at line 149 of file TransientVertex.h.
References withRefittedTracks.
Referenced by AdaptiveVertexReconstructor::cleanUp(), V0Fitter::fitAll(), PFTauSecondaryVertexProducer::produce(), and HPSPFRecoTauAlgorithm::refitThreeProng().
|
inline |
Returns true if the track-weights are available.
Definition at line 180 of file TransientVertex.h.
References theWeightMapIsAvailable.
Referenced by PrimaryVertexValidation::analyze().
|
inline |
Returns true if vertex is valid. An invalid RecVertex is created e.g. when vertex fitting fails.
Definition at line 133 of file TransientVertex.h.
References vertexValid.
Referenced by KineExample::analyze(), PrimaryVertexValidation::analyze(), VertexFitterResult::fill(), CandCommonVertexFitter< Fitter >::fit(), PFCandCommonVertexFitter< Fitter >::fit(), V0Fitter::fitAll(), PFDisplacedVertexFinder::fitVertexFromSeed(), Flight2DSvFilter::Flight2DSvFilter(), PrimaryVertexAnalyzer4PU::getSimEvents(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), HLTDisplacedmumumuVtxProducer::produce(), InclusiveVertexFinder::produce(), HLTDisplacedmumuVtxProducer::produce(), HLTmumutkVtxProducer::produce(), PrimaryVertexProducer::produce(), ConfigurableTertiaryTracksVertexFinder::reconstruct(), HPSPFRecoTauAlgorithm::refitThreeProng(), CaloRecoTauDiscriminationByFlightPathSignificance::threeProngFlightPathSig(), PFRecoTauDiscriminationByFlightPathSignificance::threeProngFlightPathSig(), TrackVertexArbitration::trackVertexArbitrator(), ConfigurableTertiaryTracksVertexFinder::vertices(), and PrimaryVertexProducerAlgorithm::vertices().
|
inline |
Definition at line 125 of file TransientVertex.h.
References degreesOfFreedom(), and totalChiSquared().
Referenced by PrimaryVertexValidation::analyze(), HLTmmkkFilter::hltFilter(), and HLTmmkFilter::hltFilter().
TransientVertex::operator reco::Vertex | ( | ) | const |
Definition at line 206 of file TransientVertex.cc.
References reco::Vertex::add(), and i.
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 182 of file TransientVertex.cc.
References spr::find(), theOriginalTracks, and theRefittedTracks.
|
inline |
Access to the original tracks used to make the vertex. Returns track container by value.
Definition at line 140 of file TransientVertex.h.
References theOriginalTracks.
Referenced by AdaptiveVertexReconstructor::cleanUp(), AdaptiveVertexReconstructor::erase(), VertexFitterResult::fill(), TransientTrackInVertices::isInVertex(), VertexHigherPtSquared::operator()(), VertexMass::operator()(), Flight2DSvFilter::operator()(), PvSvFilter::operator()(), V0SvFilter::operator()(), TrimmedVertexFitter::vertex(), and MultiVertexFitter::vertices().
|
inline |
Definition at line 113 of file TransientVertex.h.
References theVertexState.
Referenced by KVFTest::analyze(), KineExample::analyze(), PFCheckHitPattern::analyze(), PrimaryVertexValidation::analyze(), DistanceOfVertices::deltaV2V1(), Flight2DSvFilter::DistanceSignificance2DToBeamLine(), Flight2DSvFilter::DistanceToBeamLine(), VertexFitterResult::fill(), PFDisplacedVertexFinder::fitVertexFromSeed(), PrimaryVertexAnalyzer4PU::getSimEvents(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), PrimaryVertexProducer::produce(), reco::GhostTrackVertexFinder::reassignTracks(), HPSPFRecoTauAlgorithm::refitThreeProng(), TrimmedVertexFitter::vertex(), and PrimaryVertexProducerAlgorithm::vertices().
|
inline |
Definition at line 114 of file TransientVertex.h.
References theVertexState.
Referenced by PrimaryVertexValidation::analyze(), Flight2DSvFilter::DistanceSignificance2DToBeamLine(), VertexFitterResult::fill(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), DistanceOfVertices::terms2D(), DistanceOfVertices::terms3D(), and TrimmedVertexFitter::vertex().
|
inline |
Definition at line 116 of file TransientVertex.h.
References thePriorVertexState.
Referenced by AdaptiveVertexReconstructor::cleanUp().
|
inline |
Definition at line 115 of file TransientVertex.h.
References thePriorVertexState.
Referenced by AdaptiveVertexReconstructor::cleanUp().
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 194 of file TransientVertex.cc.
References spr::find(), theOriginalTracks, and theRefittedTracks.
Referenced by PFDisplacedVertexFinder::fitVertexFromSeed().
|
inline |
Access to the refitted tracks used to make the vertex. Returns track container by value.
Definition at line 155 of file TransientVertex.h.
References theRefittedTracks.
Referenced by AdaptiveVertexReconstructor::cleanUp(), V0Fitter::fitAll(), CachingVertex< N >::operator TransientVertex(), PFTauSecondaryVertexProducer::produce(), refittedTracks(), HPSPFRecoTauAlgorithm::refitThreeProng(), 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 120 of file TransientVertex.cc.
References refittedTracks(), theRefittedTracks, and withRefittedTracks.
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 151 of file TransientVertex.cc.
References reco::t2, theCovMap, and theCovMapAvailable.
Referenced by CachingVertex< N >::operator TransientVertex().
void TransientVertex::tkToTkCovariance | ( | const TTtoTTmap & | covMap | ) |
|
inline |
Returns true if the Track-to-track covariance matrices have been calculated.
Definition at line 199 of file TransientVertex.h.
References theCovMapAvailable.
|
inline |
Implements method of abstract Vertex. Returns track pointer container by value
Definition at line 124 of file TransientVertex.h.
References theChi2.
Referenced by PrimaryVertexValidation::analyze(), AdaptiveVertexReconstructor::cleanUp(), VertexFitterResult::fill(), V0Fitter::fitAll(), PFDisplacedVertexFinder::fitVertexFromSeed(), normalisedChiSquared(), and 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 136 of file TransientVertex.cc.
References spr::find(), theOriginalTracks, theWeightMap, and theWeightMapIsAvailable.
Referenced by PrimaryVertexValidation::analyze(), AdaptiveVertexReconstructor::cleanUp(), AdaptiveVertexReconstructor::erase(), and PFDisplacedVertexFinder::fitVertexFromSeed().
|
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 112 of file TransientVertex.h.
References theVertexState.
Referenced by AdaptiveVertexReconstructor::cleanUp().
|
inline |
Definition at line 192 of file TransientVertex.h.
References theWeightMap.
Referenced by AdaptiveVertexReconstructor::cleanUp(), AddTvTrack::getSecondaryVertices(), and CachingVertex< N >::operator TransientVertex().
void TransientVertex::weightMap | ( | const TransientTrackToFloatMap & | theMap | ) |
Definition at line 112 of file TransientVertex.cc.
References theWeightMap, and theWeightMapIsAvailable.
|
private |
Definition at line 224 of file TransientVertex.h.
Referenced by totalChiSquared().
|
private |
Definition at line 229 of file TransientVertex.h.
Referenced by tkToTkCovariance().
|
private |
Definition at line 227 of file TransientVertex.h.
Referenced by tkToTkCovariance(), and tkToTkCovarianceIsAvailable().
|
private |
Definition at line 225 of file TransientVertex.h.
Referenced by degreesOfFreedom(), and TransientVertex().
|
private |
Definition at line 220 of file TransientVertex.h.
Referenced by originalTrack(), originalTracks(), refittedTrack(), trackWeight(), and TransientVertex().
|
mutableprivate |
Definition at line 215 of file TransientVertex.h.
Referenced by priorError(), and priorPosition().
|
private |
Definition at line 221 of file TransientVertex.h.
Referenced by originalTrack(), refittedTrack(), and refittedTracks().
|
mutableprivate |
Definition at line 216 of file TransientVertex.h.
Referenced by position(), positionError(), and vertexState().
|
private |
Definition at line 230 of file TransientVertex.h.
Referenced by trackWeight(), and weightMap().
|
private |
Definition at line 227 of file TransientVertex.h.
Referenced by hasTrackWeight(), trackWeight(), and weightMap().
|
private |
Definition at line 226 of file TransientVertex.h.
Referenced by isValid().
|
private |
Definition at line 227 of file TransientVertex.h.
Referenced by hasPrior().
|
private |
Definition at line 228 of file TransientVertex.h.
Referenced by hasRefittedTracks(), and refittedTracks().