#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::TransientTrack > | theOriginalTracks |
VertexState | thePriorVertexState |
std::vector< reco::TransientTrack > | theRefittedTracks |
VertexState | theVertexState |
TransientTrackToFloatMap | theWeightMap |
bool | theWeightMapIsAvailable |
bool | vertexValid |
bool | withPrior |
bool | withRefittedTracks |
Definition at line 18 of file TransientVertex.h.
typedef std::map<reco::TransientTrack, float> TransientVertex::TransientTrackToFloatMap |
Definition at line 22 of file TransientVertex.h.
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.
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 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.
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 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.
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 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.
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 102 of file TransientVertex.cc.
|
inline |
Definition at line 129 of file TransientVertex.h.
References theNDF.
Referenced by PrimaryVertexValidation::analyze(), AdaptiveVertexReconstructor::cleanUp(), VertexFitterResult::fill(), normalisedChiSquared(), TemplatedSecondaryVertexProducer< IPTI, VTX >::SVBuilder::operator()(), Onia2MuMuPAT::produce(), PrimaryVertexProducer::produce(), and PrimaryVertexProducerAlgorithm::vertices().
|
inline |
Definition at line 118 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 150 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 181 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 134 of file TransientVertex.h.
References vertexValid.
Referenced by KineExample::analyze(), PrimaryVertexValidation::analyze(), VertexFitterResult::fill(), CandCommonVertexFitter< Fitter >::fit(), PFCandCommonVertexFitter< Fitter >::fit(), V0Fitter::fitAll(), PFDisplacedVertexFinder::fitVertexFromSeed(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), HLTDisplacedmumumuVtxProducer::produce(), HLTDisplacedmumuVtxProducer::produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), HLTmumutktkVtxProducer::produce(), Onia2MuMuPAT::produce(), HLTmumutkVtxProducer::produce(), PrimaryVertexProducer::produce(), core.AutoHandle.AutoHandle::ReallyLoad(), HPSPFRecoTauAlgorithm::refitThreeProng(), PFRecoTauDiscriminationByFlightPathSignificance::threeProngFlightPathSig(), TrackVertexArbitration< VTX >::trackVertexArbitrator(), and PrimaryVertexProducerAlgorithm::vertices().
|
inline |
Definition at line 126 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 208 of file TransientVertex.cc.
References reco::Vertex::add(), i, operator reco::Vertex(), and trackWeight().
Referenced by operator reco::Vertex().
TransientVertex::operator reco::VertexCompositePtrCandidate | ( | ) | const |
Definition at line 235 of file TransientVertex.cc.
References reco::CandidatePtrTransientTrack::candidate(), relativeConstraints::error, p4, position, dt_dqm_sourceclient_common_cff::reco, reco::VertexCompositePtrCandidate::setCovariance(), trackWeight(), groupFilesInBlocks::tt, and x().
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.
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 141 of file TransientVertex.h.
References theOriginalTracks.
Referenced by AdaptiveVertexReconstructor::cleanUp(), AdaptiveVertexReconstructor::erase(), VertexFitterResult::fill(), VertexHigherPtSquared::operator()(), TemplatedSecondaryVertexProducer< IPTI, VTX >::SVBuilder::operator()(), TrimmedVertexFitter::vertex(), and MultiVertexFitter::vertices().
|
inline |
Definition at line 114 of file TransientVertex.h.
References VertexState::position(), and theVertexState.
Referenced by KVFTest::analyze(), KineExample::analyze(), PFCheckHitPattern::analyze(), PrimaryVertexValidation::analyze(), VertexFitterResult::fill(), PFDisplacedVertexFinder::fitVertexFromSeed(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), TemplatedSecondaryVertexProducer< IPTI, VTX >::SVBuilder::operator()(), Onia2MuMuPAT::produce(), PrimaryVertexProducer::produce(), reco::GhostTrackVertexFinder::reassignTracks(), HPSPFRecoTauAlgorithm::refitThreeProng(), TrimmedVertexFitter::vertex(), and PrimaryVertexProducerAlgorithm::vertices().
|
inline |
Definition at line 115 of file TransientVertex.h.
References VertexState::error(), and theVertexState.
Referenced by PrimaryVertexValidation::analyze(), VertexFitterResult::fill(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), and TrimmedVertexFitter::vertex().
|
inline |
Definition at line 117 of file TransientVertex.h.
References VertexState::error(), and thePriorVertexState.
Referenced by AdaptiveVertexReconstructor::cleanUp().
|
inline |
Definition at line 116 of file TransientVertex.h.
References VertexState::position(), and 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 196 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 156 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 122 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 153 of file TransientVertex.cc.
References 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 200 of file TransientVertex.h.
References theCovMapAvailable.
|
inline |
Implements method of abstract Vertex. Returns track pointer container by value
Definition at line 125 of file TransientVertex.h.
References theChi2.
Referenced by PrimaryVertexValidation::analyze(), AdaptiveVertexReconstructor::cleanUp(), VertexFitterResult::fill(), PFDisplacedVertexFinder::fitVertexFromSeed(), normalisedChiSquared(), TemplatedSecondaryVertexProducer< IPTI, VTX >::SVBuilder::operator()(), Onia2MuMuPAT::produce(), 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 138 of file TransientVertex.cc.
References spr::find(), theOriginalTracks, theWeightMap, and theWeightMapIsAvailable.
Referenced by PrimaryVertexValidation::analyze(), AdaptiveVertexReconstructor::cleanUp(), AdaptiveVertexReconstructor::erase(), PFDisplacedVertexFinder::fitVertexFromSeed(), and TemplatedSecondaryVertexProducer< IPTI, VTX >::SVBuilder::operator()().
|
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.
References theVertexState.
Referenced by AdaptiveVertexReconstructor::cleanUp(), and TemplatedSecondaryVertexProducer< IPTI, VTX >::SVBuilder::operator()().
|
inline |
Definition at line 193 of file TransientVertex.h.
References theWeightMap.
Referenced by AdaptiveVertexReconstructor::cleanUp(), and CachingVertex< N >::operator TransientVertex().
void TransientVertex::weightMap | ( | const TransientTrackToFloatMap & | theMap | ) |
Definition at line 114 of file TransientVertex.cc.
References theWeightMap, and theWeightMapIsAvailable.
|
private |
Definition at line 226 of file TransientVertex.h.
Referenced by totalChiSquared().
|
private |
Definition at line 231 of file TransientVertex.h.
Referenced by tkToTkCovariance().
|
private |
Definition at line 229 of file TransientVertex.h.
Referenced by tkToTkCovariance(), and tkToTkCovarianceIsAvailable().
|
private |
Definition at line 227 of file TransientVertex.h.
Referenced by degreesOfFreedom(), and TransientVertex().
|
private |
Definition at line 222 of file TransientVertex.h.
Referenced by originalTrack(), originalTracks(), refittedTrack(), trackWeight(), and TransientVertex().
|
mutableprivate |
Definition at line 217 of file TransientVertex.h.
Referenced by priorError(), and priorPosition().
|
private |
Definition at line 223 of file TransientVertex.h.
Referenced by originalTrack(), refittedTrack(), and refittedTracks().
|
mutableprivate |
Definition at line 218 of file TransientVertex.h.
Referenced by position(), positionError(), and vertexState().
|
private |
Definition at line 232 of file TransientVertex.h.
Referenced by trackWeight(), and weightMap().
|
private |
Definition at line 229 of file TransientVertex.h.
Referenced by hasTrackWeight(), trackWeight(), and weightMap().
|
private |
Definition at line 228 of file TransientVertex.h.
Referenced by isValid().
|
private |
Definition at line 229 of file TransientVertex.h.
Referenced by hasPrior().
|
private |
Definition at line 230 of file TransientVertex.h.
Referenced by hasRefittedTracks(), and refittedTracks().