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

Utils Class Reference

#include <Utils.h>

List of all members.

Static Public Member Functions

double BetaFactor (double m, double E)
double GammaFactor (double m, double E)
double E2P (double m, double E)


Member Function Documentation

double Utils::BetaFactor double  m,
double  E
[inline, static]
 

Definition at line 22 of file MuELoss/Utils.h.

Referenced by BetheBlochModel::dE_dx(), and BetheBlochModel::DensityCorrectionFactor().

00023  {
00024   // Calculate beta factor (beta = u/c = p/E) for particles (mass m) of a given energy
00025   // Input  : E, particle energy
00026   //          m, particle mass
00027 
00028    assert( E >= m );
00029 
00030    double E2 = E*E;
00031    double m2 = m*m;
00032    
00033    return sqrt(E2-m2)/E;
00034  }

double Utils::E2P double  m,
double  E
[inline, static]
 

Definition at line 45 of file MuELoss/Utils.h.

Referenced by BetheBlochModel::MaximumEnergyTransfer().

00046  {
00047   // Calculates the particle momentum
00048   // Input  : E, particle energy
00049   //          m, particle mass
00050 
00051   assert( E >= m );
00052   return sqrt( E*E - m*m );
00053  }

double Utils::GammaFactor double  m,
double  E
[inline, static]
 

Definition at line 36 of file MuELoss/Utils.h.

Referenced by BetheBlochModel::dE_dx(), and BetheBlochModel::DensityCorrectionFactor().

00037  {
00038   // Calculates gamma factor (gamma = E/mass) for muons of a given energy
00039   // Input  : E, particle energy
00040   //          m, particle mass
00041 
00042   return E/m;
00043  }


The documentation for this class was generated from the following file:
Generated on Mon Feb 15 11:10:29 2010 for loon by  doxygen 1.3.9.1