This class traces the simulated and generated history of a given track. More...
#include <TrackHistory.h>
Public Member Functions | |
bool | evaluate (TrackingParticleRef tpr) |
Evaluate track history using a TrackingParticleRef. More... | |
bool | evaluate (reco::TrackBaseRef) |
Evaluate reco::Track 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 |
const reco::TrackBaseRef & | recoTrack () const |
Return a reference to the reconstructed track. More... | |
TrackHistory (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... | |
const HepMC::GenParticle * | genParticle () const |
Returns a pointer to most primitive status 1 or 2 particle. More... | |
GenParticleTrail const & | genParticleTrail () const |
Return all generated particle in the history. More... | |
GenVertexTrail const & | genVertexTrail () const |
Return all generated vertex in the history. More... | |
HistoryBase () | |
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... | |
Additional Inherited Members | |
Public Types inherited from HistoryBase | |
typedef std::vector< const HepMC::GenParticle * > | GenParticleTrail |
GenParticle trail type. More... | |
typedef std::vector< const HepMC::GenVertex * > | GenVertexTrail |
GenVertex trail type. More... | |
typedef std::set< const HepMC::GenVertex * > | GenVertexTrailHelper |
GenVertex trail helper type. More... | |
typedef std::vector < TrackingParticleRef > | SimParticleTrail |
SimParticle trail type. More... | |
typedef std::vector < TrackingVertexRef > | SimVertexTrail |
SimVertex trail type. More... | |
Protected Member Functions inherited from HistoryBase | |
bool | evaluate (TrackingParticleRef tpr) |
Evaluate track history using a TrackingParticleRef. More... | |
bool | evaluate (TrackingVertexRef tvr) |
Evaluate track history using a TrackingParticleRef. More... | |
Protected Attributes inherited from HistoryBase | |
GenParticleTrail | genParticleTrail_ |
GenVertexTrail | genVertexTrail_ |
GenVertexTrailHelper | genVertexTrailHelper_ |
SimParticleTrail | simParticleTrail_ |
SimVertexTrail | simVertexTrail_ |
This class traces the simulated and generated history of a given track.
Definition at line 17 of file TrackHistory.h.
TrackHistory::TrackHistory | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector && | collector | ||
) |
Constructor by pset.
Definition at line 6 of file TrackHistory.cc.
References bestMatchByMaxValue_, enableRecoToSim_, enableSimToReco_, edm::ParameterSet::getUntrackedParameter(), or, quality_, trackAssociator_, trackingTruth_, and trackProducer_.
|
inline |
Evaluate track history using a TrackingParticleRef.
Definition at line 41 of file TrackHistory.h.
References bestMatchByMaxValue_, enableSimToReco_, HistoryBase::evaluate(), match(), quality_, recotrack_, query::result, and simToReco_.
Referenced by TrackClassifier::evaluate(), and GenTrackMatcher::produce().
bool TrackHistory::evaluate | ( | reco::TrackBaseRef | tr | ) |
Evaluate reco::Track history using a given association.
Definition at line 66 of file TrackHistory.cc.
References bestMatchByMaxValue_, enableRecoToSim_, HistoryBase::evaluate(), edm::Ref< C, T, F >::isNull(), match(), quality_, recoToSim_, recotrack_, and query::result.
void TrackHistory::newEvent | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
Pre-process event information (for accessing reconstruction information)
Definition at line 39 of file TrackHistory.cc.
References enableRecoToSim_, enableSimToReco_, recoToSim_, simToReco_, ecalTPGAnalyzer_cfg::TPCollection, trackAssociator_, HLT_FULL_cff::trackCollection, trackingTruth_, and trackProducer_.
Referenced by TrackClassifier::newEvent(), and GenTrackMatcher::produce().
|
inline |
Definition at line 67 of file TrackHistory.h.
References quality_.
|
inline |
Return a reference to the reconstructed track.
Definition at line 62 of file TrackHistory.h.
References recotrack_.
Referenced by TrackClassifier::evaluate().
|
private |
Definition at line 76 of file TrackHistory.h.
Referenced by evaluate(), and TrackHistory().
|
private |
Definition at line 78 of file TrackHistory.h.
Referenced by evaluate(), newEvent(), and TrackHistory().
|
private |
Definition at line 78 of file TrackHistory.h.
Referenced by evaluate(), newEvent(), and TrackHistory().
|
private |
Definition at line 74 of file TrackHistory.h.
|
private |
Definition at line 80 of file TrackHistory.h.
Referenced by evaluate(), quality(), and TrackHistory().
|
private |
Definition at line 90 of file TrackHistory.h.
Referenced by evaluate(), and newEvent().
|
private |
Definition at line 88 of file TrackHistory.h.
Referenced by evaluate(), and recoTrack().
|
private |
Definition at line 92 of file TrackHistory.h.
Referenced by evaluate(), and newEvent().
|
private |
Definition at line 86 of file TrackHistory.h.
Referenced by newEvent(), and TrackHistory().
|
private |
Definition at line 84 of file TrackHistory.h.
Referenced by newEvent(), and TrackHistory().
|
private |
Definition at line 82 of file TrackHistory.h.
Referenced by newEvent(), and TrackHistory().