Belle II Software development
|
The Class for ECL Geometry Parameters. More...
#include <ECLGeometryPar.h>
Classes | |
struct | CrystalGeom_t |
crystal geometry More... | |
Public Member Functions | |
ECLGeometryPar () | |
Constructor. | |
virtual | ~ECLGeometryPar () |
Destructor. | |
void | clear () |
Clears. | |
void | Print () const |
Print some debug information. | |
void | read () |
Gets geometry parameters from PhysicalVolumeStore. | |
void | Mapping (int cid) |
Mapping theta, phi Id. | |
int | GetCellID (int ThetaId, int PhiId) |
Get Cell Id. | |
int | GetCellID () |
Get Cell Id. | |
int | GetThetaID () |
Get Theta Id. | |
int | GetPhiID () |
Get Phi Id. | |
int | ECLVolumeToCellID (const G4VTouchable *) |
Get Cell Id (LEP: new way) | |
int | TouchableToCellID (const G4VTouchable *) |
The same as above but without sanity checks. | |
int | TouchableDiodeToCellID (const G4VTouchable *) |
Mapping from G4VTouchable copyNumbers to Crystal CellID. | |
G4ThreeVector | getCrystalPos (int cid) |
The Position of crystal. | |
G4ThreeVector | getCrystalVec (int cid) |
The direction of crystal. | |
ROOT::Math::XYZVector | GetCrystalPos (int cid) |
The Position of crystal. | |
ROOT::Math::XYZVector | GetCrystalVec (int cid) |
The direction of crystal. | |
double | time2sensor (int cid, const G4ThreeVector &hit_pos) |
function to calculate flight time to diode sensor | |
Static Public Member Functions | |
static ECLGeometryPar * | Instance () |
Static method to get a reference to the ECLGeometryPar instance. | |
Private Member Functions | |
void | InitCrystal (int cid) |
initialise the crystal | |
Private Attributes | |
G4Transform3D * | m_ECLForwardGlobalT = nullptr |
Global transformations for the forward part. | |
G4Transform3D * | m_ECLBackwardGlobalT = nullptr |
Global transformations for the backward part. | |
G4Transform3D * | m_ECLBarrelGlobalT = nullptr |
Global transformations for the barrel part. | |
std::vector< CrystalGeom_t > | m_crystals |
the crystals | |
CrystalGeom_t | m_current_crystal |
the current crystal | |
int | mPar_cellID |
The Cell ID information. | |
int | mPar_thetaID |
The Theta ID information. | |
int | mPar_phiID |
The Phi ID information. | |
int | m_ini_cid |
initial crystal ID | |
Static Private Attributes | |
static ECLGeometryPar * | m_B4ECLGeometryParDB = 0 |
Pointer that saves the instance of this class. | |
The Class for ECL Geometry Parameters.
This class provides ECL geometry parameters for simulation, reconstruction and so on. These parameters are got from geometry description
Definition at line 44 of file ECLGeometryPar.h.
ECLGeometryPar | ( | ) |
Constructor.
Definition at line 174 of file ECLGeometryPar.cc.
|
virtual |
Destructor.
Definition at line 181 of file ECLGeometryPar.cc.
void clear | ( | ) |
Clears.
Definition at line 192 of file ECLGeometryPar.cc.
int ECLVolumeToCellID | ( | const G4VTouchable * | touch | ) |
Get Cell Id (LEP: new way)
Mapping from G4VTouchable copyNumbers to Crystal CellID
Definition at line 478 of file ECLGeometryPar.cc.
|
inline |
int GetCellID | ( | int | ThetaId, |
int | PhiId | ||
) |
Get Cell Id.
Definition at line 399 of file ECLGeometryPar.cc.
|
inline |
The Position of crystal.
Definition at line 87 of file ECLGeometryPar.h.
|
inline |
The Position of crystal.
Definition at line 101 of file ECLGeometryPar.h.
|
inline |
The direction of crystal.
Definition at line 94 of file ECLGeometryPar.h.
|
inline |
The direction of crystal.
Definition at line 109 of file ECLGeometryPar.h.
|
inline |
|
inline |
|
private |
initialise the crystal
Definition at line 362 of file ECLGeometryPar.cc.
|
static |
Static method to get a reference to the ECLGeometryPar instance.
Definition at line 168 of file ECLGeometryPar.cc.
void Mapping | ( | int | cid | ) |
Mapping theta, phi Id.
Definition at line 404 of file ECLGeometryPar.cc.
void read | ( | ) |
Gets geometry parameters from PhysicalVolumeStore.
Definition at line 253 of file ECLGeometryPar.cc.
double time2sensor | ( | int | cid, |
const G4ThreeVector & | hit_pos | ||
) |
function to calculate flight time to diode sensor
Definition at line 496 of file ECLGeometryPar.cc.
int TouchableDiodeToCellID | ( | const G4VTouchable * | touch | ) |
Mapping from G4VTouchable copyNumbers to Crystal CellID.
Definition at line 410 of file ECLGeometryPar.cc.
int TouchableToCellID | ( | const G4VTouchable * | touch | ) |
The same as above but without sanity checks.
Definition at line 415 of file ECLGeometryPar.cc.
|
staticprivate |
Pointer that saves the instance of this class.
Definition at line 145 of file ECLGeometryPar.h.
|
private |
the crystals
Definition at line 133 of file ECLGeometryPar.h.
|
private |
the current crystal
Definition at line 135 of file ECLGeometryPar.h.
|
private |
Global transformations for the backward part.
Definition at line 122 of file ECLGeometryPar.h.
|
private |
Global transformations for the barrel part.
Definition at line 124 of file ECLGeometryPar.h.
|
private |
Global transformations for the forward part.
Definition at line 120 of file ECLGeometryPar.h.
|
private |
initial crystal ID
Definition at line 143 of file ECLGeometryPar.h.
|
private |
The Cell ID information.
Definition at line 137 of file ECLGeometryPar.h.
|
private |
The Phi ID information.
Definition at line 141 of file ECLGeometryPar.h.
|
private |
The Theta ID information.
Definition at line 139 of file ECLGeometryPar.h.