Message: Re: How to see if a track will intersect a volume before throwing it? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to see if a track will intersect a volume before throwing it? 

Keywords: track project hit volume
Forum: Event and Track Management
Re: Question How to see if a track will intersect a volume before throwing it? (Andrew)
Date: 14 Jul, 2003
From: Makoto Asai <Makoto Asai>

You can invoke G4VSolid::DistanceToIn(p,v) for the solid object of your
interested physical volume, where "p" is the offset, i.e. position of 
a particle w.r.t. the center of the solid, and "v" is the normalized
vector of the particle momentum (again w.r.t. the solid). Transformation
matrices from world coordinate system to the solid's coordinate system
can be obtained by G4VPhysicalVolume::GetTranslation() and
G4VPhysicalVolume::GetRotaion(). Obviously, this extraporation does not
take into account the effect of multiple scattering, bending power of
magnetic field, etc.

Alternatively, I would suggest you to shoot your primary anyway. And
check if it goes through your interested area before proceeding to the
massive calculation of secondaries. ExampleN04 gives you how you can
examine the status of your primary at the earliest stage. In this
example, four primary muons are examined to go through the muon counters
before secondary particles from these muons or other primary particles
are processes. If primary muons do not go through the muon counters,
the event is aborted and next event starts.

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

 Add Message Add Message
to: "Re: How to see if a track will intersect a volume before throwing it?"

 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 ]