Project
Loading...
Searching...
No Matches
o2::trd::GeometryFlat Class Reference

#include <GeometryFlat.h>

Inherits o2::gpu::FlatObject, and o2::trd::GeometryBase.

Inherited by o2::gpu::GPUTRDGeometry [private].

Public Member Functions

 GeometryFlat ()=default
 
 GeometryFlat (const GeometryFlat &v)
 
 GeometryFlat (const Geometry &geo)
 
 ~GeometryFlat ()=default
 
- Public Member Functions inherited from o2::gpu::FlatObject
 FlatObject ()=default
 _____________ Constructors / destructors __________________________
 
 ~FlatObject ()
 
 FlatObject (const FlatObject &)=delete
 
FlatObject & operator= (const FlatObject &)=delete
 
template<typename T >
T * resizeArray (T *&ptr, int32_t oldSize, int32_t newSize, T *newPtr=nullptr)
 
template<typename T >
T ** resizeArray (T **&ptr, int32_t oldSize, int32_t newSize, T **newPtr=nullptr)
 
void destroy ()
 _______________ Utilities _______________________________________________
 
 GPUdi () size_t getFlatBufferSize() const
 Gives size of the flat buffer.
 
 GPUdi () const char *getFlatBufferPtr() const
 Gives pointer to the flat buffer.
 
bool isConstructed () const
 Tells if the object is constructed.
 
bool isBufferInternal () const
 Tells if the buffer is internal.
 
void adoptInternalBuffer (char *buf)
 
void clearInternalBufferPtr ()
 
void printC () const
 Print the content of the flat buffer.
 
