Problem 1355 - Code that is never called in G4ErrorPhysicsList.cc
Summary: Code that is never called in G4ErrorPhysicsList.cc
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: error_propagation (show other problems)
Version: other
Hardware: All All
: P5 normal
Assignee: Pedro.Arce
URL:
Depends on:
Blocks:
 
Reported: 2012-09-17 21:45 CEST by NoneOf YourBusiness
Modified: 2012-09-18 16:14 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description NoneOf YourBusiness 2012-09-17 21:45:52 CEST
Hello,

I am not sure how important the problem is but I can see that some code in G4ErrorPhysicsList.cc (around line 195) is never called, i.e. the following condition is never true in a program (since if it is true, then the previous "else if" would be called):


    } else if ((!particle->IsShortLived()) &&
               (particle->GetPDGCharge() != 0.0) &&
               (particle->GetParticleName() != "chargedgeantino")) {


Could you, please, check if the code is supposed to do something important?

Thank you!
Comment 1 Pedro.Arce 2012-09-18 16:14:49 CEST
I recognise I wrote that code more than 10 years ago and I cannnot remember what I meant there, but nobody has since needed it, so I supressed it.