#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 |
double | priorTime () const |
double | priorTimeError () const |
reco::TransientTrack | refittedTrack (const reco::TransientTrack &track) const |
std::vector< reco::TransientTrack > const & | refittedTracks () const |
void | refittedTracks (const std::vector< reco::TransientTrack > &refittedTracks) |
double | time () const |
double | timeError () const |
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 double time, 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 &pos, const double time, 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 double priorTime, const GlobalError &priorErr, const GlobalPoint &pos, const double time, 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 GlobalPoint &priorPos, const double priorTime, const GlobalError &priorErr, const GlobalPoint &pos, const double time, const GlobalError &posError, const std::vector< reco::TransientTrack > &tracks, float chi2, float ndf) | |
TransientVertex (const GlobalPoint &priorPos, const GlobalError &priorErr, const double priorTime, const double priorTimeErr, const GlobalPoint &pos, const GlobalError &posError, const double time, const double timeErr, 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 21 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 22 of file TransientVertex.cc.
References theNDF, and theOriginalTracks.
TransientVertex::TransientVertex | ( | const GlobalPoint & | pos, |
const double | time, | ||
const GlobalError & | posError, | ||
const std::vector< reco::TransientTrack > & | tracks, | ||
float | chi2 | ||
) |
Definition at line 38 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 55 of file TransientVertex.cc.
TransientVertex::TransientVertex | ( | const GlobalPoint & | pos, |
const double | time, | ||
const GlobalError & | posError, | ||
const std::vector< reco::TransientTrack > & | tracks, | ||
float | chi2, | ||
float | ndf | ||
) |
Definition at line 70 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 86 of file TransientVertex.cc.
References theNDF, and theOriginalTracks.
TransientVertex::TransientVertex | ( | const GlobalPoint & | priorPos, |
const double | priorTime, | ||
const GlobalError & | priorErr, | ||
const GlobalPoint & | pos, | ||
const double | time, | ||
const GlobalError & | posError, | ||
const std::vector< reco::TransientTrack > & | tracks, | ||
float | chi2 | ||
) |
Definition at line 105 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 126 of file TransientVertex.cc.
TransientVertex::TransientVertex | ( | const GlobalPoint & | priorPos, |
const double | priorTime, | ||
const GlobalError & | priorErr, | ||
const GlobalPoint & | pos, | ||
const double | time, | ||
const GlobalError & | posError, | ||
const std::vector< reco::TransientTrack > & | tracks, | ||
float | chi2, | ||
float | ndf | ||
) |
Definition at line 144 of file TransientVertex.cc.
TransientVertex::TransientVertex | ( | const GlobalPoint & | priorPos, |
const GlobalError & | priorErr, | ||
const double | priorTime, | ||
const double | priorTimeErr, | ||
const GlobalPoint & | pos, | ||
const GlobalError & | posError, | ||
const double | time, | ||
const double | timeErr, | ||
const std::vector< reco::TransientTrack > & | tracks, | ||
float | chi2, | ||
float | ndf | ||
) |
Constructor defining the RecVertex by the prior, the vertex 3D position and uncertainty, time and uncertainty, the associated tracks, the chi-squared and the number of degrees of freedom. The ndf can be a float.
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 164 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 177 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 191 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 208 of file TransientVertex.cc.
|
inline |
Definition at line 190 of file TransientVertex.h.
References theNDF.
Referenced by DiMuonVertexMonitor::analyze(), DiMuonVertexValidation::analyze(), DiElectronVertexValidation::analyze(), SplitVertexResolution::analyze(), AdaptiveVertexReconstructor::cleanUp(), VertexFitterResult::fill(), LeptonSkimming::filter(), HIPTwoBodyDecayAnalyzer::fitDimuonVertex(), normalisedChiSquared(), and Onia2MuMuPAT::produce().
|
inline |
Definition at line 181 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 206 of file TransientVertex.h.
References withRefittedTracks.
Referenced by AdaptiveVertexReconstructor::cleanUp(), V0Fitter::fitAll(), PATLeptonTimeLifeInfoProducer< T >::fitVertex(), and PFTauSecondaryVertexProducer::produce().
|
inline |
Returns true if the track-weights are available.
Definition at line 233 of file TransientVertex.h.
References theWeightMapIsAvailable.
|
inline |
Returns true if vertex is valid. An invalid RecVertex is created e.g. when vertex fitting fails.
Definition at line 195 of file TransientVertex.h.
References vertexValid.
Referenced by ntupleDataFormat._Object::_checkIsValid(), DiMuonVertexMonitor::analyze(), BPHMonitor::analyze(), StandaloneTrackMonitor::analyze(), KineExample::analyze(), DiMuonVertexValidation::analyze(), DiElectronVertexValidation::analyze(), SplitVertexResolution::analyze(), PrimaryVertexResolution::Plots::calculateAndFillResolution(), VertexFitterResult::fill(), LeptonSkimming::filter(), AlignmentTrackFromVertexSelector::findClosestVertex(), DiMuonVertexMonitor::findClosestVertex(), StandaloneTrackMonitor::findClosestVertex(), DiMuonVertexValidation::findClosestVertex(), V0Fitter::fitAll(), HIPTwoBodyDecayAnalyzer::fitDimuonVertex(), PFDisplacedVertexFinder::fitVertexFromSeed(), HLTmmkFilter::hltFilter(), HLTmmkkFilter::hltFilter(), PATRefitVertexProducer::produce(), HLTDisplacedmumumuVtxProducer::produce(), HLTDisplacedmumuVtxProducer::produce(), HLTDisplacedtktkVtxProducer::produce(), HLTDisplacedtktktkVtxProducer::produce(), Onia2MuMuPAT::produce(), HLTmumutktkVtxProducer::produce(), HLTmumutkVtxProducer::produce(), PFTauPrimaryVertexProducerBase::produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), core.AutoHandle.AutoHandle::ReallyLoad(), and TrackVertexArbitration< VTX >::trackVertexArbitrator().
|
inline |
Definition at line 189 of file TransientVertex.h.
References degreesOfFreedom(), and totalChiSquared().
Referenced by HLTmmkFilter::hltFilter(), and HLTmmkkFilter::hltFilter().
TransientVertex::operator reco::Vertex | ( | ) | const |
Definition at line 304 of file TransientVertex.cc.
References mps_fire::i, sistrip::SpyUtilities::isValid(), trackWeight(), bphysicsOniaDQM_cfi::vertex, and HltBtagValidation_cff::Vertex.
TransientVertex::operator reco::VertexCompositePtrCandidate | ( | ) | const |
Definition at line 332 of file TransientVertex.cc.
References reco::CompositePtrCandidate::addDaughter(), reco::CandidatePtrTransientTrack::candidate(), sistrip::SpyUtilities::isValid(), reco::Candidate::p4(), position, reco::VertexCompositePtrCandidate::setChi2AndNdof(), reco::VertexCompositePtrCandidate::setCovariance(), reco::LeafCandidate::setP4(), reco::VertexCompositePtrCandidate::setTime(), reco::LeafCandidate::setVertex(), hcalRecHitTable_cff::time, 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 281 of file TransientVertex.cc.
References reco::TransientTrack::basicTransientTrack(), spr::find(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, theOriginalTracks, and theRefittedTracks.
|
inline |
Access to the original tracks used to make the vertex. Returns track container by value.
Definition at line 200 of file TransientVertex.h.
References theOriginalTracks.
Referenced by SplitVertexResolution::analyze(), AdaptiveVertexReconstructor::cleanUp(), AdaptiveVertexReconstructor::erase(), VertexFitterResult::fill(), VertexHigherPtSquared::operator()(), AdaptiveChisquarePrimaryVertexFitter::refit(), TrimmedVertexFitter::vertex(), and MultiVertexFitter::vertices().
|
inline |
Definition at line 169 of file TransientVertex.h.
References VertexState::position(), and theVertexState.
Referenced by DiMuonVertexMonitor::analyze(), KVFTest::analyze(), PFCheckHitPattern::analyze(), BPHMonitor::analyze(), StandaloneTrackMonitor::analyze(), KineExample::analyze(), DiMuonVertexValidation::analyze(), DiElectronVertexValidation::analyze(), VertexFitterResult::fill(), LeptonSkimming::filter(), HIPTwoBodyDecayAnalyzer::fitDimuonVertex(), PFDisplacedVertexFinder::fitVertexFromSeed(), HLTmmkFilter::hltFilter(), HLTmmkkFilter::hltFilter(), PATRefitVertexProducer::produce(), Onia2MuMuPAT::produce(), PFTauPrimaryVertexProducerBase::produce(), AdaptiveChisquarePrimaryVertexFitter::refit(), and TrimmedVertexFitter::vertex().
|
inline |
Definition at line 170 of file TransientVertex.h.
References VertexState::error(), VertexState::error4D(), VertexState::is4D(), and theVertexState.
Referenced by BPHMonitor::analyze(), VertexFitterResult::fill(), LeptonSkimming::filter(), HIPTwoBodyDecayAnalyzer::fitDimuonVertex(), HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), PATLeptonTimeLifeInfoProducer< T >::produceAndFillSVInfo(), and TrimmedVertexFitter::vertex().
|
inline |
Definition at line 174 of file TransientVertex.h.
References VertexState::error(), VertexState::error4D(), VertexState::is4D(), and thePriorVertexState.
Referenced by AdaptiveVertexReconstructor::cleanUp().
|
inline |
Definition at line 173 of file TransientVertex.h.
References VertexState::position(), and thePriorVertexState.
Referenced by AdaptiveVertexReconstructor::cleanUp().
|
inline |
Definition at line 179 of file TransientVertex.h.
References thePriorVertexState, and VertexState::time().
|
inline |
Definition at line 180 of file TransientVertex.h.
References thePriorVertexState, and VertexState::timeError().
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 293 of file TransientVertex.cc.
References spr::find(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, theOriginalTracks, theRefittedTracks, and HLT_2024v14_cff::track.
Referenced by PFDisplacedVertexFinder::fitVertexFromSeed().
|
inline |
Access to the refitted tracks used to make the vertex. Returns track container by value.
Definition at line 211 of file TransientVertex.h.
References theRefittedTracks.
Referenced by AdaptiveVertexReconstructor::cleanUp(), V0Fitter::fitAll(), PATLeptonTimeLifeInfoProducer< T >::fitVertex(), CachingVertex< 5 >::operator TransientVertex(), PFTauSecondaryVertexProducer::produce(), and refittedTracks().
void TransientVertex::refittedTracks | ( | const std::vector< reco::TransientTrack > & | refittedTracks | ) |
Method to set the refitted tracks used to make the vertex.
Definition at line 229 of file TransientVertex.cc.
References refittedTracks(), theRefittedTracks, and withRefittedTracks.
|
inline |
Definition at line 177 of file TransientVertex.h.
References theVertexState, and VertexState::time().
|
inline |
Definition at line 178 of file TransientVertex.h.
References theVertexState, and VertexState::timeError().
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 254 of file TransientVertex.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, RandomServiceHelper::t1, RandomServiceHelper::t2, theCovMap, and theCovMapAvailable.
Referenced by CachingVertex< 5 >::operator TransientVertex().
void TransientVertex::tkToTkCovariance | ( | const TTtoTTmap & | covMap | ) |
|
inline |
Returns true if the Track-to-track covariance matrices have been calculated.
Definition at line 251 of file TransientVertex.h.
References theCovMapAvailable.
|
inline |
Implements method of abstract Vertex. Returns track pointer container by value
Definition at line 188 of file TransientVertex.h.
References theChi2.
Referenced by DiMuonVertexMonitor::analyze(), DiMuonVertexValidation::analyze(), DiElectronVertexValidation::analyze(), SplitVertexResolution::analyze(), AdaptiveVertexReconstructor::cleanUp(), VertexFitterResult::fill(), LeptonSkimming::filter(), HIPTwoBodyDecayAnalyzer::fitDimuonVertex(), PFDisplacedVertexFinder::fitVertexFromSeed(), normalisedChiSquared(), 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 241 of file TransientVertex.cc.
References spr::find(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, theOriginalTracks, theWeightMap, theWeightMapIsAvailable, and HLT_2024v14_cff::track.
Referenced by SplitVertexResolution::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 168 of file TransientVertex.h.
References theVertexState.
Referenced by AdaptiveVertexReconstructor::cleanUp().
|
inline |
Definition at line 244 of file TransientVertex.h.
References theWeightMap.
Referenced by VertexTimeAlgorithmBase::fill_vertex_times(), and CachingVertex< 5 >::operator TransientVertex().
void TransientVertex::weightMap | ( | const TransientTrackToFloatMap & | theMap | ) |
Definition at line 224 of file TransientVertex.cc.
References theWeightMap, and theWeightMapIsAvailable.
|
private |
Definition at line 273 of file TransientVertex.h.
Referenced by totalChiSquared().
|
private |
Definition at line 278 of file TransientVertex.h.
Referenced by tkToTkCovariance().
|
private |
Definition at line 276 of file TransientVertex.h.
Referenced by tkToTkCovariance(), and tkToTkCovarianceIsAvailable().
|
private |
Definition at line 274 of file TransientVertex.h.
Referenced by degreesOfFreedom(), and TransientVertex().
|
private |
Definition at line 270 of file TransientVertex.h.
Referenced by originalTrack(), originalTracks(), refittedTrack(), trackWeight(), and TransientVertex().
|
mutableprivate |
Definition at line 265 of file TransientVertex.h.
Referenced by priorError(), priorPosition(), priorTime(), and priorTimeError().
|
private |
Definition at line 271 of file TransientVertex.h.
Referenced by originalTrack(), refittedTrack(), and refittedTracks().
|
mutableprivate |
Definition at line 266 of file TransientVertex.h.
Referenced by position(), positionError(), time(), timeError(), and vertexState().
|
private |
Definition at line 279 of file TransientVertex.h.
Referenced by trackWeight(), and weightMap().
|
private |
Definition at line 276 of file TransientVertex.h.
Referenced by hasTrackWeight(), trackWeight(), and weightMap().
|
private |
Definition at line 275 of file TransientVertex.h.
Referenced by isValid().
|
private |
Definition at line 276 of file TransientVertex.h.
Referenced by hasPrior().
|
private |
Definition at line 277 of file TransientVertex.h.
Referenced by hasRefittedTracks(), and refittedTracks().