Belle II Software  release-08-01-10
CsiGeometryPar Class Reference

The Class for CSI Geometry Parameters. More...

#include <CsiGeometryPar.h>

Collaboration diagram for CsiGeometryPar:

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. More...
 
int CsiVolNameToCellID (const G4String VolumeName)
 Get Cell Id.
 
G4Material * GetMaterial (int cid)
 Get pointer to the Geant4 Material.
 
ThreeVector GetPosition (int cid)
 Get the position of the crystal.
 
ThreeVector GetOrientation (int cid)
 Get the position of the crystal.
 
TVector3 GetPositionTV3 (int cid)
 Get the position of the crystal in a root TVector3.
 
TVector3 GetOrientationTV3 (int cid)
 Get the orientation of the crystal in a root TVector3.
 
TVector3 ConvertToTVector3 (ThreeVector _hepTV)
 Converts to a ROOT TVector3.
 
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 CsiGeometryParInstance ()
 Static method to get a reference to the CsiGeometryPar instance. More...
 

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< ThreeVector > m_Position
 Position of the nominal centre of the crystal (as a HEP ThreeVector)
 
std::vector< TVector3 > m_PositionTV3
 Position of the nominal centre of the crystal (as a ROOT TVector3)
 
std::vector< ThreeVector > m_Orientation
 Orientation of the crystal (as a HEP ThreeVector)
 
std::vector< TVector3 > m_OrientationTV3
 Orientation of the crystal (as ROOT TVector3)
 

Static Private Attributes

static CsiGeometryParm_B4CsiGeometryParDB = 0
 Pointer that saves the instance of this class.
 

Detailed Description

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.

Member Function Documentation

◆ Instance()

CsiGeometryPar * Instance ( )
static

Static method to get a reference to the CsiGeometryPar instance.

Returns
A reference to an instance of this class.

Definition at line 26 of file CsiGeometryPar.cc.

27 {
29  return m_B4CsiGeometryParDB;
30 }
static CsiGeometryPar * m_B4CsiGeometryParDB
Pointer that saves the instance of this class.

◆ read()

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.


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