GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » Radiation length units
Re: Radiation length units [message #13533 is a reply to message #13440] Sun, 27 May 2012 10:22 Go to previous messageGo to previous message
Artem Basalaev is currently offline  Artem Basalaev
Messages: 3
Registered: May 2012
Location: St. Petersburg, Russia
occasional visitor
From: 188.134.84*
Hello! So much time passed and nobody answered here, I already found a solution myself.

In case somebody else has such a problem:
Values of radiation length are in cm and they may be very high, because length of step is variable, that is, distance between ponts where radiation length is calculated is also variable. This distance is a length of homogeneous volume which particle passes along its track.

One may need not the radiation length itself, but the effective radiation length which is defined as length divided by radiation length. It's easy to get these values, since FairRadLenPoint has coordinates where the particle enters volume and where the particle leaves it.

Thus, assuming you have your FairRadLenPoint
as RadLenP:

TVector3 PosIn=RadLenP->GetPosition();
TVector3 PosOut=RadLenP->GetPositionOut();
TVector3 InOut=PosOut-PosIn;
Double_t Distance=InOut.Mag();
Double_t RadLen=RadLenP->GetRadLength();
Double_t RadLenEffective=Distance/RadLen;

There is a detailed example:
materialana.C

And an example of simulation:
materialsim.C
 
Read Message
Read Message
Read Message
Previous Topic: Problem on running FairRoot tutorial macro
Next Topic: Question about environmental varaibles[Solved]
Goto Forum:
  


Current Time: Thu Apr 18 15:36:08 CEST 2024

Total time taken to generate the page: 0.00994 seconds