- Public Member Functions inherited from o2::trd::GeometryBase
 ~GeometryBase ()=default
 
 GPUd () int isVersion()
 
 GPUd () bool isHole(int la
 
 GPUd () bool isOnBoundary(int det
 
 GPUd () void setSMstatus(int sm
 
 GPUd () const PadPlane *getPadPlane(int layer
 
 GPUd () const PadPlane *getPadPlane(int det) const
 
 GPUd () int getRowMax(int layer
 
 GPUd () int getColMax(int layer) const
 
 GPUd () float getRow0(int layer
 
 GPUd () float getCol0(int layer) const
 
 GPUd () float getRowPos(int layer
 
 GPUd () float getRowSize(int layer
 
 GPUd () float getRow0(int layer
 
 GPUd () float getRowEnd(int layer
 

Public Attributes

GPUd() const o2 short mMatrixIndirection [constants::MAXCHAMBER]
 
- Public Attributes inherited from o2::trd::GeometryBase
int st
 
int int se const { return (((se == 13) || (se == 14) || (se == 15)) && (st == 2))
 
float y
 
float float z
 
float float float eps = 0.5) const
 
bool status
 
int stack const { return &mPadPlanes[getDetectorSec(layer, stack)]
 
int stack { return mPadPlanes[getDetectorSec(layer, stack)].getRow0()
 
int int const { return getPadPlane(layer, stack)->getNrows()
 
int int row { return mPadPlanes[getDetectorSec(layer, stack)].getRowPos(row)
 
static constexpr int stack { return CLENGTH[layer][stack]
 

Additional Inherited Members

- Static Public Member Functions inherited from o2::gpu::FlatObject
static constexpr size_t alignSize (size_t sizeBytes, size_t alignmentBytes)
 _______________ Generic utilities _______________________________________________
 
template<class T >
static T * relocatePointer (const char *oldBase, char *newBase, const T *ptr)
 Relocates a pointer inside a buffer to the new buffer address.
 
template<class T , class TFile >
static int32_t writeToFile (T &obj, TFile &outf, const char *name)
 write a child class object to the file
 
template<class T , class TFile >
static T * readFromFile (TFile &inpf, const char *name)
 read a child class object from the file
 
template<class T >
static std::string stressTest (T &obj)
 Test the flat object functionality for a child class T.
 
- Static Public Member Functions inherited from o2::trd::GeometryBase
static constexpr GPUd () int getSector(int det)
 
static constexpr GPUd () double getTime0(int layer)
 
static constexpr GPUd () double getXtrdBeg()
 
static constexpr GPUd () double getXtrdEnd()
 
static constexpr GPUd () double getChamberWidth(int layer)
 
static constexpr GPUd () double getChamberLength(int layer
 
static constexpr GPUd () double getAlpha()
 
static constexpr GPUd () double cheight()
 
static constexpr GPUd () double cheightSV()
 
static constexpr GPUd () double cspace()
 
static constexpr GPUd () double craHght()
 
static constexpr GPUd () double cdrHght()
 
static constexpr GPUd () double camHght()
 
static constexpr GPUd () double croHght()
 
static constexpr GPUd () double csvHght()
 
static constexpr GPUd () double croWid()
 
static constexpr GPUd () double anodePos()
 
static constexpr GPUd () double myThick()
 
static constexpr GPUd () double drThick()
 
static constexpr GPUd () double amThick()
 
static constexpr GPUd () double drZpos()
 
static constexpr GPUd () double rpadW()
 
static constexpr GPUd () double cpadW()
 
static constexpr GPUd () double cwidcha()
 
static constexpr GPUd () int MCMmax()
 
static constexpr GPUd () int MCMrow()
 
static constexpr GPUd () int ROBmaxC0()
 
static constexpr GPUd () int ROBmaxC1()
 
static constexpr GPUd () int ADCmax()
 
static constexpr GPUd () int TBmax()
 
static constexpr GPUd () int padmax()
 
static constexpr GPUd () int colmax()
 
static constexpr GPUd () int rowmaxC0()
 
static constexpr GPUd () int rowmaxC1()
 
- Protected Types inherited from o2::gpu::FlatObject
enum  ConstructionState : uint32_t { NotConstructed = 0x0 , Constructed = 0x1 , InProgress = 0x2 }
 GPUCA_GPUCODE. More...
 
- Protected Member Functions inherited from o2::gpu::FlatObject
void startConstruction ()
 _____________ Construction _________
 
void finishConstruction (int32_t flatBufferSize)
 
void cloneFromObject (const FlatObject &obj, char *newFlatBufferPtr)
 
char * releaseInternalBuffer ()
 _____________ Methods for making the data buffer external __________________________
 
void moveBufferTo (char *newBufferPtr)
 
void setActualBufferAddress (char *actualFlatBufferPtr)
 _____________ Methods for moving the class with its external buffer to another location __________________________
 
void setFutureBufferAddress (char *futureFlatBufferPtr)
 
 ClassDefNV (FlatObject, 1)
 Pointer to the flat buffer.
 
- Protected Member Functions inherited from o2::trd::GeometryBase
 GeometryBase ()=default
 
 ClassDefNV (GeometryBase, 1)
 
- Static Protected Member Functions inherited from o2::gpu::FlatObject
static constexpr size_t getClassAlignmentBytes ()
 GPUCA_GPUCODE.
 
static constexpr size_t getBufferAlignmentBytes ()
 Gives minimal alignment in bytes required for the flat buffer.
 
- Static Protected Member Functions inherited from o2::trd::GeometryBase
static GPUglobalconstexpr () double TLENGTH
 Total length of the TRD mother volume.
 
static GPUglobalconstexpr () double SHEIGHT
 Height of the supermodule.
 
static GPUglobalconstexpr () double SWIDTH1
 Lower width of the supermodule.
 
static GPUglobalconstexpr () double SWIDTH2
 Upper width of the supermodule.
 
static GPUglobalconstexpr () double SLENGTH
 Length of the supermodule.
 
static GPUglobalconstexpr () double FLENGTH
 
static GPUglobalconstexpr () double SMPLTT=0.2
 Thickness of the super module side plates.
 
static GPUglobalconstexpr () double VSPACE
 Vertical spacing of the chambers.
 
static GPUglobalconstexpr () double HSPACE
 Horizontal spacing of the chambers.
 
static GPUglobalconstexpr () double VROCSM
 Radial distance of the first ROC to the outer plates of the SM.
 
static GPUglobalconstexpr () double CRAH
 Height of the radiator part of the chambers.
 
static GPUglobalconstexpr () double CDRH
 Height of the drift region of the chambers.
 
static GPUglobalconstexpr () double CAMH=0.7
 Height of the amplification region of the chambers.
 
static GPUglobalconstexpr () double CROH
 Height of the readout of the chambers.
 
static GPUglobalconstexpr () double CROW=0.9
 Additional width of the readout chamber frames.
 
static GPUglobalconstexpr () double CSVH
 Height of the services on top of the chambers.
 
static GPUglobalconstexpr () double CH
 Total height of the chambers (w/o services)
 
static GPUglobalconstexpr () double CHSV
 Total height of the chambers (with services)
 
static GPUglobalconstexpr () double ANODEPOS
 
static GPUglobalconstexpr () double CALT=0.4
 Thicknesses of different parts of the chamber frame Lower aluminum frame.
 
static GPUglobalconstexpr () double CCLST=0.21
 Thickness of the lower Wacosit frame sides.
 
static GPUglobalconstexpr () double CCLFT
 Thickness of the lower Wacosit frame front.
 
static GPUglobalconstexpr () double CGLT=0.25
 Thichness of the glue around the radiator.
 
static GPUglobalconstexpr () double CCUTA
 Upper Wacosit frame around amplification region.
 
static GPUglobalconstexpr () double CCUTB=0.8
 Thickness of the upper Wacosit frame around amp. region.
 
static GPUglobalconstexpr () double CAUT
 Al frame of back panel.
 
static GPUglobalconstexpr () double CALW
 Width of additional aluminum ledge on lower frame.
 
static GPUglobalconstexpr () double CALH=0.4
 Height of additional aluminum ledge on lower frame.
 
static GPUglobalconstexpr () double CALWMOD=0.4
 Width of additional aluminum ledge on lower frame.
 
static GPUglobalconstexpr () double CALHMOD
 Height of additional aluminum ledge on lower frame.
 
static GPUglobalconstexpr () double CWSW
 Width of additional wacosit ledge on lower frame.
 
static GPUglobalconstexpr () double CWSH=0.3
 Height of additional wacosit ledge on lower frame.
 
static GPUglobalconstexpr () double CPADW=0.0
 
static GPUglobalconstexpr () double RPADW
 >Difference of outer chamber width and pad plane width
 
static GPUglobalconstexpr () double DRTHICK
 Thickness of the drift region.
 
static GPUglobalconstexpr () double AMTHICK
 Thickness of the amplification region.
 
static GPUglobalconstexpr () double XETHICK
 Thickness of the gas volume.
 
static GPUglobalconstexpr () double WRTHICK=0.00011
 Thickness of the wire planes.
 
static GPUglobalconstexpr () double RMYTHICK=0.0015
 Thickness of the mylar layers in the radiator.
 
static GPUglobalconstexpr () double RCBTHICK=0.0055
 Thickness of the carbon layers in the radiator.
 
static GPUglobalconstexpr () double RGLTHICK=0.0065
 Thickness of the glue layers in the radiator.
 
static GPUglobalconstexpr () double RRHTHICK=0.8
 Thickness of the rohacell layers in the radiator.
 
static GPUglobalconstexpr () double RFBTHICK
 Thickness of the fiber layers in the radiator.
 
static GPUglobalconstexpr () double PPDTHICK=0.0025
 Thickness of copper of the pad plane.
 
static GPUglobalconstexpr () double PPPTHICK=0.0356
 Thickness of PCB board of the pad plane.
 
static GPUglobalconstexpr () double PGLTHICK=0.1428
 Thickness of the glue layer.
 
static GPUglobalconstexpr () double PCBTHICK=0.019
 Thickness of the carbon layers.
 
static GPUglobalconstexpr () double PPCTHICK=0.0486
 Thickness of the PCB readout boards.
 
static GPUglobalconstexpr () double PRBTHICK=0.0057
 Thickness of the PCB copper layers.
 
static GPUglobalconstexpr () double PELTHICK=0.0029
 Thickness of all other electronics components (caps, etc.)
 
static GPUglobalconstexpr () double PHCTHICK
 Thickness of the honeycomb support structure.
 
static GPUglobalconstexpr () double DRZPOS
 Position of the drift region.
 
static GPUglobalconstexpr () double AMZPOS=0.0
 Position of the amplification region.
 
static GPUglobalconstexpr () double WRZPOSA=0.0
 Position of the wire planes.
 
static GPUglobalconstexpr () double WRZPOSB
 Position of the wire planes.
 
static GPUglobalconstexpr () double CALZPOS=0.3
 Position of the additional aluminum ledges.
 
static GPUglobalconstexpr () int MCMMAX
 Maximum number of MCMs per ROB.
 
static GPUglobalconstexpr () int MCMROW
 Maximum number of MCMs per ROB Row.
 
static GPUglobalconstexpr () int ROBMAXC0
 Maximum number of ROBs per C0 chamber.
 
static GPUglobalconstexpr () int ROBMAXC1
 Maximum number of ROBs per C1 chamber.
 
static GPUglobalconstexpr () int ADCMAX
 Maximum number of ADC channels per MCM.
 
static GPUglobalconstexpr () int TBMAX
 Maximum number of Time bins.
 
static GPUglobalconstexpr () int PADMAX
 Maximum number of pads per MCM.
 
static GPUglobalconstexpr () int COLMAX
 Maximum number of pads per padplane row.
 
static GPUglobalconstexpr () int ROWMAXC0
 Maximum number of Rows per C0 chamber.
 
static GPUglobalconstexpr () int ROWMAXC1
 Maximum number of Rows per C1 chamber.
 
static GPUglobalconstexpr () double TIME0BASE
 Base value for calculation of Time-position of pad 0.
 
static GPUglobalconstexpr () double TIME0[6]
 
static GPUglobalconstexpr () double XTRDBEG
 X-coordinate in tracking system of begin of TRD mother volume.
 
static GPUglobalconstexpr () double XTRDEND
 X-coordinate in tracking system of end of TRD mother volume.
 
static GPUglobalconstexpr () double CWIDTH[constants
 
static GPUglobalconstexpr () double CLENGTH[constants
 
- Protected Attributes inherited from o2::gpu::FlatObject
int32_t mFlatBufferSize = 0
 size of the flat buffer
 
uint32_t mConstructionMask = ConstructionState::NotConstructed
 mask for constructed object members, first two bytes are used by this class
 
char * mFlatBufferContainer = nullptr
 
char * mFlatBufferPtr = nullptr
 
- Protected Attributes inherited from o2::trd::GeometryBase
PadPlane mPadPlanes [constants::NLAYER *constants::NSTACK]
 
int mSMStatus = 0x3ffff
 

Detailed Description

Definition at line 34 of file GeometryFlat.h.

Constructor & Destructor Documentation

◆ GeometryFlat() [1/3]

o2::trd::GeometryFlat::GeometryFlat ( )
default

◆ GeometryFlat() [2/3]

o2::trd::GeometryFlat::GeometryFlat ( const GeometryFlat &  v)
inline

Definition at line 39 of file GeometryFlat.h.

◆ GeometryFlat() [3/3]

GeometryFlat::GeometryFlat ( const Geometry &  geo)

Definition at line 19 of file GeometryFlat.cxx.

◆ ~GeometryFlat()

o2::trd::GeometryFlat::~GeometryFlat ( )
default

Member Data Documentation

◆ mMatrixIndirection

GPUd () const o2 short o2::trd::GeometryFlat::mMatrixIndirection[constants::MAXCHAMBER]

Definition at line 62 of file GeometryFlat.h.


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