Message: Re: Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re:  

Forum: Physics List
Re: Question "G4PhysicsListHelper::RegisterProcess : No Process Manager for gamma" when registering new process (Jayson Vavrek)
Re: More Re: (Jayson Vavrek)
Date: 21 Jul, 2015
From: Jayson Vavrek <Jayson Vavrek>

In fact, even without the NRF package, there are similar problems. If I use the usual code,

RegisterPhysics(new G4DecayPhysics);
theParticleIterator->reset();
  while( (*theParticleIterator)() ) { // this only loops over e-
    G4ParticleDefinition       *particle = theParticleIterator->value();
    G4ProcessManager *particleProcessMgr = particle->GetProcessManager();
    G4String                particleName = particle->GetParticleName();

    G4cout << "particle = " << particle << G4endl;
    G4cout << "particleProcessMgr = " << particleProcessMgr << G4endl; // this is empty
    G4cout << "particleName = " << particleName << G4endl;
  }

theParticleIterator only loops over e-, and even when it does, its particleProcessMgr is still empty:

particle = 0x7f835bcb0de0 particleProcessMgr = 0x0 particleName = e-

 Add Message Add Message
to: "Re: "

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]