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 |
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... | |
Private Member Functions | |
void | resetTrails () |
Reset trail functions. More... | |
void | resetTrails (TrackingParticleRef tpr) |
void | traceGenHistory (HepMC::GenParticle const *) |
void | traceGenHistory (HepMC::GenVertex const *) |
Trace all the simulated information for a given pointer to a GenVertex. More... | |
void | traceRecoGenHistory (reco::GenParticle const *) |
bool | traceSimHistory (TrackingParticleRef const &, int) |
bool | traceSimHistory (TrackingVertexRef const &, int) |
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 15 of file HistoryBase.h.
typedef std::vector<const HepMC::GenVertex *> HistoryBase::GenVertexTrail |
GenVertex trail type.
Definition at line 24 of file HistoryBase.h.
typedef std::set<const HepMC::GenVertex *> HistoryBase::GenVertexTrailHelper |
GenVertex trail helper type.
Definition at line 27 of file HistoryBase.h.
typedef std::vector<const reco::GenParticle *> HistoryBase::RecoGenParticleTrail |
reco::GenParticle trail type.
Definition at line 18 of file HistoryBase.h.
typedef std::set<const reco::GenParticle *> HistoryBase::RecoGenParticleTrailHelper |
reco::GenParticle trail helper type.
Definition at line 21 of file HistoryBase.h.
typedef std::vector<TrackingParticleRef> HistoryBase::SimParticleTrail |
SimParticle trail type.
Definition at line 30 of file HistoryBase.h.
typedef std::vector<TrackingVertexRef> HistoryBase::SimVertexTrail |
SimVertex trail type.
Definition at line 33 of file HistoryBase.h.
|
inline |
|
inline |
Set the depth of the history.
Definition at line 49 of file HistoryBase.h.
References edmIntegrityCheck::d, and depth_.
Referenced by traceSimHistory(), TrackClassifier::TrackClassifier(), TrackingNtuple::TrackingNtuple(), TrackingParticleBHadronRefSelector::TrackingParticleBHadronRefSelector(), and VertexClassifier::VertexClassifier().
|
inline |
Evaluate track history using a TrackingParticleRef.
Definition at line 96 of file HistoryBase.h.
References depth_, resetTrails(), and traceSimHistory().
Referenced by TrackHistory::evaluate(), VertexHistory::evaluate(), TrackingNtuple::fillTrackingParticles(), and TrackingParticleBHadronRefSelector::produce().
|
inline |
Evaluate track history using a TrackingParticleRef.
Definition at line 109 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 74 of file HistoryBase.h.
References genParticleTrail_.
Referenced by GenTrackMatcher::produce().
|
inline |
Return all generated particle (HepMC::GenParticle) in the history.
Definition at line 61 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 58 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 82 of file HistoryBase.h.
References recoGenParticleTrail_.
Referenced by TrackClassifier::hadronFlavor().
|
inline |
Return all reco::GenParticle in the history.
Definition at line 64 of file HistoryBase.h.
References recoGenParticleTrail_.
Referenced by TrackingNtuple::fillTrackingParticles(), TrackClassifier::processesAtGenerator(), and TrackingParticleBHadronRefSelector::produce().
|
inlineprivate |
Reset trail functions.
Definition at line 149 of file HistoryBase.h.
Referenced by evaluate(), and resetTrails().
|
inlineprivate |
|
inline |
Return the initial tracking particle from the history.
Definition at line 67 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 55 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 70 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 52 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 42 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 7 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 57 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 76 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 127 of file HistoryBase.h.
Referenced by depth(), evaluate(), HistoryBase(), traceGenHistory(), traceRecoGenHistory(), and traceSimHistory().
|
protected |
Definition at line 117 of file HistoryBase.h.
Referenced by genParticle(), genParticleTrail(), and traceGenHistory().
|
protected |
Definition at line 116 of file HistoryBase.h.
Referenced by genVertexTrail(), and traceGenHistory().
|
protected |
Definition at line 123 of file HistoryBase.h.
Referenced by traceGenHistory().
|
protected |
Definition at line 118 of file HistoryBase.h.
Referenced by recoGenParticle(), recoGenParticleTrail(), and traceRecoGenHistory().
|
protected |
Definition at line 124 of file HistoryBase.h.
Referenced by traceRecoGenHistory().
|
protected |
Definition at line 120 of file HistoryBase.h.
Referenced by simParticle(), simParticleTrail(), and traceSimHistory().
|
protected |
Definition at line 119 of file HistoryBase.h.
Referenced by simVertex(), simVertexTrail(), and traceSimHistory().