Public Member Functions | List of all members
genf::GFGeoMatManager Class Reference

#include <GFGeoMatManager.h>

Inheritance diagram for genf::GFGeoMatManager:
genf::GFAbsGeoMatManager

Public Member Functions

virtual ~GFGeoMatManager ()
 
void getMaterialParameters (double &matDensity, double &matZ, double &matA, double &radiationLength, double &mEE)
 Gets material parameters (density, Z, A, radiation length, mean excitation energy) More...
 
void initTrack (const double &posx, const double &posy, const double &posz, const double &dirx, const double &diry, const double &dirz)
 Initializes the track. More...
 
double stepOrNextBoundary (const double &maxDist)
 Makes a step, limited to next material boundary. More...
 
- Public Member Functions inherited from genf::GFAbsGeoMatManager
virtual ~GFAbsGeoMatManager ()
 

Detailed Description

Definition at line 43 of file GFGeoMatManager.h.

Constructor & Destructor Documentation

virtual genf::GFGeoMatManager::~GFGeoMatManager ( )
inlinevirtual

Definition at line 45 of file GFGeoMatManager.h.

45 {}

Member Function Documentation

void genf::GFGeoMatManager::getMaterialParameters ( double &  matDensity,
double &  matZ,
double &  matA,
double &  radiationLength,
double &  mEE 
)
virtual

Gets material parameters (density, Z, A, radiation length, mean excitation energy)

Implements genf::GFAbsGeoMatManager.

Definition at line 34 of file GFGeoMatManager.cxx.

38  {
39  if (!gGeoManager->GetCurrentVolume()->GetMedium())
40  throw GFException("genf::GFGeoMatManager::getMaterialParameters(): no medium in volume!", __LINE__, __FILE__).setFatal();
41  TGeoMaterial * mat = gGeoManager->GetCurrentVolume()->GetMedium()->GetMaterial();
42  //std::cout << "GFGeoMatManager::getMaterialParameters: CurrentVolume is " << std::endl;
43  //gGeoManager->GetCurrentVolume()->Print();
44  //std::cout << "GFGeoMatManager::getMaterialParameters: Material is " << std::endl;
45  //gGeoManager->GetCurrentVolume()->GetMedium()->GetMaterial()->Print();
46 
47  matDensity = mat->GetDensity();
48  matZ = mat->GetZ();
49  matA = mat->GetA();
50  radiationLength = mat->GetRadLen();
51  mEE = MeanExcEnergy_get(mat);
52 }
float MeanExcEnergy_get(int Z)
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
Definition: GFException.h:48
GFException & setFatal(bool b=true)
set fatal flag. if this is true, the fit stops for this current track repr.
Definition: GFException.h:78
void genf::GFGeoMatManager::initTrack ( const double &  posx,
const double &  posy,
const double &  posz,
const double &  dirx,
const double &  diry,
const double &  dirz 
)
virtual

Initializes the track.

Implements genf::GFAbsGeoMatManager.

Definition at line 54 of file GFGeoMatManager.cxx.

59  {
60  gGeoManager->InitTrack(posx,posy,posz,dirx,diry,dirz);
61 }
double genf::GFGeoMatManager::stepOrNextBoundary ( const double &  maxDist)
virtual

Makes a step, limited to next material boundary.

Tries to make a step with length maxDist along the track. If there is a material boundary, the step is made to that boundary and the distance to that boundary is returned. Otherwise the step is made with maxDist.

Implements genf::GFAbsGeoMatManager.

Definition at line 63 of file GFGeoMatManager.cxx.

63  {
64  gGeoManager->FindNextBoundaryAndStep(maxStep);
65  return gGeoManager->GetStep();
66 }

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