#include <Vertex.h>
Classes | |
class | TrackEqual |
Public Types | |
enum | { dimension = 3 } |
error matrix dimension More... | |
enum | { size = dimension * ( dimension + 1 ) / 2 } |
matix size More... | |
typedef math::Error< dimension > ::type | CovarianceMatrix |
covariance error matrix (3x3) More... | |
typedef math::Error< dimension > ::type | Error |
covariance error matrix (3x3) 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... | |
Error | error () const |
return SMatrix More... | |
void | fill (CovarianceMatrix &v) const |
fill SMatrix 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 Point & | position () 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 () |
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... | |
float | trackWeight (const TrackBaseRef &r) const |
returns the weight with which a Track has contributed to the vertex-fit. More... | |
float | trackWeight (const TrackRef &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 Error &, double chi2, double ndof, size_t size) | |
constructor for a valid vertex, with all data 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 |
y 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_ [size] |
covariance matrix (3x3) as vector More... | |
float | ndof_ |
number of degrees of freedom More... | |
Point | position_ |
position More... | |
std::vector< Track > | refittedTracks_ |
The vector of refitted tracks. More... | |
std::vector< TrackBaseRef > | tracks_ |
reference to tracks More... | |
bool | validity_ |
tells wether the vertex is really valid. More... | |
std::vector< uint8_t > | weights_ |
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.
typedef math::Error<dimension>::type reco::Vertex::Error |
typedef unsigned int reco::Vertex::index |
typedef math::XYZPoint reco::Vertex::Point |
typedef std::vector<TrackBaseRef >::const_iterator reco::Vertex::trackRef_iterator |
anonymous enum |
error matrix dimension
Enumerator | |
---|---|
dimension |
Definition at line 41 of file Vertex.h.
anonymous enum |
matix size
Enumerator | |
---|---|
size |
Definition at line 47 of file Vertex.h.
|
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 53 of file Vertex.h.
References covariance_, i, size, and validity_.
Constructor for a fake vertex.
Definition at line 18 of file Vertex.cc.
References covariance_, dimension, i, idx(), j, and validity_.
constructor for a valid vertex, with all data
Definition at line 8 of file Vertex.cc.
References covariance_, dimension, i, idx(), j, tracks_, and validity_.
void reco::Vertex::add | ( | const TrackBaseRef & | r, |
float | w = 1.0 |
||
) |
add a reference to a Track
Referenced by reco::PFDisplacedVertex::addElement(), NuclearVertexBuilder::FillVertexWithCrossingPoint(), NuclearVertexBuilder::FillVertexWithLastPrimHit(), TransientVertex::operator reco::Vertex(), VZeroProducer::produce(), pat::PATTrackAndVertexUnpacker::produce(), PixelVertexProducer::produce(), and counter.Counter::register().
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().
|
inline |
chi-squares
Definition at line 95 of file Vertex.h.
References chi2_.
Referenced by PatBJetVertexAnalyzer::analyze(), VertexMonitor::analyze(), TkConvValidator::analyze(), PrimaryVertexValidation::analyze(), ConversionProducer::buildCollection(), reco::PFDisplacedVertex::Dump(), GsfVertexTrackCompatibilityEstimator::estimate(), KalmanVertexTrackCompatibilityEstimator< N >::estimate(), ElectronMVAEstimatorRun2Spring15NonTrig::fillMVAVariables(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), V0Fitter::fitAll(), PFDisplacedVertexFinder::fitVertexFromSeed(), HLTmumutkFilter::hltFilter(), HLTDisplacedmumumuFilter::hltFilter(), HLTDisplacedtktkFilter::hltFilter(), HLTmumutktkFilter::hltFilter(), HLTDisplacedmumuFilter::hltFilter(), HLTVertexFilter::hltFilter(), ConversionTools::isGoodConversion(), EventVtxInfoNtupleDumper::produce(), pat::PATVertexSlimmer::produce(), pat::PATSecondaryVertexSlimmer::produce(), ConeIsolation::produce(), pat::PATConversionProducer::produce(), CandCommonVertexFitterBase::set(), PFCandCommonVertexFitterBase::set(), and PrimaryVertexMonitor::vertexPlots().
|
inline |
(i, j)-th element of error matrix, i, j = 0, ... 2
Definition at line 123 of file Vertex.h.
References covariance_, and idx().
Referenced by SignedImpactParameter3D::apply(), SignedTransverseImpactParameter::apply(), SignedDecayLength3D::apply(), VertexDistance::compatibility(), reco::TemplatedSecondaryVertex< SV >::computeDist2d(), reco::TemplatedSecondaryVertex< SV >::computeDist3d(), GsfConstraintAtVertex::constrainAtVertex(), tauImpactParameter::ParticleBuilder::createLorentzVectorParticle(), VertexDistance::distance(), VertexCompatibleWithBeam::distanceToBeam(), GsfVertexTrackCompatibilityEstimator::estimate(), KalmanVertexTrackCompatibilityEstimator< N >::estimate(), V0Fitter::fitAll(), IPTools::linearizedSignedImpactParameter3D(), ConversionHitChecker::nHitsBeforeVtx(), VertexCompatibleWithBeam::operator()(), reco::print(), pat::PATVertexSlimmer::produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >::produce(), PVFitter::pvQuality(), IPTools::signedDecayLength3D(), reco::JetSignalVertexCompatibilityAlgo::trackVertexCompat(), PrimaryVertexMonitor::vertexPlots(), reco::V0Candidate::vtxCovariance(), and SignedTransverseImpactParameter::zImpactParameter().
|
inline |
return SMatrix
Definition at line 127 of file Vertex.h.
References fill(), and visualization-live-secondInstance_cfg::m.
Referenced by xError(), yError(), and zError().
|
inline |
return SMatrix
Definition at line 129 of file Vertex.h.
References fill(), and visualization-live-secondInstance_cfg::m.
Referenced by argparse.ArgumentParser::_get_option_tuples(), python.rootplot.argparse.ArgumentParser::_get_option_tuples(), argparse.ArgumentParser::_parse_known_args(), python.rootplot.argparse.ArgumentParser::_parse_known_args(), argparse.ArgumentParser::_parse_optional(), python.rootplot.argparse.ArgumentParser::_parse_optional(), argparse.ArgumentParser::_read_args_from_files(), python.rootplot.argparse.ArgumentParser::_read_args_from_files(), IPTools::absoluteImpactParameter(), argparse.ArgumentParser::add_subparsers(), python.rootplot.argparse.ArgumentParser::add_subparsers(), FWSecVertexProxyBuilder::build(), FWVertexProxyBuilder::build(), dummyPrediction(), HLTmumutkFilter::hltFilter(), HLTmumutktkFilter::hltFilter(), HLTDisplacedmumuFilter::hltFilter(), HLTDisplacedmumumuFilter::hltFilter(), HLTDisplacedtktkFilter::hltFilter(), pat::VertexAssociationSelector::operator()(), argparse.ArgumentParser::parse_args(), python.rootplot.argparse.ArgumentParser::parse_args(), argparse.ArgumentParser::parse_known_args(), python.rootplot.argparse.ArgumentParser::parse_known_args(), pat::PATSecondaryVertexSlimmer::produce(), ConeIsolation::produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >::produce(), IPProducer< Container, Base, Helper >::produce(), and reco::GhostTrackVertexFinder::vertices().
void Vertex::fill | ( | CovarianceMatrix & | v | ) | const |
fill SMatrix
Definition at line 27 of file Vertex.cc.
References covariance_, dimension, i, idx(), and j.
Referenced by covariance(), error(), CandCommonVertexFitterBase::set(), and PFCandCommonVertexFitterBase::set().
|
inline |
Checks whether refitted tracks are stored.
Definition at line 134 of file Vertex.h.
References refittedTracks_.
Referenced by nTracks(), GhostTrackComputer::operator()(), CombinedSVComputer::operator()(), p4(), and reco::TrackKinematics::TrackKinematics().
position index
Definition at line 184 of file Vertex.h.
Referenced by covariance(), fill(), and Vertex().
|
inline |
Tells whether a Vertex is fake, i.e. not a vertex made out of a proper fit with tracks. For a primary vertex, it could simply be the beam line.
Definition at line 64 of file Vertex.h.
References chi2_, ndof_, and tracks_.
Referenced by TopDiLeptonDQM::analyze(), PileupJetIdAlgo::computeIdVariables(), BVertexFilter::filter(), TauTagTools::filteredPFChargedHadrCands(), TauTagTools::filteredTracks(), HLTVertexFilter::hltFilter(), HcalHBHEMuonAnalyzer::isGoodVertex(), PVObjectSelector::operator()(), EventVtxInfoNtupleDumper::produce(), PFchsMETcorrInputProducer::produce(), PrimaryVertexMonitor::pvTracksPlots(), MVAJetIdMaker::SetVars(), and PrimaryVertexMonitor::vertexPlots().
|
inline |
Tells whether the vertex is valid.
Definition at line 60 of file Vertex.h.
References validity_.
Referenced by EwkMuDQM::analyze(), EwkElecDQM::analyze(), TkConvValidator::analyze(), PrimaryVertexValidation::analyze(), ConversionProducer::buildCollection(), ConvertedPhotonProducer::buildCollections(), NuclearLikelihood::calculate(), ConversionProducer::checkPhi(), reco::Conversion::dxy(), reco::Conversion::dz(), ElectronMVAEstimatorRun2Spring15NonTrig::fillMVAVariables(), NuclearVertexBuilder::FillVertexWithAdaptVtxFitter(), HLTVertexFilter::hltFilter(), ConversionTools::isGoodConversion(), lxy(), reco::Conversion::lxy(), reco::Conversion::lz(), PrimaryVertexMonitor::pvTracksPlots(), core.AutoHandle.AutoHandle::ReallyLoad(), and PrimaryVertexMonitor::vertexPlots().
|
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 102 of file Vertex.h.
References ndof_.
Referenced by CMSDAS11DijetAnalyzer::analyze(), CMSDAS11DijetTestAnalyzer::analyze(), VertexMonitor::analyze(), SiPixelTrackResidualSource::analyze(), TkConvValidator::analyze(), PrimaryVertexValidation::analyze(), ConversionProducer::buildCollection(), PileupJetIdAlgo::computeIdVariables(), reco::PFDisplacedVertex::Dump(), PrimaryVertexAnalyzer4PUSlimmed::fillGenAssociatedRecoVertexHistograms(), ElectronMVAEstimatorRun2Spring15NonTrig::fillMVAVariables(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), V0Fitter::fitAll(), PFDisplacedVertexFinder::fitVertexFromSeed(), HLTmumutkFilter::hltFilter(), HLTDisplacedmumuFilter::hltFilter(), HLTDisplacedmumumuFilter::hltFilter(), HLTDisplacedtktkFilter::hltFilter(), HLTmumutktkFilter::hltFilter(), HLTVertexFilter::hltFilter(), ConversionTools::isGoodConversion(), HcalHBHEMuonAnalyzer::isGoodVertex(), PVObjectSelector::operator()(), EventVtxInfoNtupleDumper::produce(), pat::PATVertexSlimmer::produce(), pat::PATSecondaryVertexSlimmer::produce(), ConeIsolation::produce(), PFchsMETcorrInputProducer::produce(), pat::PATConversionProducer::produce(), CandCommonVertexFitterBase::set(), PFCandCommonVertexFitterBase::set(), MVAJetIdMaker::SetVars(), and PrimaryVertexMonitor::vertexPlots().
|
inline |
chi-squared divided by n.d.o.f.
Definition at line 104 of file Vertex.h.
Referenced by VertexMonitor::analyze(), PrimaryVertexValidation::analyze(), reco::PFDisplacedVertex::Dump(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), V0Fitter::fitAll(), HLTmumutkFilter::hltFilter(), HLTDisplacedtktkFilter::hltFilter(), HLTDisplacedmumuFilter::hltFilter(), HLTDisplacedmumumuFilter::hltFilter(), and HLTmumutktkFilter::hltFilter().
unsigned int Vertex::nTracks | ( | float | minWeight = 0.5 | ) | const |
Returns the number of tracks in the vertex with weight above minWeight.
Definition at line 147 of file Vertex.cc.
References hasRefittedTracks(), getDQMSummary::iter, gen::n, originalTrack(), refittedTracks_, tracks_begin(), tracks_end(), and trackWeight().
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 86 of file Vertex.cc.
References refittedTracks_, and tracks_.
Referenced by PFDisplacedVertexFinder::commonTracks(), PF_PU_AssoMapAlgos::FindNIVertex(), PFDisplacedVertexHelper::identifyVertex(), PFDisplacedVertexHelper::lambdaCP(), reco::PFDisplacedVertex::momentum(), nTracks(), and p4().
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 113 of file Vertex.cc.
References hasRefittedTracks(), getDQMSummary::iter, originalTrack(), refittedTracks_, tracks_begin(), tracks_end(), and trackWeight().
Referenced by FWVertexProxyBuilder::build(), Tau.Tau::dxy_approx(), Tau.Tau::dz(), Jet.Jet::jetID(), pat::PATSecondaryVertexSlimmer::produce(), and reco::Conversion::refittedPair4Momentum().
|
inline |
position
Definition at line 106 of file Vertex.h.
References position_.
Referenced by IPTools::absoluteImpactParameter(), IPTools::absoluteImpactParameter3D(), IPTools::absoluteTransverseImpactParameter(), CMSDAS11DijetAnalyzer::analyze(), CMSDAS11DijetTestAnalyzer::analyze(), TrackTypeMonitor::analyze(), TrackAnalyzer::analyze(), TkConvValidator::analyze(), PrimaryVertexValidation::analyze(), HcalRaddamMuon::analyze(), SignedImpactParameter3D::apply(), CaloRecoTauAlgorithm::buildCaloTau(), PFRecoTauAlgorithm::buildPFTau(), pat::LeptonVertexSignificance::calculate(), reco::PFMETProducerMVA::chargedFracInCone(), ConversionProducer::checkPhi(), VertexDistance::compatibility(), reco::TemplatedSecondaryVertex< SV >::computeDist2d(), reco::TemplatedSecondaryVertex< SV >::computeDist3d(), PileupJetIdAlgo::computeIdVariables(), reco::PFMETProducerMVA::computePFCandidateInfo(), vertexTools::computeSharedTracks(), GsfConstraintAtVertex::constrainAtVertex(), tauImpactParameter::ParticleBuilder::createLorentzVectorParticle(), reco::VZero::crossingPoint(), VertexDistance::distance(), VertexCompatibleWithBeam::distanceToBeam(), dummyPrediction(), reco::PFDisplacedVertex::Dump(), ElectronMaker::electronIsoValuePF(), GsfVertexTrackCompatibilityEstimator::estimate(), KalmanVertexTrackCompatibilityEstimator< N >::estimate(), PFEGammaAlgo::fillPFCandidates(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), TrackingFailureFilter::filter(), TauTagTools::filteredPFChargedHadrCands(), TauTagTools::filteredTracks(), PF_PU_AssoMapAlgos::FindConversionVertex(), PF_PU_AssoMapAlgos::FindNIVertex(), PFDisplacedVertexFinder::fitVertexFromSeed(), BtoCharmDecayVertexMerger::flightDirection(), HLTmumutkFilter::hltFilter(), HLTmumutktkFilter::hltFilter(), HLTDisplacedmumumuFilter::hltFilter(), HLTDisplacedmumuFilter::hltFilter(), HLTDisplacedtktkFilter::hltFilter(), PFDisplacedVertexHelper::identifyVertex(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), NuclearVertexBuilder::isCompatible(), HcalHBHEMuonAnalyzer::isGoodVertex(), muon::isHighPtMuon(), EGammaMvaEleEstimator::isoMvaValue(), muon::isSoftMuon(), muon::isTightMuon(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::loop(), L3MuonTrajectoryBuilder::makeTkCandCollection(), ConversionTools::matchesConversion(), EGammaMvaEleEstimator::mvaValue(), EGammaMvaEleEstimatorCSA14::mvaValue(), TracksClusteringFromDisplacedSeed::nearTracks(), NuclearTrackCorrector::newTrajNeeded(), VertexCompatibleWithBeam::operator()(), reco::VertexFilter::operator()(), PVObjectSelector::operator()(), pat::VertexAssociationSelector::operator()(), position(), print(), EventVtxInfoNtupleDumper::produce(), pat::PATVertexSlimmer::produce(), pat::PATSecondaryVertexSlimmer::produce(), TrackFromPVSelector::produce(), MuonFromPVSelector::produce(), GsfElectronFromPVSelector::produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), VertexFromTrackProducer::produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >::produce(), IPProducer< Container, Base, Helper >::produce(), PrimaryVertexMonitor::pvTracksPlots(), TkConvValidator::recalculateMomentumAtFittedVertex(), pf2pat::IPCutPFCandidateSelectorDefinition::select(), reco::PFDisplacedVertex::setPrimaryDirection(), FWConvTrackHitsDetailView::setTextInfo(), MVAJetIdMaker::SetVars(), reco::V0Candidate::setVertex(), 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().
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 GhostTrackComputer::operator()(), CombinedSVComputer::operator()(), refittedTrack(), reco::TrackKinematics::TrackKinematics(), and reco::PFDisplacedVertex::trackPosition().
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 108 of file Vertex.cc.
References refittedTrack().
|
inline |
Returns the container of refitted tracks.
Definition at line 149 of file Vertex.h.
References refittedTracks_.
Referenced by TkConvValidator::analyze(), PFDisplacedVertexFinder::commonTracks(), PF_PU_AssoMapAlgos::FindNIVertex(), PFDisplacedVertexHelper::identifyVertex(), PFDisplacedVertexHelper::isKaonMass(), PFDisplacedVertexHelper::lambdaCP(), reco::PFDisplacedVertex::momentum(), reco::PFDisplacedVertex::totalCharge(), and reco::PFDisplacedVertex::trackPosition().
void Vertex::removeTracks | ( | ) |
Definition at line 64 of file Vertex.cc.
References refittedTracks_, tracks_, and weights_.
Referenced by reco::PFDisplacedVertex::cleanTracks(), and PFDisplacedVertexFinder::fitVertexFromSeed().
Vertex::trackRef_iterator Vertex::tracks_begin | ( | ) | const |
first iterator over tracks
Definition at line 39 of file Vertex.cc.
References tracks_.
Referenced by NuclearVertexBuilder::addSecondaryTrack(), PatBJetVertexAnalyzer::analyze(), VertexMonitor::analyze(), PrimaryVertexValidation::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollectionTP(), VertexAssociatorByTracks::associateRecoToSim(), VertexAssociatorByTracks::associateSimToReco(), FWSecVertexProxyBuilder::build(), FWVertexProxyBuilder::build(), NuclearLikelihood::calculate(), PFIsolationEstimator::chargedHadronVertex(), vertexTools::computeSharedTracks(), computeSharedTracks(), PFRecoTauDiscriminationByFlight::discriminate(), GsfVertexTrackCompatibilityEstimator::estimate(), KalmanVertexTrackCompatibilityEstimator< N >::estimate(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), FFTJetPFPileupCleaner::findSomeVertexWFakes(), PrimaryVertexAnalyzer4PU::getTruthMatchedVertexTracks(), PATPrimaryVertexSelector::getVertexVariables(), HLTmumutkFilter::hltFilter(), HLTDisplacedtktkFilter::hltFilter(), HLTDisplacedmumumuFilter::hltFilter(), HLTmumutktkFilter::hltFilter(), HLTDisplacedmumuFilter::hltFilter(), NuclearVertexBuilder::isCompatible(), PFEGammaFilters::isElectronSafeForJetMET(), main(), reco::VZero::negativeDaughter(), nTracks(), CombinedSVComputer::operator()(), p4(), reco::VZero::positiveDaughter(), reco::NuclearInteraction::primaryTrack(), PrimaryVertexAnalyzer4PU::printEventSummary(), pat::PATSecondaryVertexSlimmer::produce(), pat::PATLostTracks::produce(), PFchsMETcorrInputProducer::produce(), PFTauPrimaryVertexProducer::produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >::produce(), PVClusterComparer::pTSquaredSum(), PrimaryVertexMonitor::pvTracksPlots(), PFEGammaAlgo::removeOrLinkECALClustersToKFTracks(), NuclearLikelihood::secondaryTrackMaxHits(), reco::NuclearInteraction::secondaryTracks_begin(), PFElectronAlgo::SetIDOutputs(), PFElectronAlgo::SetLinks(), CandidateBoostedDoubleSecondaryVertexComputer::setTracksPVBase(), VertexHigherPtSquared::sumPtSquared(), TrackerDpgAnalysis::sumPtSquared(), reco::TrackKinematics::TrackKinematics(), and PrimaryVertexMonitor::vertexPlots().
Vertex::trackRef_iterator Vertex::tracks_end | ( | ) | const |
last iterator over tracks
Definition at line 44 of file Vertex.cc.
References tracks_.
Referenced by NuclearVertexBuilder::addSecondaryTrack(), PatBJetVertexAnalyzer::analyze(), VertexMonitor::analyze(), PrimaryVertexValidation::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollectionTP(), VertexAssociatorByTracks::associateRecoToSim(), VertexAssociatorByTracks::associateSimToReco(), FWSecVertexProxyBuilder::build(), FWVertexProxyBuilder::build(), PFIsolationEstimator::chargedHadronVertex(), vertexTools::computeSharedTracks(), computeSharedTracks(), PFRecoTauDiscriminationByFlight::discriminate(), GsfVertexTrackCompatibilityEstimator::estimate(), KalmanVertexTrackCompatibilityEstimator< N >::estimate(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), FFTJetPFPileupCleaner::findSomeVertexWFakes(), PrimaryVertexAnalyzer4PU::getTruthMatchedVertexTracks(), PATPrimaryVertexSelector::getVertexVariables(), HLTmumutktkFilter::hltFilter(), PFEGammaFilters::isElectronSafeForJetMET(), main(), nTracks(), CombinedSVComputer::operator()(), p4(), PrimaryVertexAnalyzer4PU::printEventSummary(), pat::PATSecondaryVertexSlimmer::produce(), pat::PATLostTracks::produce(), PFchsMETcorrInputProducer::produce(), PFTauPrimaryVertexProducer::produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >::produce(), PVClusterComparer::pTSquaredSum(), PrimaryVertexMonitor::pvTracksPlots(), PFEGammaAlgo::removeOrLinkECALClustersToKFTracks(), NuclearLikelihood::secondaryTrackMaxHits(), reco::NuclearInteraction::secondaryTracks_end(), PFElectronAlgo::SetIDOutputs(), PFElectronAlgo::SetLinks(), CandidateBoostedDoubleSecondaryVertexComputer::setTracksPVBase(), VertexHigherPtSquared::sumPtSquared(), TrackerDpgAnalysis::sumPtSquared(), reco::TrackKinematics::TrackKinematics(), and PrimaryVertexMonitor::vertexPlots().
size_t Vertex::tracksSize | ( | ) | const |
number of tracks
Definition at line 34 of file Vertex.cc.
References weights_.
Referenced by PatVertexAnalyzer::analyze(), PatBJetVertexAnalyzer::analyze(), VertexMonitor::analyze(), TopDiLeptonDQM::analyze(), PrimaryVertexValidation::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), PrimaryVertexAnalyzer4PU::analyzeVertexCollectionTP(), NuclearLikelihood::calculate(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), NuclearVertexBuilder::FillVertexWithAdaptVtxFitter(), HLTmumutkFilter::hltFilter(), HLTDisplacedtktkFilter::hltFilter(), HLTDisplacedmumumuFilter::hltFilter(), HLTDisplacedmumuFilter::hltFilter(), HLTmumutktkFilter::hltFilter(), reco::PFDisplacedVertex::momentum(), EventVtxInfoNtupleDumper::produce(), ConeIsolation::produce(), PrimaryVertexMonitor::pvTracksPlots(), NuclearLikelihood::secondaryTrackMaxHits(), reco::NuclearInteraction::secondaryTracksSize(), reco::PFDisplacedVertex::totalCharge(), and PrimaryVertexMonitor::vertexPlots().
float reco::Vertex::trackWeight | ( | const TrackBaseRef & | r | ) | const |
returns the weight with which a Track has contributed to the vertex-fit.
Referenced by 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(), PrimaryVertexAnalyzer4PU::printEventSummary(), pat::PATSecondaryVertexSlimmer::produce(), pat::PATLostTracks::produce(), PrimaryVertexMonitor::pvTracksPlots(), CandidateBoostedDoubleSecondaryVertexComputer::setTracksPVBase(), reco::TrackKinematics::TrackKinematics(), trackWeight(), trackWeight(), PrimaryVertexMonitor::vertexPlots(), and reco::btag::weight().
float Vertex::trackWeight | ( | const TrackRef & | r | ) | const |
returns the weight with which a Track has contributed to the vertex-fit.
Definition at line 80 of file Vertex.cc.
References trackWeight().
|
inline |
x coordinate
Definition at line 108 of file Vertex.h.
References position_.
Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), PatVertexAnalyzer::analyze(), TopDiLeptonDQM::analyze(), TkConvValidator::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(), V0Fitter::fitAll(), flightDirection(), getVertexD0(), HLTVertexFilter::hltFilter(), ConversionTools::isGoodConversion(), TCMETAlgo::isGoodTrack(), IPTools::jetTrackDistance(), IPTools::linearizedSignedImpactParameter3D(), lxy(), reco::Conversion::lxy(), reco::PFDisplacedVertex::momentum(), ConversionHitChecker::nHitsBeforeVtx(), pat::VertexAssociationSelector::operator()(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), reco::print(), PFAlgo::processBlock(), ParticleReplacerParticleGun::produce(), pat::PATConversionProducer::produce(), PFAlgo::reconstructCluster(), PFPhotonAlgo::RunPFPhoton(), reco::PFDisplacedVertex::setPrimaryDirection(), FWConvTrackHitsDetailView::setTextInfo(), IPTools::signedDecayLength3D(), IPTools::signedImpactParameter3D(), IPTools::signedTransverseImpactParameter(), TrackClusterSplitter::splitClusters(), and SignedTransverseImpactParameter::zImpactParameter().
|
inline |
error on x
Definition at line 114 of file Vertex.h.
References covariance(), and mathSSE::sqrt().
Referenced by PatVertexAnalyzer::analyze(), TrackAnalyzer::analyze(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), NuclearVertexBuilder::isCompatible(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::loop(), VertexFromTrackProducer::produce(), pf2pat::IPCutPFCandidateSelectorDefinition::select(), and PrimaryVertexMonitor::vertexPlots().
|
inline |
y coordinate
Definition at line 110 of file Vertex.h.
References position_.
Referenced by svgfig.Ellipse::__repr__(), PatVertexAnalyzer::analyze(), TopDiLeptonDQM::analyze(), TkConvValidator::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(), V0Fitter::fitAll(), flightDirection(), getVertexD0(), HLTVertexFilter::hltFilter(), ConversionTools::isGoodConversion(), TCMETAlgo::isGoodTrack(), IPTools::jetTrackDistance(), IPTools::linearizedSignedImpactParameter3D(), lxy(), reco::Conversion::lxy(), reco::PFDisplacedVertex::momentum(), ConversionHitChecker::nHitsBeforeVtx(), pat::VertexAssociationSelector::operator()(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), reco::print(), PFAlgo::processBlock(), ParticleReplacerParticleGun::produce(), pat::PATConversionProducer::produce(), PFAlgo::reconstructCluster(), PFPhotonAlgo::RunPFPhoton(), reco::PFDisplacedVertex::setPrimaryDirection(), FWConvTrackHitsDetailView::setTextInfo(), IPTools::signedDecayLength3D(), IPTools::signedImpactParameter3D(), IPTools::signedTransverseImpactParameter(), TrackClusterSplitter::splitClusters(), and SignedTransverseImpactParameter::zImpactParameter().
|
inline |
error on y
Definition at line 116 of file Vertex.h.
References covariance(), and mathSSE::sqrt().
Referenced by PatVertexAnalyzer::analyze(), TrackAnalyzer::analyze(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), NuclearVertexBuilder::isCompatible(), VertexFromTrackProducer::produce(), pf2pat::IPCutPFCandidateSelectorDefinition::select(), and PrimaryVertexMonitor::vertexPlots().
|
inline |
y coordinate
Definition at line 112 of file Vertex.h.
References position_.
Referenced by CMSDAS11DijetAnalyzer::analyze(), CMSDAS11DijetTestAnalyzer::analyze(), PatVertexAnalyzer::analyze(), TopDiLeptonDQM::analyze(), SignedImpactParameter3D::apply(), SignedTransverseImpactParameter::apply(), SignedDecayLength3D::apply(), 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(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), V0Fitter::fitAll(), flightDirection(), HLTVertexFilter::hltFilter(), TCMETAlgo::isGoodTrack(), IPTools::jetTrackDistance(), IPTools::linearizedSignedImpactParameter3D(), QualityCutsAnalyzer::LoopOverJetTracksAssociation(), reco::Conversion::lz(), PrimaryVertexAnalyzer::matchVertex(), PrimaryVertexAnalyzer4PU::matchVertex(), reco::PFDisplacedVertex::momentum(), ConversionHitChecker::nHitsBeforeVtx(), PVObjectSelector::operator()(), pat::VertexAssociationSelector::operator()(), geometryXMLparser.Alignable::pos(), reco::print(), PFAlgo::processBlock(), EventVtxInfoNtupleDumper::produce(), ConeIsolation::produce(), ParticleReplacerParticleGun::produce(), PFchsMETcorrInputProducer::produce(), PFAlgo::reconstructCluster(), PFPhotonAlgo::RunPFPhoton(), reco::PFDisplacedVertex::setPrimaryDirection(), FWConvTrackHitsDetailView::setTextInfo(), IPTools::signedDecayLength3D(), IPTools::signedImpactParameter3D(), TrackClusterSplitter::splitClusters(), ConeIsolationAlgorithm::tag(), ImpactParameterAlgorithm::tag(), and SignedTransverseImpactParameter::zImpactParameter().
|
inline |
error on z
Definition at line 118 of file Vertex.h.
References covariance(), and mathSSE::sqrt().
Referenced by PatVertexAnalyzer::analyze(), TrackAnalyzer::analyze(), pat::LeptonVertexSignificance::calculate(), SVTagInfoValidationAnalyzer::fillRecoToSim(), recoBSVTagInfoValidationAnalyzer::fillRecoToSim(), SVTagInfoValidationAnalyzer::fillSimToReco(), recoBSVTagInfoValidationAnalyzer::fillSimToReco(), NuclearVertexBuilder::isCompatible(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::loop(), pat::VertexAssociationSelector::operator()(), VertexFromTrackProducer::produce(), pf2pat::IPCutPFCandidateSelectorDefinition::select(), and PrimaryVertexMonitor::vertexPlots().
|
private |
chi-sqared
Definition at line 167 of file Vertex.h.
Referenced by chi2(), isFake(), and normalizedChi2().
|
private |
covariance matrix (3x3) as vector
Definition at line 173 of file Vertex.h.
Referenced by covariance(), fill(), and Vertex().
|
private |
number of degrees of freedom
Definition at line 169 of file Vertex.h.
Referenced by isFake(), ndof(), and normalizedChi2().
|
private |
|
private |
The vector of refitted tracks.
Definition at line 177 of file Vertex.h.
Referenced by hasRefittedTracks(), nTracks(), originalTrack(), p4(), refittedTracks(), and removeTracks().
|
private |
reference to tracks
Definition at line 175 of file Vertex.h.
Referenced by isFake(), originalTrack(), removeTracks(), tracks_begin(), tracks_end(), and Vertex().
|
private |
|
private |
Definition at line 178 of file Vertex.h.
Referenced by removeTracks(), and tracksSize().