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

Detailed Description

Definition at line 45 of file GFGeoMatManager.h.

Constructor & Destructor Documentation

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

Definition at line 47 of file GFGeoMatManager.h.

References getMaterialParameters(), initTrack(), and stepOrNextBoundary().

47 {}

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.

References mat, MeanExcEnergy_get(), and GFException::setFatal().

Referenced by ~GFGeoMatManager().

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)
Float_t mat
Definition: plot.C:40
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
Definition: GFException.h:50
GFException & setFatal(bool b=true)
set fatal flag. if this is true, the fit stops for this current track repr.
Definition: GFException.h:80
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.

Referenced by ~GFGeoMatManager().

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.

Referenced by ~GFGeoMatManager().

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

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