Belle II Software development
|
The Class for CSI Geometry Parameters. More...
#include <CsiGeometryPar.h>
Public Member Functions | |
CsiGeometryPar () | |
Constructor. | |
virtual | ~CsiGeometryPar () |
Destructor. | |
void | clear () |
Clears. | |
void | Print (const int cid, int debuglevel=80) |
Print crystal information. | |
void | PrintAll (int debuglevel=80) |
Print all crystals information. | |
void | read () |
Gets geometry parameters from gearbox. | |
int | CsiVolNameToCellID (const G4String VolumeName) |
Get Cell Id. | |
G4Material * | GetMaterial (int cid) |
Get pointer to the Geant4 Material. | |
ROOT::Math::XYZVector | GetPosition (int cid) |
Get the position of the crystal. | |
ROOT::Math::XYZVector | GetOrientation (int cid) |
Get the orientation of the crystal. | |
int | GetEnclosureID (int cid) |
Get Enclosure ID from cell ID. | |
int | GetSlotID (int cid) |
Get Slot ID in the Enclosure from cell ID. | |
double | GetMaterialProperty (int cid, const char *propertyname) |
Get material property. | |
double | GetTauFast (int cid) |
Get crystal fast time constant. | |
double | GetTauSlow (int cid) |
Get crystal slow time constant. | |
Static Public Member Functions | |
static CsiGeometryPar * | Instance () |
Static method to get a reference to the CsiGeometryPar instance. | |
Private Attributes | |
int | m_cellID |
The Cell ID information. | |
std::vector< int > | m_thetaID |
The Theta ID information. | |
std::vector< int > | m_phiID |
The Phi ID information. | |
std::vector< int > | m_BoxID |
The index of the enclosure. | |
std::vector< int > | m_SlotID |
The slot index of the crystal in the enclosure. | |
std::vector< ROOT::Math::XYZVector > | m_Position |
Position of the nominal centre of the crystal. | |
std::vector< ROOT::Math::XYZVector > | m_Orientation |
Orientation of the crystal. | |
Static Private Attributes | |
static CsiGeometryPar * | m_B4CsiGeometryParDB = 0 |
Pointer that saves the instance of this class. | |
The Class for CSI Geometry Parameters.
This class provides CSI gemetry paramters for simulation, reconstruction and so on. These parameters are gotten from gearbox.
Definition at line 48 of file CsiGeometryPar.h.
CsiGeometryPar | ( | ) |
Constructor.
Definition at line 32 of file CsiGeometryPar.cc.
|
virtual |
Destructor.
Definition at line 40 of file CsiGeometryPar.cc.
void clear | ( | ) |
Clears.
Definition at line 48 of file CsiGeometryPar.cc.
int CsiVolNameToCellID | ( | const G4String | VolumeName | ) |
Get Cell Id.
Definition at line 134 of file CsiGeometryPar.cc.
|
inline |
G4Material * GetMaterial | ( | int | cid | ) |
Get pointer to the Geant4 Material.
Definition at line 156 of file CsiGeometryPar.cc.
double GetMaterialProperty | ( | int | cid, |
const char * | propertyname | ||
) |
Get material property.
Definition at line 181 of file CsiGeometryPar.cc.
|
inline |
|
inline |
|
inline |
|
inline |
Get crystal fast time constant.
Definition at line 99 of file CsiGeometryPar.h.
|
inline |
|
static |
Static method to get a reference to the CsiGeometryPar instance.
Definition at line 26 of file CsiGeometryPar.cc.
void Print | ( | const int | cid, |
int | debuglevel = 80 |
||
) |
Print crystal information.
Definition at line 190 of file CsiGeometryPar.cc.
void PrintAll | ( | int | debuglevel = 80 | ) |
Print all crystals information.
Definition at line 211 of file CsiGeometryPar.cc.
void read | ( | ) |
Gets geometry parameters from gearbox.
Position of the nominal centre of crystals in the box
Definition at line 61 of file CsiGeometryPar.cc.
|
staticprivate |
Pointer that saves the instance of this class.
Definition at line 130 of file CsiGeometryPar.h.
|
private |
The index of the enclosure.
Definition at line 118 of file CsiGeometryPar.h.
|
private |
The Cell ID information.
Definition at line 109 of file CsiGeometryPar.h.
|
private |
Orientation of the crystal.
Definition at line 127 of file CsiGeometryPar.h.
|
private |
The Phi ID information.
Definition at line 115 of file CsiGeometryPar.h.
|
private |
Position of the nominal centre of the crystal.
Definition at line 124 of file CsiGeometryPar.h.
|
private |
The slot index of the crystal in the enclosure.
Definition at line 121 of file CsiGeometryPar.h.
|
private |
The Theta ID information.
Definition at line 112 of file CsiGeometryPar.h.