@@ -164,7 +164,7 @@ void CaloParticleDebugger::analyze(const edm::Event& iEvent, const edm::EventSet
164164 LogVerbatim (" CaloParticleDebuggerSimTracks" )
165165 << i << " \t " << t.trackId () << " \t " << t << " Crossed Boundary: " << t.crossedBoundary ()
166166 << " Vtx: " << t.vertIndex () << " isFromBackScattering: " << t.isFromBackScattering ()
167- << " isPrimary: " << t.isPrimary () << " ParentID: " << t.getPrimaryID ()
167+ << " isPrimary: " << t.isPrimary () << " ParentID: " << t.getPrimaryOrLastStoredID ()
168168 << " Position Boundary: " << t.getPositionAtBoundary () << " Momentum Boundary: " << t.getMomentumAtBoundary ()
169169 << " Momemtum Origin: " << t.momentum ();
170170 trackid_to_track_index[t.trackId ()] = i;
@@ -232,10 +232,11 @@ void CaloParticleDebugger::analyze(const edm::Event& iEvent, const edm::EventSet
232232 << " \n\n "
233233 << i << " \t Type: " << simcl.pdgId () << " \t Energy: " << simcl.energy () << " \t Key: " << i; // << simcl ;
234234 auto const & simtrack = simcl.g4Tracks ()[0 ];
235- LogVerbatim (" CaloParticleDebuggerSimClusters" ) << " \n Primary GenParticleID: " << simtrack.getPrimaryID ()
236- << " \n Crossed Boundary: " << simtrack.crossedBoundary ()
237- << " \n Position Boundary: " << simtrack.getPositionAtBoundary ()
238- << " \n Momentum Boundary: " << simtrack.getMomentumAtBoundary ();
235+ LogVerbatim (" CaloParticleDebuggerSimClusters" )
236+ << " \n GenParticleID/ancestor: " << simtrack.getPrimaryOrLastStoredID ()
237+ << " \n Crossed Boundary: " << simtrack.crossedBoundary ()
238+ << " \n Position Boundary: " << simtrack.getPositionAtBoundary ()
239+ << " \n Momentum Boundary: " << simtrack.getMomentumAtBoundary ();
239240 if (simClusters_in_CaloParticles.find (simcl.g4Tracks ()[0 ].trackId ()) == simClusters_in_CaloParticles.end ()) {
240241 LogVerbatim (" CaloParticleDebuggerSimClusters" ) << " Orphan SimCluster: " << simtrack.trackId ();
241242 }
0 commit comments