This class traces the simulated and generated history of a given track. More...
#include <TrackHistory.h>
Public Member Functions | |
bool | evaluate (reco::TrackBaseRef) |
Evaluate reco::Track history using a given association. More... | |
bool | evaluate (TrackingParticleRef tpr) |
Evaluate track history using a TrackingParticleRef. More... | |
const std::pair< TrackingParticleRef, double > | getMatchedTrackingParticle () const |
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... | |
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 |
const GenParticleTrail & | genParticleTrail () const |
Return all generated particle (HepMC::GenParticle) in the history. More... | |
const GenVertexTrail & | genVertexTrail () const |
Return all generated vertex in the history. More... | |
HistoryBase () | |
const reco::GenParticle * | recoGenParticle () const |
const RecoGenParticleTrail & | recoGenParticleTrail () const |
Return all reco::GenParticle in the history. More... | |
const TrackingParticleRef & | simParticle () const |
Return the initial tracking particle from the history. More... | |
const SimParticleTrail & | simParticleTrail () const |
Return all the simulated particle in the history. More... | |
const TrackingVertexRef & | simVertex () const |
Return the initial tracking vertex from the history. More... | |
const SimVertexTrail & | 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 17 of file TrackHistory.h.
TrackHistory::TrackHistory | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector && | collector | ||
) |
Constructor by pset.
Definition at line 5 of file TrackHistory.cc.
References bestMatchByMaxValue_, enableRecoToSim_, enableSimToReco_, or, quality_, trackAssociator_, trackingTruth_, and trackProducer_.
bool TrackHistory::evaluate | ( | reco::TrackBaseRef | tr | ) |
Evaluate reco::Track history using a given association.
Definition at line 57 of file TrackHistory.cc.
References bestMatchByMaxValue_, enableRecoToSim_, HistoryBase::evaluate(), edm::Ref< C, T, F >::isNull(), match(), quality_, recoToSim_, recotrack_, mps_fire::result, and trackingParticle_.
|
inline |
Evaluate track history using a TrackingParticleRef.
Definition at line 37 of file TrackHistory.h.
References bestMatchByMaxValue_, enableSimToReco_, HistoryBase::evaluate(), match(), quality_, recotrack_, mps_fire::result, and simToReco_.
Referenced by TrackClassifier::evaluate(), and GenTrackMatcher::produce().
|
inline |
Definition at line 58 of file TrackHistory.h.
References quality_, mps_fire::result, and trackingParticle_.
Referenced by BDHadronTrackMonitoringAnalyzer::analyze().
void TrackHistory::newEvent | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
Pre-process event information (for accessing reconstruction information)
Definition at line 33 of file TrackHistory.cc.
References ctfWithMaterialTrackMCMatch_cfi::associator, enableRecoToSim_, enableSimToReco_, recoToSim_, simToReco_, trackAssociator_, duplicaterechits_cfi::trackCollection, trackingTruth_, and trackProducer_.
Referenced by TrackClassifier::newEvent(), and GenTrackMatcher::produce().
|
inline |
|
inline |
Return a reference to the reconstructed track.
Definition at line 55 of file TrackHistory.h.
References recotrack_.
Referenced by TrackClassifier::evaluate().
|
private |
Definition at line 71 of file TrackHistory.h.
Referenced by evaluate(), and TrackHistory().
|
private |
Definition at line 73 of file TrackHistory.h.
Referenced by evaluate(), newEvent(), and TrackHistory().
|
private |
Definition at line 73 of file TrackHistory.h.
Referenced by evaluate(), newEvent(), and TrackHistory().
|
private |
Definition at line 69 of file TrackHistory.h.
|
private |
Definition at line 75 of file TrackHistory.h.
Referenced by evaluate(), getMatchedTrackingParticle(), quality(), and TrackHistory().
|
private |
Definition at line 87 of file TrackHistory.h.
Referenced by evaluate(), and newEvent().
|
private |
Definition at line 83 of file TrackHistory.h.
Referenced by evaluate(), and recoTrack().
|
private |
Definition at line 89 of file TrackHistory.h.
Referenced by evaluate(), and newEvent().
|
private |
Definition at line 81 of file TrackHistory.h.
Referenced by newEvent(), and TrackHistory().
|
private |
Definition at line 85 of file TrackHistory.h.
Referenced by evaluate(), and getMatchedTrackingParticle().
|
private |
Definition at line 79 of file TrackHistory.h.
Referenced by newEvent(), and TrackHistory().
|
private |
Definition at line 77 of file TrackHistory.h.
Referenced by newEvent(), and TrackHistory().