12#ifndef O2_TRD_GEOMETRYBASE_H
13#define O2_TRD_GEOMETRYBASE_H
29 GPUd() bool isHole(
int la,
int st,
int se)
const {
return (((se == 13) || (se == 14) || (se == 15)) && (
st == 2)); }
40 GPUd() bool getSMstatus(
int sm)
const {
return (
mSMStatus & (0x1 << sm)) != 0; }
54 GPUd() float getCol0(
int layer)
const {
return getPadPlane(
layer, 0)->getCol0(); }
63 static constexpr GPUd() float getXtrdBeg() {
return XTRDBEG; }
64 static constexpr GPUd() float getXtrdEnd() {
return XTRDEND; }
68 static constexpr GPUd() float cheight() {
return CH; }
69 static constexpr GPUd() float cheightSV() {
return CHSV; }
70 static constexpr GPUd() float cspace() {
return VSPACE; }
71 static constexpr GPUd() float craHght() {
return CRAH; }
72 static constexpr GPUd() float cdrHght() {
return CDRH; }
73 static constexpr GPUd() float camHght() {
return CAMH; }
74 static constexpr GPUd() float croHght() {
return CROH; }
75 static constexpr GPUd() float csvHght() {
return CSVH; }
76 static constexpr GPUd() float croWid() {
return CROW; }
81 static constexpr GPUd() float drZpos() {
return DRZPOS; }
82 static constexpr GPUd() float rpadW() {
return RPADW; }
83 static constexpr GPUd() float cpadW() {
return CPADW; }
116 static constexpr float CRAH = 4.8;
117 static constexpr float CDRH = 3.0;
118 static constexpr float CAMH = 0.7;
119 static constexpr float CROH = 2.316;
120 static constexpr float CROW = 0.9;
128 static constexpr float CALT = 0.4;
129 static constexpr float CCLST = 0.21;
131 static constexpr float CGLT = 0.25;
134 static constexpr float CAUT = 1.5;
135 static constexpr float CALW = 2.5;
136 static constexpr float CALH = 0.4;
139 static constexpr float CWSW = 1.2;
140 static constexpr float CWSH = 0.3;
206 {124.0, 124.0, 110.0, 124.0, 124.0},
207 {124.0, 124.0, 110.0, 124.0, 124.0},
208 {131.0, 131.0, 110.0, 131.0, 131.0},
209 {138.0, 138.0, 110.0, 138.0, 138.0},
210 {145.0, 145.0, 110.0, 145.0, 145.0},
211 {147.0, 147.0, 110.0, 147.0, 147.0}};
static constexpr GPUd() float cwidcha()
static constexpr GPUd() float croHght()
static constexpr GPUd() int padmax()
static constexpr GPUd() int rowmaxC1()
static constexpr GPUd() float cspace()
static constexpr float PGLTHICK
Thickness of the glue layer.
static constexpr float PRBTHICK
Thickness of the PCB copper layers.
static constexpr GPUd() float getXtrdEnd()
static constexpr GPUd() float drThick()
static constexpr GPUd() float croWid()
static constexpr GPUd() float cheightSV()
static constexpr float AMZPOS
Position of the amplification region.
GPUd() int getColMax(int layer) const
static constexpr GPUd() float getAlpha()
static constexpr float PELTHICK
Thickness of all other electronics components (caps, etc.)
static constexpr float DRZPOS
Position of the drift region.
static constexpr float AMTHICK
Thickness of the amplification region.
static constexpr float CALHMOD
Height of additional aluminum ledge on lower frame.
static constexpr float CWSW
Width of additional wacosit ledge on lower frame.
static constexpr GPUd() int getSector(int det)
GPUd() float getRowPos(int layer
static constexpr float CWIDTH[constants::NLAYER]
static constexpr float TIME0[6]
static constexpr GPUd() float getTime0(int layer)
static constexpr GPUd() int colmax()
static constexpr float PPDTHICK
Thickness of copper of the pad plane.
static constexpr float CAUT
Al frame of back panel.
static constexpr float DRTHICK
Thickness of the drift region.
static constexpr float CGLT
Thichness of the glue around the radiator.
static constexpr float CSVH
Height of the services on top of the chambers.
static constexpr float RRHTHICK
Thickness of the rohacell layers in the radiator.
static constexpr float CWSH
Height of additional wacosit ledge on lower frame.
static constexpr float CLENGTH[constants::NLAYER][constants::NSTACK]
static constexpr int PADMAX
Maximum number of pads per MCM.
static constexpr float CHSV
Total height of the chambers (with services)
static constexpr int COLMAX
Maximum number of pads per padplane row.
GPUd() float getRowEnd(int layer
static constexpr GPUd() float rpadW()
GPUd() float getRow0(int layer
static constexpr float SWIDTH1
Lower width of the supermodule.
static constexpr float RFBTHICK
Thickness of the fiber layers in the radiator.
static constexpr float SLENGTH
Length of the supermodule.
static constexpr GPUd() float getXtrdBeg()
static constexpr GPUd() int MCMmax()
static constexpr float WRTHICK
Thickness of the wire planes.
static constexpr float PHCTHICK
Thickness of the honeycomb support structure.
static constexpr GPUd() float getChamberLength(int layer
GPUd() float getRowSize(int layer
static constexpr float CROW
Additional width of the readout chamber frames.
static constexpr float CCLFT
Thickness of the lower Wacosit frame front.
static constexpr int ROWMAXC0
Maximum number of Rows per C0 chamber.
static constexpr GPUd() float cpadW()
static constexpr float CROH
Height of the readout of the chambers.
static constexpr float PCBTHICK
Thickness of the carbon layers.
static constexpr GPUd() float anodePos()
static constexpr float CALZPOS
Position of the additional aluminum ledges.
static constexpr GPUd() int rowmaxC0()
static constexpr float TIME0BASE
Base value for calculation of Time-position of pad 0.
static constexpr int ROBMAXC0
Maximum number of ROBs per C0 chamber.
static constexpr float RCBTHICK
Thickness of the carbon layers in the radiator.
static constexpr GPUd() float camHght()
GPUd() const PadPlane *getPadPlane(int det) const
static constexpr float ANODEPOS
static constexpr float CCLST
Thickness of the lower Wacosit frame sides.
static constexpr GPUd() float amThick()
static constexpr int MCMROW
Maximum number of MCMs per ROB Row.
static constexpr float WRZPOSB
Position of the wire planes.
static constexpr GPUd() float drZpos()
static constexpr float RGLTHICK
Thickness of the glue layers in the radiator.
static constexpr float VROCSM
Radial distance of the first ROC to the outer plates of the SM.
static constexpr GPUd() float cheight()
PadPlane mPadPlanes[constants::NLAYER *constants::NSTACK]
ClassDefNV(GeometryBase, 1)
static constexpr int TBMAX
Maximum number of Time bins.
static constexpr float FLENGTH
static constexpr int ROWMAXC1
Maximum number of Rows per C1 chamber.
static constexpr GPUd() float cdrHght()
static constexpr GPUd() float csvHght()
static constexpr float CRAH
Height of the radiator part of the chambers.
static constexpr float PPPTHICK
Thickness of PCB board of the pad plane.
static constexpr float CALH
Height of additional aluminum ledge on lower frame.
static constexpr GPUd() int ROBmaxC0()
static constexpr int MCMMAX
Maximum number of MCMs per ROB.
static constexpr float VSPACE
Vertical spacing of the chambers.
static constexpr float SHEIGHT
Height of the supermodule.
static constexpr float CDRH
Height of the drift region of the chambers.
static constexpr float CCUTB
Thickness of the upper Wacosit frame around amp. region.
static constexpr float SMPLTT
Thickness of the super module side plates.
static constexpr float HSPACE
Horizontal spacing of the chambers.
static constexpr float CH
Total height of the chambers (w/o services)
static constexpr GPUd() int MCMrow()
static constexpr GPUd() float getChamberWidth(int layer)
static constexpr int ADCMAX
Maximum number of ADC channels per MCM.
static constexpr GPUd() float myThick()
static constexpr float CALWMOD
Width of additional aluminum ledge on lower frame.
static constexpr float RMYTHICK
Thickness of the mylar layers in the radiator.
static constexpr float SWIDTH2
Upper width of the supermodule.
static constexpr GPUd() float craHght()
static constexpr float CPADW
static constexpr GPUd() int ROBmaxC1()
static constexpr float XTRDBEG
X-coordinate in tracking system of begin of TRD mother volume.
static constexpr float XETHICK
Thickness of the gas volume.
static constexpr GPUd() int TBmax()
static constexpr int ROBMAXC1
Maximum number of ROBs per C1 chamber.
static constexpr float PPCTHICK
Thickness of the PCB readout boards.
static constexpr float RPADW
>Difference of outer chamber width and pad plane width
static constexpr float CALW
Width of additional aluminum ledge on lower frame.
static constexpr GPUd() int ADCmax()
static constexpr float WRZPOSA
Position of the wire planes.
static constexpr float CAMH
Height of the amplification region of the chambers.
static constexpr float CCUTA
Upper Wacosit frame around amplification region.
static constexpr float TLENGTH
Total length of the TRD mother volume.
static constexpr float XTRDEND
X-coordinate in tracking system of end of TRD mother volume.
static constexpr float CALT
Thicknesses of different parts of the chamber frame Lower aluminum frame.
GPUd() float getCol0(int layer) const
GLenum GLuint GLint GLint layer
GLdouble GLdouble GLdouble z
constexpr int NLAYER
the number of layers
constexpr int NSECTOR
the number of sectors
constexpr int NSTACK
the number of stacks per sector
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...