Base class to all the history types. More...
#include <HistoryBase.h>
Public Types | |
typedef std::vector< const HepMC::GenParticle * > | GenParticleTrail |
HepMC::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< const reco::GenParticle * > | RecoGenParticleTrail |
reco::GenParticle trail type. More... | |
typedef std::set< const reco::GenParticle * > | RecoGenParticleTrailHelper |
reco::GenParticle trail helper type. More... | |
typedef std::vector< TrackingParticleRef > | SimParticleTrail |
SimParticle trail type. More... | |
typedef std::vector< TrackingVertexRef > | SimVertexTrail |
SimVertex trail type. More... | |
Public Member Functions | |
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 |
Returns a pointer to most primitive status 1 or 2 particle in the genParticleTrail_. More... | |
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 |
Returns a pointer to most primitive status 1 or 2 particle in the recoGenParticleTrail_. More... | |
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... | |
Private Member Functions | |
void | resetTrails () |
Reset trail functions. More... | |
void | resetTrails (TrackingParticleRef tpr) |
void | traceGenHistory (HepMC::GenParticle const *) |
Trace all the simulated information for a given pointer to a HepMC::GenParticle. More... | |
void | traceGenHistory (HepMC::GenVertex const *) |
Trace all the simulated information for a given pointer to a GenVertex. More... | |
void | traceRecoGenHistory (reco::GenParticle const *) |
Trace all the simulated information for a given pointer to a reco::GenParticle. More... | |
bool | traceSimHistory (TrackingParticleRef const &, int) |
Trace all the simulated information for a given reference to a TrackingParticle. More... | |
bool | traceSimHistory (TrackingVertexRef const &, int) |
Trace all the simulated information for a given reference to a TrackingVertex. More... | |
Private Attributes | |
int | depth_ |
Base class to all the history types.
Definition at line 12 of file HistoryBase.h.
typedef std::vector<const HepMC::GenParticle *> HistoryBase::GenParticleTrail |
HepMC::GenParticle trail type.
Definition at line 18 of file HistoryBase.h.
typedef std::vector<const HepMC::GenVertex *> HistoryBase::GenVertexTrail |
GenVertex trail type.
Definition at line 27 of file HistoryBase.h.
typedef std::set<const HepMC::GenVertex *> HistoryBase::GenVertexTrailHelper |
GenVertex trail helper type.
Definition at line 30 of file HistoryBase.h.
typedef std::vector<const reco::GenParticle *> HistoryBase::RecoGenParticleTrail |
reco::GenParticle trail type.
Definition at line 21 of file HistoryBase.h.
typedef std::set<const reco::GenParticle *> HistoryBase::RecoGenParticleTrailHelper |
reco::GenParticle trail helper type.
Definition at line 24 of file HistoryBase.h.
typedef std::vector<TrackingParticleRef> HistoryBase::SimParticleTrail |
SimParticle trail type.
Definition at line 33 of file HistoryBase.h.
typedef std::vector<TrackingVertexRef> HistoryBase::SimVertexTrail |
SimVertex trail type.
Definition at line 36 of file HistoryBase.h.
|
inline |
|
inline |
Set the depth of the history.
Definition at line 53 of file HistoryBase.h.
References edmIntegrityCheck::d, and depth_.
Referenced by traceSimHistory(), TrackClassifier::TrackClassifier(), TrackingParticleBHadronRefSelector::TrackingParticleBHadronRefSelector(), and VertexClassifier::VertexClassifier().
|
inline |
Evaluate track history using a TrackingParticleRef.
Definition at line 122 of file HistoryBase.h.
References depth_, resetTrails(), and traceSimHistory().
Referenced by TrackHistory::evaluate(), VertexHistory::evaluate(), and TrackingParticleBHadronRefSelector::produce().
|
inline |
Evaluate track history using a TrackingParticleRef.
Definition at line 136 of file HistoryBase.h.
References depth_, resetTrails(), and traceSimHistory().
|
inline |
Returns a pointer to most primitive status 1 or 2 particle in the genParticleTrail_.
Definition at line 101 of file HistoryBase.h.
References genParticleTrail_.
Referenced by GenTrackMatcher::produce().
|
inline |
Return all generated particle (HepMC::GenParticle) in the history.
Definition at line 77 of file HistoryBase.h.
References genParticleTrail_.
Referenced by VertexHistoryAnalyzer::analyze(), TrackHistoryAnalyzer::analyze(), and TrackClassifier::vertexInformation().
|
inline |
Return all generated vertex in the history.
Definition at line 71 of file HistoryBase.h.
References genVertexTrail_.
Referenced by VertexHistoryAnalyzer::analyze(), TrackHistoryAnalyzer::analyze(), VertexClassifier::processesAtGenerator(), and VertexClassifier::vertexInformation().
|
inline |
Returns a pointer to most primitive status 1 or 2 particle in the recoGenParticleTrail_.
Definition at line 108 of file HistoryBase.h.
References recoGenParticleTrail_.
Referenced by TrackClassifier::hadronFlavor().
|
inline |
Return all reco::GenParticle in the history.
Definition at line 83 of file HistoryBase.h.
References recoGenParticleTrail_.
Referenced by TrackClassifier::processesAtGenerator(), and TrackingParticleBHadronRefSelector::produce().
|
inlineprivate |
Reset trail functions.
Definition at line 176 of file HistoryBase.h.
Referenced by evaluate(), and resetTrails().
|
inlineprivate |
|
inline |
Return the initial tracking particle from the history.
Definition at line 89 of file HistoryBase.h.
References simParticleTrail_.
Referenced by TrackClassifier::reconstructionInformation(), and TrackClassifier::simulationInformation().
|
inline |
Return all the simulated particle in the history.
Definition at line 65 of file HistoryBase.h.
References simParticleTrail_.
Referenced by VertexHistoryAnalyzer::analyze(), TrackHistoryAnalyzer::analyze(), TrackClassifier::processesAtSimulation(), TrackClassifier::qualityInformation(), and TrackClassifier::vertexInformation().
|
inline |
Return the initial tracking vertex from the history.
Definition at line 95 of file HistoryBase.h.
References simVertexTrail_.
Referenced by SVTagInfoValidationAnalyzer::analyze(), recoBSVTagInfoValidationAnalyzer::analyze(), and VertexClassifier::simulationInformation().
|
inline |
Return all the simulated vertices in the history.
Definition at line 59 of file HistoryBase.h.
References simVertexTrail_.
Referenced by VertexHistoryAnalyzer::analyze(), TrackHistoryAnalyzer::analyze(), VertexClassifier::processesAtSimulation(), and VertexClassifier::vertexInformation().
|
private |
Trace all the simulated information for a given pointer to a HepMC::GenParticle.
Definition at line 31 of file HistoryBase.cc.
References funct::abs(), depth_, and genParticleTrail_.
Referenced by traceGenHistory(), and traceSimHistory().
|
private |
Trace all the simulated information for a given pointer to a GenVertex.
Definition at line 44 of file HistoryBase.cc.
References genVertexTrail_, genVertexTrailHelper_, and traceGenHistory().
|
private |
Trace all the simulated information for a given pointer to a reco::GenParticle.
Definition at line 8 of file HistoryBase.cc.
References funct::abs(), depth_, reco::CompositeRefCandidateT< D >::mother(), reco::LeafCandidate::pdgId(), recoGenParticleTrail_, recoGenParticleTrailHelper_, and reco::LeafCandidate::status().
Referenced by traceSimHistory().
|
private |
Trace all the simulated information for a given reference to a TrackingParticle.
Definition at line 62 of file HistoryBase.cc.
References depth(), depth_, LogDebug, and traceRecoGenHistory().
Referenced by evaluate(), and traceSimHistory().
|
private |
Trace all the simulated information for a given reference to a TrackingVertex.
Definition at line 85 of file HistoryBase.cc.
References spr::find(), RemoveAddSevLevel::flag, edm::Ref< C, T, F >::isNonnull(), LogDebug, simParticleTrail_, simVertexTrail_, traceGenHistory(), and traceSimHistory().
|
private |
Definition at line 157 of file HistoryBase.h.
Referenced by depth(), evaluate(), HistoryBase(), traceGenHistory(), traceRecoGenHistory(), and traceSimHistory().
|
protected |
Definition at line 146 of file HistoryBase.h.
Referenced by genParticle(), genParticleTrail(), and traceGenHistory().
|
protected |
Definition at line 145 of file HistoryBase.h.
Referenced by genVertexTrail(), and traceGenHistory().
|
protected |
Definition at line 152 of file HistoryBase.h.
Referenced by traceGenHistory().
|
protected |
Definition at line 147 of file HistoryBase.h.
Referenced by recoGenParticle(), recoGenParticleTrail(), and traceRecoGenHistory().
|
protected |
Definition at line 153 of file HistoryBase.h.
Referenced by traceRecoGenHistory().
|
protected |
Definition at line 149 of file HistoryBase.h.
Referenced by simParticle(), simParticleTrail(), and traceSimHistory().
|
protected |
Definition at line 148 of file HistoryBase.h.
Referenced by simVertex(), simVertexTrail(), and traceSimHistory().