Message: Re: Energy deposited by secondary particles Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Energy deposited by secondary particles 

Forum: Hadronic Processes
Re: None Energy deposited by secondary particles
Date: 10 Apr, 2014
From: Ivan Brilkov <Ivan Brilkov>

I'm currently working on similar problem. May be you should see example named "radioprotection": there are code that collects energies of secondary particles in root histograms. Look at RemSimSteppingAction.cc.

       // Retrieve the secondary particles
       G4TrackVector* fSecondary = steppingManager -> GetfSecondary();    
       // Retrieve the info about the generation of secondary particles in the phantom and
       // in the vehicle
       G4String volumeName = (*fSecondary)[lp1] -> GetVolume() -> GetName(); 
       G4String secondaryParticleName =  (*fSecondary)[lp1]->GetDefinition() -> GetParticleName();  
       G4double secondaryParticleKineticEnergy =  (*fSecondary)[lp1] -> GetKineticEnergy(); 
       G4String process = (*fSecondary)[lp1]-> GetCreatorProcess()-> GetProcessName();   

In another example this code is used for getting Energy deposit, but it's applicable only for primary particles:

  // collect energy and track length step by step
    G4double edep = aStep->GetTotalEnergyDeposit();

If you find a solution of this problem, please post here. Ivan

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

1 None: Re: Energy deposited by secondary particles   (Sarah - 10 Apr, 2014)
 Add Message Add Message
to: "Re: Energy deposited by secondary particles"

 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 ]