Message: Re: RE: About TrackID Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: RE: About TrackID 

Forum: Event and Track Management
Re: None About TrackID (Evgenya)
Re: None RE: About TrackID (Makoto Asai)
Re: None Re: RE: About TrackID (Evgenya)
Date: 30 Jun, 2010
From: Gumplinger Peter <Gumplinger Peter>

> if ((volume=="nb") || (track->GetParentID() == 0))

A primary photon does not by itself deposit energy in your crystal. It needs to interact and produce charge particles. The secondaries, in turn, will deposit energy in your crystal at each and every simulation step inside the volume.

I don't exactly understand what you want to add up. The above adds energy for any step in volume=="nb" OR for the primary. If you changed to:

if ((volume=="nb") && (track->GetParentID() == 0))

you'll find very little and rarely energy deposited because only photo-electric effect with secondary below the production cut will deposit energy. If you have only one primary, then all the energy deposited in the crystal come from that primary. If you want the energy of the first secondary only, its TrackID should be 2, hence this code should work:

if (track->GetTrackID()==2 && track->GetParentID()==1)

but I think you get the idea...

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

1 None: Re: RE: About TrackID   (Evgenya - 01 Jul, 2010)
(_ Question: Re: RE: About TrackID   (Evgenya - 01 Jul, 2010)
 Add Message Add Message
to: "Re: RE: About TrackID"

 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 ]