Message: Re: Can I get kinetic energy by using scorer? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Can I get kinetic energy by using scorer? 

Forum: Biasing and Scoring
Re: None Can I get kinetic energy by using scorer?
Date: 25 Sep, 2012
From: Jeyasingam Jeyasugiththan <Jeyasingam Jeyasugiththan>

Hi, Yes you can, use following code

G4StepPoint* apreStep = step->GetPreStepPoint(); If (volume== "detPhy" && apreStep ->GetStepStatus()==fGeomBoundary) {

G4cout<<........

}

to check that the particle has just entered in the current volume (detector), you can use the above code.

It should work

Best regard Sugi

 Add Message Add Message
to: "Re: Can I get kinetic energy by using scorer?"

 Subscribe Subscribe

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