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

Feedback Re: unknown particle in particle table 

Forum: Particles
Re: Question unknown particle in particle table (C Mos)
Date: 31 Oct, 2012
From: Gumplinger Peter <Gumplinger Peter>

Don't make your life so difficult. How about you do this in your SD::ProcessHits

G4Track* aTrack = aStep->GetTrack();

G4ParticleDefinition* particleDefinition = aTrack->GetDefinition();

G4String particleName = particleDefinition->GetParticleName();

G4int PDGEncoding = particleDefinition->GetPDGEncoding();

G4cout << PDGEncoding << " is " << particleName << G4endl;

 Add Message Add Message
to: "Re: unknown particle in particle table"

 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 ]