Belle II Software development
|
Class for obtaining crystal details for a given crystal cell An evolved look-up table. More...
#include <ECLCrystalData.h>
Public Member Functions | |
ECLCrystalData () | |
Blank Constructor. | |
ECLCrystalData (int cid) | |
CrystalID constructor. | |
ECLCrystalData (int tid, int pid) | |
theta, phi ID constructor | |
~ECLCrystalData () | |
destructor | |
void | Eval () |
Set values for the crystal. | |
int | GetCrystalIndex () |
return crystal index | |
bool | IsEndCap () |
True if crystal is in endcaps. | |
bool | IsBarrel () |
True if crystal is in barrel. | |
int | GetCellID () |
return cell ID | |
int | GetCellID (int tid, int pid) |
return cell ID of crystal with given theta and phi id | |
double | GetPhi () |
get phi value of crystal | |
double | GetTheta () |
get theta value of crystal | |
double | GetR () |
get radius of crystal | |
double | GetZ () |
get z position of crystal | |
double | GetX () |
get x position of crystal | |
double | GetY () |
get y position of crystal | |
double | GetMass () |
get mass of crystal | |
int | GetThetaID () |
get thetaID of crystal | |
int | GetPhiID () |
get phiID of crystal | |
int | GetNperThetaID () |
get number of crystals in theta ring | |
Static Public Attributes | |
static const int | Ring [69] |
ECL has 16-fold symmetry in phi. | |
static const int | sumPrevious [24] = {0, 3, 6, 10, 14, 18, 24, 30, 36, 42, 48, 54, 63, 72, 81, 90, 96, 102, 108, 114, 120, 124, 128, 132} |
Number of crystals in preceding theta rings (endcaps only) | |
static const float | CrystalMassEndcap [132] |
Barrel crystal mass. | |
static const float | CrystalMassBarrel [46] |
Endcap crystal mass. | |
static const double | theta [69] |
Theta ID to theta(deg) | |
static const double | EndcapRadius [132] |
EndCapCrystalID to radius (spherical) | |
static const double | BarrelZ [46] = {210.15, 200.14, 190.44, 181.05, 171.95, 163.03, 154.45, 146.10, 137.98, 129.99, 122.27, 114.72, 107.34, 100.05, 92.96, 86.00, 79.15, 72.36, 65.72, 59.16, 52.69, 46.22, 39.87, 33.56, 27.29, 21.01, 14.81, 8.62, 2.78, -2.78, -14.81, -21.01, -27.29, -33.56, -39.87, -46.22, -52.69, -59.16, -65.72, -72.36, -79.15, -86.00, -92.95, -100.05, -107 - 28} |
BarrelCrystalID to z-coordinate. | |
Private Member Functions | |
float | EvalMass () |
Evaluate mass of crystal. | |
double | EvalPhi () |
Set phi value of crystal. | |
double | EvalR () |
Set R value of crystal. | |
double | EvalZ () |
Set Z value of crystal. | |
double | EvalX () |
Set X value of crystal. | |
double | EvalY () |
Set Y value of crystal. | |
void | Mapping (int cid) |
set theta and phi value of crystal | |
Private Attributes | |
int | m_cell_ID |
Cell ID of crystal. | |
int | m_phi_ID |
phi ID of crystal | |
int | m_theta_ID |
theta ID of crystal | |
int | m_phi_idx |
Index. | |
int | m_theta_idx |
Index. | |
float | m_mass |
Crystal Mass. | |
float | m_volume |
Crystal Volume. | |
float | m_PosR |
Crystal Position - R. | |
float | m_PosP |
Crystal Position - P. | |
float | m_PosX |
Crystal Position - X. | |
float | m_PosY |
Crystal Position - Y. | |
float | m_PosZ |
Crystal Position - Z. | |
Class for obtaining crystal details for a given crystal cell An evolved look-up table.
Definition at line 24 of file ECLCrystalData.h.
ECLCrystalData | ( | ) |
Blank Constructor.
Constructors and destructors.
Definition at line 109 of file ECLCrystalData.cc.
|
explicit |
CrystalID constructor.
Definition at line 126 of file ECLCrystalData.cc.
ECLCrystalData | ( | int | tid, |
int | pid | ||
) |
theta, phi ID constructor
Definition at line 135 of file ECLCrystalData.cc.
~ECLCrystalData | ( | ) |
void Eval | ( | ) |
Set values for the crystal.
Evaluate all properties from theta_ID and phi_ID.
Definition at line 152 of file ECLCrystalData.cc.
|
private |
Evaluate mass of crystal.
Definition at line 181 of file ECLCrystalData.cc.
|
private |
Set phi value of crystal.
Definition at line 223 of file ECLCrystalData.cc.
|
private |
Set R value of crystal.
Definition at line 237 of file ECLCrystalData.cc.
|
private |
Set X value of crystal.
Definition at line 169 of file ECLCrystalData.cc.
|
private |
Set Y value of crystal.
Definition at line 174 of file ECLCrystalData.cc.
|
private |
Set Z value of crystal.
Definition at line 228 of file ECLCrystalData.cc.
|
inline |
int GetCellID | ( | int | tid, |
int | pid | ||
) |
return cell ID of crystal with given theta and phi id
0-12 forward 13-58 barrel 59-68 backward
Definition at line 248 of file ECLCrystalData.cc.
int GetCrystalIndex | ( | ) |
return crystal index
Definition at line 191 of file ECLCrystalData.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
True if crystal is in barrel.
Definition at line 212 of file ECLCrystalData.cc.
|
inline |
True if crystal is in endcaps.
Definition at line 207 of file ECLCrystalData.cc.
|
private |
set theta and phi value of crystal
Definition at line 266 of file ECLCrystalData.cc.
|
static |
BarrelCrystalID to z-coordinate.
BarrelCrystalID to Z.
Definition at line 96 of file ECLCrystalData.h.
|
static |
Endcap crystal mass.
Definition at line 86 of file ECLCrystalData.h.
|
static |
Barrel crystal mass.
Definition at line 84 of file ECLCrystalData.h.
|
static |
EndCapCrystalID to radius (spherical)
Definition at line 93 of file ECLCrystalData.h.
|
private |
Cell ID of crystal.
Definition at line 29 of file ECLCrystalData.h.
|
private |
Crystal Mass.
Definition at line 43 of file ECLCrystalData.h.
|
private |
phi ID of crystal
Definition at line 31 of file ECLCrystalData.h.
|
private |
Index.
Definition at line 37 of file ECLCrystalData.h.
|
private |
Crystal Position - P.
Definition at line 53 of file ECLCrystalData.h.
|
private |
Crystal Position - R.
Definition at line 51 of file ECLCrystalData.h.
|
private |
Crystal Position - X.
Definition at line 55 of file ECLCrystalData.h.
|
private |
Crystal Position - Y.
Definition at line 57 of file ECLCrystalData.h.
|
private |
Crystal Position - Z.
Definition at line 59 of file ECLCrystalData.h.
|
private |
theta ID of crystal
Definition at line 33 of file ECLCrystalData.h.
|
private |
Index.
Definition at line 39 of file ECLCrystalData.h.
|
private |
Crystal Volume.
Definition at line 45 of file ECLCrystalData.h.
|
static |
ECL has 16-fold symmetry in phi.
Multiply this by 16 to get the total number of crystals at each theta location.
Definition at line 79 of file ECLCrystalData.h.
|
static |
Number of crystals in preceding theta rings (endcaps only)
Definition at line 81 of file ECLCrystalData.h.
|
static |
Theta ID to theta(deg)
Definition at line 90 of file ECLCrystalData.h.