Message: Re: Energy of the backscattered electrons Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Energy of the backscattered electrons 

Forum: Event and Track Management
Re: Question Energy of the backscattered electrons (A. Hod)
Re: Feedback Re: Energy of the backscattered electrons (Gumplinger Peter)
Date: 27 Oct, 2014
From: A. Hod <A. Hod>

Dear Peter,

I fellowed your hints and I did the following in my and it seems to be working.


G4double Tback;

G4StepPoint* prePoint  = aStep->GetPreStepPoint();
G4StepPoint* postPoint = aStep->GetPostStepPoint();

if((aStep->GetTrack()->GetDynamicParticle()->GetDefinition()->GetParticleName()) == "e-") 
 if((aStep->GetPreStepPoint()->GetPhysicalVolume()->GetName()=="Phylayer2") && (aStep->GetPostStepPoint()->GetPhysicalVolume()->GetName()=="PhyGap"));
Tback= aStep->GetTrack()->GetKineticEnergy(); 

G4cout << "These are the Kintetic Energies of the Backscattered electrons: " 
	   << Tback << G4endl;

Is it correct?



 Add Message Add Message
to: "Re: Energy of the backscattered electrons"

 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 ]