Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PIDFormulas Namespace Reference


Functions

float CERThreshold (float m, float p, float k)
float TimeOfFlight (float m, float p, float l)


Function Documentation

float PIDFormulas::CERThreshold float  m,
float  p,
float  k
 

Definition at line 8 of file PIDFormulas.cxx.

References pow().

Referenced by AutoPIDMaker::Reco().

00009 {
00010      // returns the cerenkov threshold pressure in atm
00011      // m = mass in GeV
00012      // p = momentum in GeV
00013      // k = constant depending on gas == (n_0 - 1)  with n_0 at 1atm
00014      //   = 4.1E-4 for C02 at STP
00015 
00016      return 1/(2*k)*pow(m/p,2);
00017 }

float PIDFormulas::TimeOfFlight float  m,
float  p,
float  l
 

Definition at line 19 of file PIDFormulas.cxx.

References pow().

Referenced by AutoPIDMaker::Reco().

00020 {
00021      const float c_in_ticks=Munits::c_light*(1.0E-12)*35.0; // 35 ps/tick
00022      return (l/c_in_ticks)*sqrt(1.0 + pow(m/p, 2));
00023 }


Generated on Thu Nov 1 12:02:19 2007 for loon by  doxygen 1.3.9.1