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." << std::endl;
48 #warning "This file has been modified just to get it to compile without any regard as to whether it still functions as intended"
49 #ifdef REMOVED_JUST_TO_GET_IT_TO_COMPILE__THIS_CODE_NEEDS_TO_BE_CHECKED
55 LogDebug(
"TrackHistory") <<
"No GenParticle image for " << trackingParticle->pdgId() << std::endl;
70 if ( !trackingVertex->sourceTracks().empty() )
72 LogDebug(
"TrackHistory") <<
"Moving on to the parent particle." << std::endl;
78 for (its = trackingVertex->sourceTracks_begin(); its != trackingVertex->sourceTracks_end(); its++)
80 for (itd = trackingVertex->daughterTracks_begin(); itd != trackingVertex->daughterTracks_end(); itd++)
99 LogDebug(
"TrackHistory") <<
"WARNING: Looping track found." << std::endl;
107 else if ( !trackingVertex->genVertices().empty() )
110 LogDebug(
"TrackHistory") <<
"Vertex has " << trackingVertex->genVertices().size() <<
"GenVertex image." << std::endl;
113 ivertex != trackingVertex->genVertices_end();
121 LogDebug(
"TrackHistory") <<
"WARNING: Source track for tracking vertex cannot be found." << std::endl;
126 LogDebug(
"TrackHistory") <<
" WARNING: Vertex cannot be found.";
SimVertexTrail simVertexTrail_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool isNonnull() const
Checks for non-null.
GenVertexTrail genVertexTrail_
void traceGenHistory(HepMC::GenParticle const *)
Trace all the simulated information for a given pointer to a GenParticle.
GenVertexTrailHelper genVertexTrailHelper_
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_