KaliVeda
Toolkit for HIC analysis
KVChIo.cpp
1 #include "KVChIo.h"
2 
4 
5 
6 
20 Double_t KVChIo::GetELossMylar(UInt_t z, UInt_t a, Double_t egas, Bool_t stopped)
21 {
22  //Based on energy loss in gas, calculates sum of energy losses in mylar windows
23  //from energy loss tables.
24  //If argument 'egas' not given, KVChIo::GetEnergy() is used.
25  //if stopped=kTRUE, we give the correction for a particle which stops in the detector
26  //(by default we assume the particle continues after the detector)
27  //
28  // WARNING: if stopped=kFALSE, and if the residual energy after the detector
29  // is known (i.e. measured in a detector placed after this one), you should
30  // first call
31  // SetEResAfterDetector(Eres);
32  // before calling this method. Otherwise, especially for heavy ions, the
33  // correction may be false for particles which are just above the punch-through energy.
34 
35  egas = ((egas < 0.) ? GetEnergy() : egas);
36  if (egas <= 0.)
37  return 0.0; //check measured (calibrated) energy in gas is reasonable (>0)
38 
39  KVNucleus tmp(z, a);
40  Double_t emylar = GetCorrectedEnergy(&tmp, egas, !stopped) - egas;
41  return emylar;
42 }
43 
44 
unsigned int UInt_t
bool Bool_t
double Double_t
Ionisation chamber detectors of the INDRA multidetector array.
Definition: KVChIo.h:30
Description of properties and kinematics of atomic nuclei.
Definition: KVNucleus.h:123
TArc a
ClassImp(TPyArg)