Problem 1598 - e+e- annihilation processes can't be registered with Physics List Helper
Summary: e+e- annihilation processes can't be registered with Physics List Helper
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic (show other problems)
Version: 10.0
Hardware: PC Linux
: P5 minor
Assignee: Vladimir.Ivantchenko
URL:
Depends on:
Blocks:
 
Reported: 2014-03-31 07:02 CEST by Bryan Kerns
Modified: 2014-05-09 19:44 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 Bryan Kerns 2014-03-31 07:02:15 CEST
Attempting to use the Physics List Helper to register e+e- annihilation processes causes a crash at run time.  They can be registered without problems if one avoids the physics list helper.  My code can be found below.

G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
theParticleIterator->reset();
while( (*theParticleIterator)() )
{
  G4ParticleDefinition* particle = theParticleIterator->value();
  G4String particleName = particle->GetParticleName();
  if (particleName == "e+")
  {
    ph->RegisterProcess(new G4eeToHadrons, particle);
    ph->RegisterProcess(new G4AnnihiToMuPair, particle);
  }
}

And here is the error report.

G4ProcessManager::CheckOrderingParameters You cannot set ordering parameter [7] for AtRest DoIt  to the process ee2hadr

-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : ProcMan013
      issued by : G4ProcessManager::CheckOrderingParameters 
Invalid ordering parameters are set for  ee2hadr
*** Fatal Exception *** core dump ***
-------- EEEE -------- G4Exception-END --------- EEEE -------
Comment 1 Vladimir.Ivantchenko 2014-05-09 19:44:18 CEST
Thank you for the report. 

The problem has been fixed and will be available with next public release in June. 

VI