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

None Re: Energy 

Forum: Biasing and Scoring
Re: None Energy (smith)
Date: 27 Sep, 2012
From: Tsukasa Aso <Tsukasa Aso>


  There are several ways to pick up particle information.
I am not sure what you are using, anyway,

   1) Use UserSteppingAction 
         e.g.  novice/N03/src/
   2) Use Sensitive Detector
         e.g.  novice/N04/,

 First one may be simpler.

 Also, I am not sure the energy you mean is energy deposit or kinetic energy of neutron.
The particle information of the track can be accessed via a object of "Step".

  e.g. In novice/N03/src/
     G4VPhysicalVolume* volume 
          = aStep->GetPreStepPoint()->GetTouchableHandle()->GetVolume();
         returns current physical volume where the particle is.

     G4double edep = aStep->GetTotalEnergyDeposit()/keV;  gives deposited energy in keV

  and more about the particle information from Step.

    G4double kinetic = aStep->GetPreStepPoint()->GetKineticEnergy()/keV;
          returns the kinetic energy of the particle.

    G4ParticleDefinition* pdef =  aStep->GetTrack()->GetDefinition()
   const G4String& particleName = pdef->GetParticleName();



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

1 Question: Re: Energy   (smith - 30 Sep, 2012)
1 None: Re: Energy   (Tsukasa Aso - 30 Sep, 2012)
1 None: Re: Energy   (smith - 01 Oct, 2012)
... 3 Message(s)
2 None: Re: Energy   (michel maire - 01 Oct, 2012)
1 None: Re: Energy   (smith - 07 Oct, 2012)
... 1 Message(s)
 Add Message Add Message
to: "Re: Energy"

 Subscribe Subscribe

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