GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Monte Carlo Engines » Group velocity for Cherenkov photon propagation in G3/G4
Re: Group velocity for Cherenkov photon propagation in G3/G4 [message #11464 is a reply to message #11457] Wed, 26 January 2011 21:23 Go to previous messageGo to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *dip.t-dialin.net
Hi Jochen,

Quote:

Would you have a suggestion how I can access in PndDrc.cxx
the TOF of the particle and subtract it?


if what you need is to the velocity inside the bar, then the easiest way is to register both track length and time when entering the bar. i.e:


if ( gMC->IsTrackEntering() ) {

fTime_in = gMC->TrackTime() * 1.0e09;
fLength_in = gMC->TrackLength();

}

and when exiting (or at certain position or time)

if ( gMC->IsTrackExiting() ) {

fTime_out = gMC->TrackTime() * 1.0e09;
fLength_out = gMC->TrackLength();

}

then you can subtract the time and length, would this solve the problem?


Quote:

And is TrackLength() a "clean" quantity, which contains only
the path inside the bar? Or do I need to make a correction to
get the path that corresponds to the corrected TrackTime()
value I need to use?



The track length is always from the vertex.

Hope this will help.

best regards

Mohammad
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: future of GEANT
Next Topic: [Solved]Problem with PndEvtGenDirect
Goto Forum:
  


Current Time: Thu Apr 25 09:39:41 CEST 2024

Total time taken to generate the page: 0.01075 seconds