Skip to content
Snippets Groups Projects
Commit 532f5e10 authored by Andre Sailer's avatar Andre Sailer Committed by Marko Petric
Browse files

Geant4InputHandling: add debug printout for particle selection/rejection

parent 557f30bd
No related branches found
No related tags found
No related merge requests found
......@@ -391,6 +391,13 @@ getRelevant(set<int>& visited,
or (primaryConfig.m_rejectPDGs.count(abs(p->pdgID)) != 0) // quarks, gluon, "strings", W, Z etc.
or (isProperTimeZero and p.definition()->GetPDGStable() ) // initial state electrons, etc.
or (isProperTimeZero and primaryConfig.m_zeroTimePDGs.count(abs(p->pdgID)) != 0 ) ; // charged 'documentation' leptons, e.g. in lepton pairs w/ FSR
printout(dd4hep::DEBUG, "Input",
"Checking rejection: PDG(%-*d), Definition(%s), isProperTimeZero(%s), stable(%s), reject(%s)",
8, p->pdgID,
p.definition() ? "true" : "false",
isProperTimeZero ? "true" : "false",
(bool(p.definition()) ? p.definition()->GetPDGStable() : false) ? "true" : "false",
rejectParticle ? "true" : "false");
if (not rejectParticle) {
map<int,G4PrimaryParticle*>::iterator ip4 = prim.find(p->id);
G4PrimaryParticle* p4 = (ip4 == prim.end()) ? 0 : (*ip4).second;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment