Utils Class Reference

#include <Utils.h>

List of all members.

Static Public Member Functions

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

Detailed Description

Definition at line 17 of file MuELoss/HEAD/Utils.h.


Member Function Documentation

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

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

References Munits::m2.

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  }

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

Definition at line 45 of file MuELoss/HEAD/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  }

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

Definition at line 36 of file MuELoss/HEAD/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 22 Nov 2017 for loon by  doxygen 1.6.1