Message: Re: PrsStepPoint vs. PostStepPoint Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: PrsStepPoint vs. PostStepPoint 

Forum: Event and Track Management
Re: None PrsStepPoint vs. PostStepPoint (Andreas)
Date: 09 Dec, 2003
From: Marc Verderi <Marc Verderi>


> If I understand the Geant4 manual correctly, then tracking consists of
> steps. A step is defined by a start point (PreStepPoint) and a stop
> point (PostStepPoint). When I have a discrete processes, like Compton
> scattering, the PostStepPoint is defined by the smallest physical
> interaction length of these processes. This means if Compton scattering
> defines this smallest physical interaction length a Compton scattering
> happens at the PostStepPoint, correct?


> Now in the most examples, which are included in G4, e.g. the GammaRayTel
> example, in the class GammaRayTelCalorimeterSD, ProcessHits(...), the
> position of a hit is set via:
> l 129: CalorimeterHit->SetPos(aStep->GetPreStepPoint()->GetPosition());
> Shouldn't it be set via GetPostStepPoint?? Do I misunderstand something?

This is a different issue. Assume you have a calorimeter made of cells, if
the step is limited by the physics, using PreStepPoint or PostStepPoint to
get the geometrical information about the current cell will not make
difference. On the other hand, if the step is limited by the _geometry_
the PostStepPoint geometrical information will be updated with geometrical
information of the cell in which the track is _entering_. You must thus
always use the PreStepPoint to be garanteed that you assign the energy
deposition to the volume in which the step started and occured.


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

1 None: Re: PreStepPoint vs. PostStepPoint   (Andreas - 10 Dec, 2003)
 Add Message Add Message
to: "Re: PrsStepPoint vs. PostStepPoint"

 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 ]