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

More Re:  

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

Hi Michael,

Thanks for the speedy response. I instantiated the Gamma(), Electron(), and Positron() with the code you suggested, but the error message didn't change. I then tested the process manager by amending ConstructProcess() as so:

void G4NRFPhysics::ConstructProcess()
{
  G4cout << "In G4NRFPhysics::ConstructProcess()" << G4endl;

  ConstructParticle();

  G4NRF *nrf = new G4NRF("NRF");

  aParticleIterator->reset();
  while( (*aParticleIterator)() ) {
    G4ParticleDefinition       *particle = aParticleIterator->value();
    G4ProcessManager *particleProcessMgr = particle->GetProcessManager();
    G4String                particleName = particle->GetParticleName();

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

  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
  ph->RegisterProcess(nrf, G4Gamma::Gamma());
}

Interestingly, I found the same error message, preceded by the following from cout:

particle = 0x7fc77b5d74b0 particleProcessMgr = 0x0 particleName = e+

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

particle = 0x7fc77b5d7340 particleProcessMgr = 0x0 particleName = gamma

So while the particles are being instantiated, their process managers are not. Do you know what could be causing this? Maybe a few lines of code out of order?

Thanks, Jayson V.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Note: Re:   (Jayson Vavrek - 21 Jul, 2015)
 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 ]