This class traces the simulated and generated history of a given track. More...
#include <VertexHistory.h>
Public Member Functions | |
bool | evaluate (TrackingVertexRef tvr) |
Evaluate track history using a TrackingParticleRef. More... | |
bool | evaluate (reco::VertexBaseRef) |
Evaluate reco::Vertex history using a given association. More... | |
void | newEvent (const edm::Event &, const edm::EventSetup &) |
Pre-process event information (for accessing reconstruction information) More... | |
double | quality () const |
Return the quality of the match. More... | |
const reco::VertexBaseRef & | recoVertex () const |
Return a reference to the reconstructed track. More... | |
VertexHistory (const edm::ParameterSet &, edm::ConsumesCollector &&) | |
Constructor by pset. More... | |
Public Member Functions inherited from HistoryBase | |
void | depth (int d) |
Set the depth of the history. More... | |
bool | evaluate (TrackingParticleRef tpr) |
Evaluate track history using a TrackingParticleRef. More... | |
bool | evaluate (TrackingVertexRef tvr) |
Evaluate track history using a TrackingParticleRef. More... | |
const HepMC::GenParticle * | genParticle () const |
GenParticleTrail const & | genParticleTrail () const |
Return all generated particle (HepMC::GenParticle) in the history. More... | |
GenVertexTrail const & | genVertexTrail () const |
Return all generated vertex in the history. More... | |
HistoryBase () | |
const reco::GenParticle * | recoGenParticle () const |
RecoGenParticleTrail const & | recoGenParticleTrail () const |
Return all reco::GenParticle in the history. More... | |
const TrackingParticleRef & | simParticle () const |
Return the initial tracking particle from the history. More... | |
SimParticleTrail const & | simParticleTrail () const |
Return all the simulated particle in the history. More... | |
const TrackingVertexRef & | simVertex () const |
Return the initial tracking vertex from the history. More... | |
SimVertexTrail const & | simVertexTrail () const |
Return all the simulated vertices in the history. More... | |
This class traces the simulated and generated history of a given track.
Definition at line 18 of file VertexHistory.h.
VertexHistory::VertexHistory | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector && | collector | ||
) |
Constructor by pset.
Definition at line 6 of file VertexHistory.cc.
References bestMatchByMaxValue_, enableRecoToSim_, enableSimToReco_, edm::ParameterSet::getUntrackedParameter(), or, quality_, trackingTruth_, vertexAssociator_, and vertexProducer_.
|
inline |
Evaluate track history using a TrackingParticleRef.
Definition at line 38 of file VertexHistory.h.
References bestMatchByMaxValue_, enableSimToReco_, HistoryBase::evaluate(), match(), quality_, recovertex_, mps_fire::result, and simToReco_.
Referenced by VertexClassifier::evaluate().
bool VertexHistory::evaluate | ( | reco::VertexBaseRef | tv | ) |
Evaluate reco::Vertex history using a given association.
Definition at line 60 of file VertexHistory.cc.
References bestMatchByMaxValue_, enableRecoToSim_, HistoryBase::evaluate(), edm::Ref< C, T, F >::isNull(), match(), quality_, recoToSim_, recovertex_, and mps_fire::result.
void VertexHistory::newEvent | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
Pre-process event information (for accessing reconstruction information)
Definition at line 34 of file VertexHistory.cc.
References reco::VertexToTrackingVertexAssociator::associateRecoToSim(), reco::VertexToTrackingVertexAssociator::associateSimToReco(), enableRecoToSim_, enableSimToReco_, recoToSim_, simToReco_, trackingTruth_, packedPFCandidates_cfi::vertexAssociator, vertexAssociator_, particleFlowSuperClusterECAL_cfi::vertexCollection, and vertexProducer_.
Referenced by VertexClassifier::newEvent().
|
inline |
Return the quality of the match.
Definition at line 59 of file VertexHistory.h.
References quality_.
Referenced by SVTagInfoValidationAnalyzer::analyze(), and recoBSVTagInfoValidationAnalyzer::analyze().
|
inline |
Return a reference to the reconstructed track.
Definition at line 56 of file VertexHistory.h.
References recovertex_.
Referenced by SVTagInfoValidationAnalyzer::analyze(), recoBSVTagInfoValidationAnalyzer::analyze(), and VertexClassifier::evaluate().
|
private |
Definition at line 62 of file VertexHistory.h.
Referenced by evaluate(), and VertexHistory().
|
private |
Definition at line 64 of file VertexHistory.h.
Referenced by evaluate(), newEvent(), and VertexHistory().
|
private |
Definition at line 64 of file VertexHistory.h.
Referenced by evaluate(), newEvent(), and VertexHistory().
|
private |
Definition at line 66 of file VertexHistory.h.
Referenced by evaluate(), quality(), and VertexHistory().
|
private |
Definition at line 76 of file VertexHistory.h.
Referenced by evaluate(), and newEvent().
|
private |
Definition at line 74 of file VertexHistory.h.
Referenced by evaluate(), and recoVertex().
|
private |
Definition at line 78 of file VertexHistory.h.
Referenced by evaluate(), and newEvent().
|
private |
Definition at line 70 of file VertexHistory.h.
Referenced by newEvent(), and VertexHistory().
|
private |
Definition at line 72 of file VertexHistory.h.
Referenced by newEvent(), and VertexHistory().
|
private |
Definition at line 68 of file VertexHistory.h.
Referenced by newEvent(), and VertexHistory().