Message: RE: Storing Path Lengths Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None RE: Storing Path Lengths 

Forum: Event and Track Management
Re: None Storing Path Lengths
Date: 24 Aug, 2009
From: Makoto Asai <Makoto Asai>

If number of photons is not too big, you may keep
all the trajectories of such photons for an event.
Then, at the end of event, you may access to all
the trajectories one by one and see the number of
steps as well as the length of each step.

Hope this helps.

> -----Original Message-----
> From: []
> Sent: Monday, August 24, 2009 5:41 AM
> To: eventtrackmanage-g4hn
> Subject: Storing Path Lengths
> *** Discussion title: Event and Track Management
> Hi all,
> I've got a scintillation detector model and I'm interested in seeing
> how
> many times the optical photons bounce around inside of the detector
> before escaping or being absorbed. Therefore I'd like to do something
> like GetStepLength() for each step of an optical photon, add them up,
> and store that value in an array of many similar values for other
> optical photons.
> My problem is trying to tell Geant when to start counting the
> pathlength
> anew for a new optical photon. In other words, after one photon has
> "died" how can I say: add all the step lengths you have up and store
> that value, reset to zero and start counting again for a new optical
> photon? Currently I'm just counting all the step lengths from many
> photons because I don't know how to make Geant distinguish between or
> "name" seperate photons and store their calculations seperately.
> Ideas?
> Thanks!
> -------------------------------------------------------------
> Visit this GEANT4 at message (to reply or
> unsubscribe) at:
> =
> e/886.html

 Add Message Add Message
to: "RE: Storing Path Lengths"

 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 ]