LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
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 46 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.

References part.

Referenced by genf::GFEnergyLossBrems::energyLoss(), and genf::GFEnergyLossBetheBloch::energyLoss().

35  {
36  TParticlePDG * part = TDatabasePDG::Instance()->GetParticle(pdg);
37  return part->Mass();
38 }
TString part[npart]
Definition: Style.C:32
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.

References part.

Referenced by genf::GFEnergyLossBrems::energyLoss(), genf::GFEnergyLossBetheBloch::energyLoss(), and genf::GFEnergyLossCoulomb::energyLoss().

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

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