Message: Making use of the G4ParticleTable in stand-alone (v9.0) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Making use of the G4ParticleTable in stand-alone (v9.0) 

Keywords: Finding PDG info without PhysicsList
Forum: Particles
Date: 20 Nov, 2007
From: Peter Niessen <niessen@ifh.de>

Hey G4,

I have a little format converter (CORSIKA->ROOT) which needs the particle masses to convert from total to kinetic energy. In GEANT4 v7.X, I could do

  static G4ParticleTable *particle_table (G4ParticleTable::GetParticleTable ());
  G4double mass = particle_table->FindParticle (11)->GetPDGMass () / MeV;

and mass would have .511... inside. Alas! not any more with v9.0!

Now I get the

  G4Exception: PartMan0000
  issued by : G4ParticleTable::CheckReadiness ()

Do I really need a run manager and a physics list to make use of the G4ParticleTable?

Cheers, Peter.

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

 Add Message Add Message
to: "Making use of the G4ParticleTable in stand-alone (v9.0)"

 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 ]