Public Member Functions | Protected Member Functions | List of all members
genf::GFAbsEnergyLoss Class Referenceabstract

#include <GFAbsEnergyLoss.h>

Inheritance diagram for genf::GFAbsEnergyLoss:
genf::GFEnergyLossBetheBloch genf::GFEnergyLossBrems genf::GFEnergyLossCoulomb

Public Member Functions

virtual double energyLoss (const double &step, const double &mom, const int &pdg, const double &matDensity, const double &matZ, const double &matA, const double &radiationLength, const double &meanExcitationEnergy, const bool &doNoise=false, TMatrixT< Double_t > *noise=NULL, const TMatrixT< Double_t > *jacobian=NULL, const TVector3 *directionBefore=NULL, const TVector3 *directionAfter=NULL)=0
 Calculates energy loss in a given step, optional calculation of noise matrix. More...
 
virtual ~GFAbsEnergyLoss ()
 

Protected Member Functions

void getParticleParameters (const int &pdg, double &charge, double &mass)
 Gets particle charge and mass (in GeV) More...
 
double getParticleMass (const int &pdg)
 Returns particle mass (in GeV) More...
 

Detailed Description

Definition at line 45 of file GFAbsEnergyLoss.h.

Constructor & Destructor Documentation

genf::GFAbsEnergyLoss::~GFAbsEnergyLoss ( )
virtual

Definition at line 24 of file GFAbsEnergyLoss.cxx.

24  {
25 }

Member Function Documentation

virtual double genf::GFAbsEnergyLoss::energyLoss ( const double &  step,
const double &  mom,
const int &  pdg,
const double &  matDensity,
const double &  matZ,
const double &  matA,
const double &  radiationLength,
const double &  meanExcitationEnergy,
const bool doNoise = false,
TMatrixT< Double_t > *  noise = NULL,
const TMatrixT< Double_t > *  jacobian = NULL,
const TVector3 *  directionBefore = NULL,
const TVector3 *  directionAfter = NULL 
)
pure virtual

Calculates energy loss in a given step, optional calculation of noise matrix.

Implemented in genf::GFEnergyLossCoulomb, genf::GFEnergyLossBetheBloch, and genf::GFEnergyLossBrems.

double genf::GFAbsEnergyLoss::getParticleMass ( const int &  pdg)
protected

Returns particle mass (in GeV)

Definition at line 35 of file GFAbsEnergyLoss.cxx.

35  {
36  TParticlePDG * part = TDatabasePDG::Instance()->GetParticle(pdg);
37  return part->Mass();
38 }
void genf::GFAbsEnergyLoss::getParticleParameters ( const int &  pdg,
double &  charge,
double &  mass 
)
protected

Gets particle charge and mass (in GeV)

Definition at line 27 of file GFAbsEnergyLoss.cxx.

29  {
30  TParticlePDG * part = TDatabasePDG::Instance()->GetParticle(pdg);
31  charge = part->Charge()/(3.);
32  mass = part->Mass();
33 }

The documentation for this class was generated from the following files: