12 if ( genParticle->status() <=
abs(
depth_) && (genParticle->pdg_id() < 88 || genParticle->pdg_id() > 99) )
33 if ( genVertex->particles_in_size() )
45 if ( !trackingParticle->genParticles().empty() )
47 LogDebug(
"TrackHistory") <<
"Particle " << trackingParticle->pdgId() <<
" has a GenParicle image."
51 #ifdef REMOVED_JUST_TO_GET_IT_TO_COMPILE__THIS_CODE_NEEDS_TO_BE_CHECKED
57 LogDebug(
"TrackHistory") <<
"No GenParticle image for " << trackingParticle->pdgId() << std::endl;
72 if ( !trackingVertex->sourceTracks().empty() )
74 LogDebug(
"TrackHistory") <<
"Moving on to the parent particle." << std::endl;
80 for (its = trackingVertex->sourceTracks_begin(); its != trackingVertex->sourceTracks_end(); its++)
82 for (itd = trackingVertex->daughterTracks_begin(); itd != trackingVertex->daughterTracks_end(); itd++)
104 LogDebug(
"TrackHistory") <<
"WARNING: Looping track found." << std::endl;
112 else if ( !trackingVertex->genVertices().empty() )
115 LogDebug(
"TrackHistory") <<
"Vertex has " << trackingVertex->genVertices().size() <<
"GenVertex image." << std::endl;
118 ivertex != trackingVertex->genVertices_end();
126 LogDebug(
"TrackHistory") <<
"WARNING: Source track for tracking vertex cannot be found." << std::endl;
131 LogDebug(
"TrackHistory") <<
" WARNING: Vertex cannot be found.";
bool isNonnull() const
Checks for non-null.
SimVertexTrail simVertexTrail_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
GenVertexTrail genVertexTrail_
void traceGenHistory(HepMC::GenParticle const *)
Trace all the simulated information for a given pointer to a GenParticle.
GenVertexTrailHelper genVertexTrailHelper_
Abs< T >::type abs(const T &t)
SimParticleTrail simParticleTrail_
void depth(int d)
Set the depth of the history.
bool traceSimHistory(TrackingParticleRef const &, int)
Trace all the simulated information for a given reference to a TrackingParticle.
GenParticleTrail genParticleTrail_