PandaRoot
GFMaterialEffects Class Reference

Contains stepper and energy loss/noise matrix calculation. More...

#include <GFMaterialEffects.h>

Inheritance diagram for GFMaterialEffects:

Public Member Functions

void setEnergyLossBetheBloch (bool opt=true)
 
void setNoiseBetheBloch (bool opt=true)
 
void setNoiseCoulomb (bool opt=true)
 
void setEnergyLossBrems (bool opt=true)
 
void setNoiseBrems (bool opt=true)
 
double effects (const std::vector< TVector3 > &points, const std::vector< double > &pointPaths, const double &mom, const int &pdg, const bool &doNoise=false, TMatrixT< double > *noise=nullptr, const TMatrixT< double > *jacobian=nullptr, const TVector3 *directionBefore=nullptr, const TVector3 *directionAfter=nullptr)
 Calculates energy loss in the travelled path, optional calculation of noise matrix. More...
 
double stepper (const double &maxDist, const double &posx, const double &posy, const double &posz, const double &dirx, const double &diry, const double &dirz, const double &mom, const int &pdg)
 Returns maximum length so that a specified momentum loss will not be exceeded. More...
 
double stepper (const double &maxDist, const TVector3 &pos, const TVector3 &dir, const double &mom, const int &pdg)
 

Static Public Member Functions

static GFMaterialEffectsgetInstance ()
 
static void destruct ()
 

Detailed Description

Contains stepper and energy loss/noise matrix calculation.

Author
Christian Höppner (Technische Universität München, original author)
Sebastian Neubert (Technische Universität München, original author)
Johannes Rauch (Technische Universität München, author)

It provides functionality to limit the stepsize of an extrapolation in order not to exceed a specified maximum momentum loss. After propagation, the energy loss for the given length and (optionally) the noise matrix can be calculated. You have to set which energy-loss and noise mechanisms you want to use. At the moment, per default all energy loss and noise options are ON.

Definition at line 47 of file GFMaterialEffects.h.

Member Function Documentation

◆ destruct()

static void GFMaterialEffects::destruct ( )
static

◆ effects()

double GFMaterialEffects::effects ( const std::vector< TVector3 > &  points,
const std::vector< double > &  pointPaths,
const double &  mom,
const int &  pdg,
const bool &  doNoise = false,
TMatrixT< double > *  noise = nullptr,
const TMatrixT< double > *  jacobian = nullptr,
const TVector3 *  directionBefore = nullptr,
const TVector3 *  directionAfter = nullptr 
)

Calculates energy loss in the travelled path, optional calculation of noise matrix.

Referenced by setNoiseBrems().

◆ getInstance()

static GFMaterialEffects* GFMaterialEffects::getInstance ( )
static

◆ setEnergyLossBetheBloch()

void GFMaterialEffects::setEnergyLossBetheBloch ( bool  opt = true)
inline

Definition at line 58 of file GFMaterialEffects.h.

58 { fEnergyLossBetheBloch = opt; }

◆ setEnergyLossBrems()

void GFMaterialEffects::setEnergyLossBrems ( bool  opt = true)
inline

Definition at line 61 of file GFMaterialEffects.h.

61 { fEnergyLossBrems = opt; }

◆ setNoiseBetheBloch()

void GFMaterialEffects::setNoiseBetheBloch ( bool  opt = true)
inline

Definition at line 59 of file GFMaterialEffects.h.

59 { fNoiseBetheBloch = opt; }

◆ setNoiseBrems()

void GFMaterialEffects::setNoiseBrems ( bool  opt = true)
inline

Definition at line 62 of file GFMaterialEffects.h.

References effects(), and stepper().

62 { fNoiseBrems = opt; }

◆ setNoiseCoulomb()

void GFMaterialEffects::setNoiseCoulomb ( bool  opt = true)
inline

Definition at line 60 of file GFMaterialEffects.h.

60 { fNoiseCoulomb = opt; }

◆ stepper() [1/2]

double GFMaterialEffects::stepper ( const double &  maxDist,
const double &  posx,
const double &  posy,
const double &  posz,
const double &  dirx,
const double &  diry,
const double &  dirz,
const double &  mom,
const int &  pdg 
)

Returns maximum length so that a specified momentum loss will not be exceeded.

The stepper returns the maximum length that the particle may travel, so that a specified relative momentum loss will not be exceeded.

Referenced by setNoiseBrems(), and stepper().

◆ stepper() [2/2]

double GFMaterialEffects::stepper ( const double &  maxDist,
const TVector3 &  pos,
const TVector3 &  dir,
const double &  mom,
const int &  pdg 
)
inline

Definition at line 75 of file GFMaterialEffects.h.

References stepper().

76  {
77  return stepper(maxDist, pos.X(), pos.Y(), pos.Z(), dir.X(), dir.Y(), dir.Z(), mom, pdg);
78  }
double stepper(const double &maxDist, const double &posx, const double &posy, const double &posz, const double &dirx, const double &diry, const double &dirz, const double &mom, const int &pdg)
Returns maximum length so that a specified momentum loss will not be exceeded.

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