Base class to all the history types. More...
#include <HistoryBase.h>
Public Types | |
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... | |
Public Member Functions | |
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... | |
Protected Member Functions | |
bool | evaluate (TrackingParticleRef tpr) |
Evaluate track history using a TrackingParticleRef. More... | |
bool | evaluate (TrackingVertexRef tvr) |
Evaluate track history using a TrackingParticleRef. More... | |
Protected Attributes | |
GenParticleTrail | genParticleTrail_ |
GenVertexTrail | genVertexTrail_ |
GenVertexTrailHelper | genVertexTrailHelper_ |
SimParticleTrail | simParticleTrail_ |
SimVertexTrail | simVertexTrail_ |
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 GenParticle. More... | |
void | traceGenHistory (HepMC::GenVertex const *) |
Trace all the simulated information for a given pointer to a GenVertex. 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 |
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 21 of file HistoryBase.h.
typedef std::set<const HepMC::GenVertex *> HistoryBase::GenVertexTrailHelper |
GenVertex trail helper type.
Definition at line 24 of file HistoryBase.h.
typedef std::vector<TrackingParticleRef> HistoryBase::SimParticleTrail |
SimParticle trail type.
Definition at line 27 of file HistoryBase.h.
typedef std::vector<TrackingVertexRef> HistoryBase::SimVertexTrail |
SimVertex trail type.
Definition at line 30 of file HistoryBase.h.
|
inline |
|
inline |
Set the depth of the history.
Definition at line 47 of file HistoryBase.h.
References depth_.
Referenced by traceSimHistory(), TrackClassifier::TrackClassifier(), and VertexClassifier::VertexClassifier().
|
inlineprotected |
Evaluate track history using a TrackingParticleRef.
Definition at line 114 of file HistoryBase.h.
References depth_, resetTrails(), and traceSimHistory().
Referenced by TrackHistory::evaluate(), and VertexHistory::evaluate().
|
inlineprotected |
Evaluate track history using a TrackingParticleRef.
Definition at line 128 of file HistoryBase.h.
References depth_, resetTrails(), and traceSimHistory().
|
inline |
Returns a pointer to most primitive status 1 or 2 particle.
Definition at line 89 of file HistoryBase.h.
References genParticleTrail_.
Referenced by TrackClassifier::hadronFlavor(), and GenTrackMatcher::produce().
|
inline |
Return all generated particle in the history.
Definition at line 71 of file HistoryBase.h.
References genParticleTrail_.
Referenced by VertexHistoryAnalyzer::analyze(), TrackHistoryAnalyzer::analyze(), TrackClassifier::processesAtGenerator(), and TrackClassifier::vertexInformation().
|
inline |
Return all generated vertex in the history.
Definition at line 65 of file HistoryBase.h.
References genVertexTrail_.
Referenced by VertexHistoryAnalyzer::analyze(), TrackHistoryAnalyzer::analyze(), VertexClassifier::processesAtGenerator(), and VertexClassifier::vertexInformation().
|
inlineprivate |
Reset trail functions.
Definition at line 151 of file HistoryBase.h.
References genParticleTrail_, genVertexTrail_, genVertexTrailHelper_, simParticleTrail_, and simVertexTrail_.
Referenced by evaluate(), and resetTrails().
|
inlineprivate |
|
inline |
Return the initial tracking particle from the history.
Definition at line 77 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 59 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 83 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 53 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 GenParticle.
Definition at line 8 of file HistoryBase.cc.
References 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 21 of file HistoryBase.cc.
References genVertexTrail_, genVertexTrailHelper_, and traceGenHistory().
|
private |
Trace all the simulated information for a given reference to a TrackingParticle.
Definition at line 39 of file HistoryBase.cc.
References depth(), depth_, LogDebug, and traceGenHistory().
Referenced by evaluate(), and traceSimHistory().
|
private |
Trace all the simulated information for a given reference to a TrackingVertex.
Definition at line 59 of file HistoryBase.cc.
References spr::find(), edm::Ref< C, T, F >::isNonnull(), LogDebug, simParticleTrail_, simVertexTrail_, traceGenHistory(), and traceSimHistory().
|
private |
Definition at line 136 of file HistoryBase.h.
Referenced by depth(), evaluate(), HistoryBase(), traceGenHistory(), and traceSimHistory().
|
protected |
Definition at line 99 of file HistoryBase.h.
Referenced by genParticle(), genParticleTrail(), resetTrails(), and traceGenHistory().
|
protected |
Definition at line 98 of file HistoryBase.h.
Referenced by genVertexTrail(), resetTrails(), and traceGenHistory().
|
protected |
Definition at line 104 of file HistoryBase.h.
Referenced by resetTrails(), and traceGenHistory().
|
protected |
Definition at line 101 of file HistoryBase.h.
Referenced by resetTrails(), simParticle(), simParticleTrail(), and traceSimHistory().
|
protected |
Definition at line 100 of file HistoryBase.h.
Referenced by resetTrails(), simVertex(), simVertexTrail(), and traceSimHistory().