Message: Score particles in acceptance angle Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Score particles in acceptance angle 

Forum: Particles
Date: 28 May, 2015
From: Summit <Summit>

Dear G4User,

I am simulating ions in polyethylene. I want to score the particles for the particular acceptance angle (7 deg). In the simulation, particles are moving in z-direction and detector geometry is cylinder made from G4Tubs.

dir = track->GetMomentumDirection();

To score the particles in acceptance angle (7 deg) which of the following should be used:

1. if(dir.theta()/deg < 7)

OR

2. if(dir.phi()/deg < 7) ???

My other question is

3. What will std::acos(dir.z()) will produce?

Thanks.

Summit

 Add Message Add Message
to: "Score particles in acceptance angle"

 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 ]