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... | |
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... | |
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... | |
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 |
Definition at line 39 of file HistoryBase.h.
|
inline |
Set the depth of the history.
Definition at line 53 of file HistoryBase.h.
Referenced by traceSimHistory().
|
inlineprotected |
Evaluate track history using a TrackingParticleRef.
Definition at line 135 of file HistoryBase.h.
Referenced by TrackHistory::evaluate(), and VertexHistory::evaluate().
|
inlineprotected |
Evaluate track history using a TrackingParticleRef.
Definition at line 149 of file HistoryBase.h.
|
inline |
Returns a pointer to most primitive status 1 or 2 particle in the genParticleTrail_.
Definition at line 101 of file HistoryBase.h.
Referenced by GenTrackMatcher::produce().
|
inline |
Return all generated particle (HepMC::GenParticle) in the history.
Definition at line 77 of file HistoryBase.h.
|
inline |
Return all generated vertex in the history.
Definition at line 71 of file HistoryBase.h.
|
inline |
Returns a pointer to most primitive status 1 or 2 particle in the recoGenParticleTrail_.
Definition at line 108 of file HistoryBase.h.
|
inline |
Return all reco::GenParticle in the history.
Definition at line 83 of file HistoryBase.h.
|
inlineprivate |
Reset trail functions.
Definition at line 176 of file HistoryBase.h.
|
inlineprivate |
Definition at line 187 of file HistoryBase.h.
|
inline |
Return the initial tracking particle from the history.
Definition at line 89 of file HistoryBase.h.
|
inline |
Return all the simulated particle in the history.
Definition at line 65 of file HistoryBase.h.
|
inline |
Return the initial tracking vertex from the history.
Definition at line 95 of file HistoryBase.h.
|
inline |
Return all the simulated vertices in the history.
Definition at line 59 of file HistoryBase.h.
|
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 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(), edm::Ref< C, T, F >::isNonnull(), LogDebug, simParticleTrail_, simVertexTrail_, traceGenHistory(), and traceSimHistory().
|
private |
Definition at line 157 of file HistoryBase.h.
Referenced by traceGenHistory(), traceRecoGenHistory(), and traceSimHistory().
|
protected |
Definition at line 118 of file HistoryBase.h.
Referenced by traceGenHistory().
|
protected |
Definition at line 117 of file HistoryBase.h.
Referenced by traceGenHistory().
|
protected |
Definition at line 124 of file HistoryBase.h.
Referenced by traceGenHistory().
|
protected |
Definition at line 119 of file HistoryBase.h.
Referenced by traceRecoGenHistory().
|
protected |
Definition at line 125 of file HistoryBase.h.
Referenced by traceRecoGenHistory().
|
protected |
Definition at line 121 of file HistoryBase.h.
Referenced by traceSimHistory().
|
protected |
Definition at line 120 of file HistoryBase.h.
Referenced by traceSimHistory().