Project
Loading...
Searching...
No Matches
o2::iotof::GeometryTGeo Class Reference

#include <GeometryTGeo.h>

Inherits o2::detectors::DetMatrixCache.

Public Member Functions

 GeometryTGeo (bool build=false, int loadTrans=0)
 
void Build (int loadTrans)
 
void fillMatrixCache (int mask)
 
const int getITOFNumberOfChips ()
 
const int getOTOFNumberOfChips ()
 
const int getFTOFNumberOfChips ()
 
const int getBTOFNumberOfChips ()
 
int getIOTOFFirstChipIndex (int lay) const
 
int getIOTOFLayer (int index) const
 
bool isValidIOTOFChipIndex (int index) const
 
int getIOTOFChipIndex (int lay, int sta, int mod, int chip) const
 
bool getIOTOFChipId (int index, int &lay, int &sta, int &mod, int &chip) const
 
o2::math_utils::Point3D< float > detectorToLocal (int row, int col, int chipId) const
 
TGeoHMatrix * extractMatrixSensor (int index) const
 
void extractSensorXAlpha (int, float &, float &)
 
TGeoHMatrix & createT2LMatrix (int)
 
TString getMatrixPath (int index) const
 
void defineSensors ()
 
bool isTrackingFrameCached () const
 
void fillTrackingFramesCache ()
 
float getSensorRefAlpha (int chipId) const
 
float getSensorX (int chipId) const
 
- Public Member Functions inherited from o2::detectors::DetMatrixCache
 DetMatrixCache ()=default
 
 DetMatrixCache (const o2::detectors::DetID &id)
 
virtual ~DetMatrixCache ()=default
 this may serve as a base class for detector interface to geometry, make it virtual
 
 DetMatrixCache (const DetMatrixCache &src)=delete
 
DetMatrixCacheoperator= (const DetMatrixCache &geom)=delete
 
const o2::detectors::DetIDgetDetID () const
 
const chargetName () const
 
const MatrixCache< Mat3D > & getCacheT2L () const
 
const MatrixCache< Mat3D > & getCacheT2G () const
 
const MatrixCache< Mat3D > & getCacheL2G () const
 
const MatrixCache< Rot2D > & getCacheT2GRot () const
 
const Mat3DgetMatrixT2L (int sensID) const
 
const Mat3DgetMatrixT2G (int sensID) const
 
const Mat3DgetMatrixL2G (int sensID) const
 
const Rot2DgetMatrixT2GRot (int sensID) const
 
bool isBuilt () const
 
int getSize () const
 
void setSize (int s)
 
MatrixCache< Mat3D > & getCacheT2L ()
 
MatrixCache< Mat3D > & getCacheT2G ()
 
MatrixCache< Mat3D > & getCacheL2G ()
 
MatrixCache< Rot2D > & getCacheT2GRot ()
 
 ClassDef (DetMatrixCache, 1)
 

Static Public Member Functions

static GeometryTGeoInstance ()
 
static const chargetIOTOFVolPattern ()
 
static const chargetITOFLayerPattern ()
 
static const chargetITOFStavePattern ()
 
static const chargetITOFModulePattern ()
 
static const chargetITOFChipPattern ()
 
static const chargetITOFSensorPattern ()
 
static const chargetOTOFLayerPattern ()
 
static const chargetOTOFStavePattern ()
 
static const chargetOTOFModulePattern ()
 
static const chargetOTOFChipPattern ()
 
static const chargetOTOFSensorPattern ()
 
static const chargetFTOFLayerPattern ()
 
static const chargetFTOFChipPattern ()
 
static const chargetFTOFSensorPattern ()
 
static const chargetBTOFLayerPattern ()
 
static const chargetBTOFChipPattern ()
 
static const chargetBTOFSensorPattern ()
 
static const charcomposeITOFSymNameLayer (int d, int layer)
 
static const charcomposeITOFSymNameChip (int d, int lr)
 
static const charcomposeITOFSymNameSensor (int d, int layer)
 
static const charcomposeOTOFSymNameLayer (int d, int layer)
 
static const charcomposeOTOFSymNameChip (int d, int lr)
 
static const charcomposeOTOFSymNameSensor (int d, int layer)
 
static const charcomposeFTOFSymNameLayer (int d, int layer)
 
static const charcomposeFTOFSymNameChip (int d, int lr)
 
static const charcomposeFTOFSymNameSensor (int d, int layer)
 
static const charcomposeBTOFSymNameLayer (int d, int layer)
 
static const charcomposeBTOFSymNameChip (int d, int lr)
 
static const charcomposeBTOFSymNameSensor (int d, int layer)
 
static const ChipSpecificsgetChipSpecifics (int iotofLayer)
 

Protected Member Functions

int extractNumberOfStavesIOTOF (int lay) const
 
int extractNumberOfModulesIOTOF (int lay) const
 
int extractNumberOfChipsPerModuleIOTOF (int lay) const
 
int extractNumberOfChipsFTOF () const
 
int extractNumberOfChipsBTOF () const
 

Protected Attributes

int mNumberOfStavesIOTOF [2] {}
 
int mNumberOfModulesIOTOF [2] {}
 
int mNumberOfChipsPerModuleIOTOF [2] {}
 
int mNumberOfChipsPerStaveIOTOF [2] {}
 
int mNumberOfChipsIOTOF [2] {}
 
int mLastChipIndex [2] {-1, -1}
 
int mNumberOfChipsFTOF = 0
 
int mNumberOfChipsBTOF = 0
 
std::vector< intsensors
 
std::vector< float > mCacheRefX
 
std::vector< float > mCacheRefAlpha
 cache for X of IOTOF
 

Static Protected Attributes

static std::string sIOTOFVolumeName = "IOTOFV"
 
static std::string sITOFLayerName = "ITOFLayer"
 
static std::string sITOFStaveName = "ITOFStave"
 
static std::string sITOFModuleName = "ITOFModule"
 
static std::string sITOFChipName = "ITOFChip"
 
static std::string sITOFSensorName = "ITOFSensor"
 
static std::string sOTOFLayerName = "OTOFLayer"
 
static std::string sOTOFStaveName = "OTOFStave"
 
static std::string sOTOFModuleName = "OTOFModule"
 
static std::string sOTOFChipName = "OTOFChip"
 
static std::string sOTOFSensorName = "OTOFSensor"
 
static std::string sFTOFLayerName = "FTOFLayer"
 
static std::string sFTOFChipName = "FTOFChip"
 
static std::string sFTOFSensorName = "FTOFSensor"
 
static std::string sBTOFLayerName = "BTOFLayer"
 
static std::string sBTOFChipName = "BTOFChip"
 
static std::string sBTOFSensorName = "BTOFSensor"
 

Additional Inherited Members

- Public Types inherited from o2::detectors::DetMatrixCache
typedef o2::math_utils::Transform3D Mat3D
 
typedef o2::math_utils::Rotation2Df_t Rot2D
 
- Public Attributes inherited from o2::detectors::DetMatrixCache
o2::detectors::DetID mDetID
 detector ID
 
int mSize = 0
 prebooked number of sensors
 
MatrixCache< Mat3DmL2G
 Local to Global matrices.
 
MatrixCache< Mat3DmT2L
 Tracking to Local matrices.
 
MatrixCache< Mat3DmT2G
 Tracking to Global matrices (general case)
 
MatrixCache< Rot2DmT2GRot
 Tracking to Global matrices in case of barrel (simple rotation)
 

Detailed Description

Definition at line 27 of file GeometryTGeo.h.

Constructor & Destructor Documentation

◆ GeometryTGeo()

o2::iotof::GeometryTGeo::GeometryTGeo ( bool  build = false,
int  loadTrans = 0 
)

Definition at line 51 of file GeometryTGeo.cxx.

Member Function Documentation

◆ Build()

void o2::iotof::GeometryTGeo::Build ( int  loadTrans)

Definition at line 250 of file GeometryTGeo.cxx.

◆ composeBTOFSymNameChip()

static const char * o2::iotof::GeometryTGeo::composeBTOFSymNameChip ( int  d,
int  lr 
)
static

◆ composeBTOFSymNameLayer()

static const char * o2::iotof::GeometryTGeo::composeBTOFSymNameLayer ( int  d,
int  layer 
)
static

◆ composeBTOFSymNameSensor()

static const char * o2::iotof::GeometryTGeo::composeBTOFSymNameSensor ( int  d,
int  layer 
)
static

◆ composeFTOFSymNameChip()

static const char * o2::iotof::GeometryTGeo::composeFTOFSymNameChip ( int  d,
int  lr 
)
static

◆ composeFTOFSymNameLayer()

static const char * o2::iotof::GeometryTGeo::composeFTOFSymNameLayer ( int  d,
int  layer 
)
static

◆ composeFTOFSymNameSensor()

static const char * o2::iotof::GeometryTGeo::composeFTOFSymNameSensor ( int  d,
int  layer 
)
static

◆ composeITOFSymNameChip()

static const char * o2::iotof::GeometryTGeo::composeITOFSymNameChip ( int  d,
int  lr 
)
static

◆ composeITOFSymNameLayer()

static const char * o2::iotof::GeometryTGeo::composeITOFSymNameLayer ( int  d,
int  layer 
)
static

◆ composeITOFSymNameSensor()

static const char * o2::iotof::GeometryTGeo::composeITOFSymNameSensor ( int  d,
int  layer 
)
static

◆ composeOTOFSymNameChip()

static const char * o2::iotof::GeometryTGeo::composeOTOFSymNameChip ( int  d,
int  lr 
)
static

◆ composeOTOFSymNameLayer()

static const char * o2::iotof::GeometryTGeo::composeOTOFSymNameLayer ( int  d,
int  layer 
)
static

◆ composeOTOFSymNameSensor()

static const char * o2::iotof::GeometryTGeo::composeOTOFSymNameSensor ( int  d,
int  layer 
)
static

◆ createT2LMatrix()

TGeoHMatrix & o2::iotof::GeometryTGeo::createT2LMatrix ( int  chipID)

Definition at line 375 of file GeometryTGeo.cxx.

◆ defineSensors()

void o2::iotof::GeometryTGeo::defineSensors ( )

Definition at line 296 of file GeometryTGeo.cxx.

◆ detectorToLocal()

o2::math_utils::Point3D< float > o2::iotof::GeometryTGeo::detectorToLocal ( int  row,
int  col,
int  chipId 
) const

Definition at line 178 of file GeometryTGeo.cxx.

◆ extractMatrixSensor()

TGeoHMatrix * o2::iotof::GeometryTGeo::extractMatrixSensor ( int  index) const

Get the transformation matrix of the SENSOR (not necessary the same as the chip) for a given chip 'index' by querying the TGeoManager

Definition at line 225 of file GeometryTGeo.cxx.

◆ extractNumberOfChipsBTOF()

int o2::iotof::GeometryTGeo::extractNumberOfChipsBTOF ( ) const
protected

Definition at line 135 of file GeometryTGeo.cxx.

◆ extractNumberOfChipsFTOF()

int o2::iotof::GeometryTGeo::extractNumberOfChipsFTOF ( ) const
protected

Definition at line 130 of file GeometryTGeo.cxx.

◆ extractNumberOfChipsPerModuleIOTOF()

int o2::iotof::GeometryTGeo::extractNumberOfChipsPerModuleIOTOF ( int  lay) const
protected

Definition at line 107 of file GeometryTGeo.cxx.

◆ extractNumberOfModulesIOTOF()

int o2::iotof::GeometryTGeo::extractNumberOfModulesIOTOF ( int  lay) const
protected

Definition at line 84 of file GeometryTGeo.cxx.

◆ extractNumberOfStavesIOTOF()

int o2::iotof::GeometryTGeo::extractNumberOfStavesIOTOF ( int  lay) const
protected

Definition at line 61 of file GeometryTGeo.cxx.

◆ extractSensorXAlpha()

void o2::iotof::GeometryTGeo::extractSensorXAlpha ( int  chipID,
float &  x,
float &  alp 
)

Definition at line 357 of file GeometryTGeo.cxx.

◆ fillMatrixCache()

void o2::iotof::GeometryTGeo::fillMatrixCache ( int  mask)
virtual

Implements o2::detectors::DetMatrixCache.

Definition at line 319 of file GeometryTGeo.cxx.

◆ fillTrackingFramesCache()

void o2::iotof::GeometryTGeo::fillTrackingFramesCache ( )

Definition at line 305 of file GeometryTGeo.cxx.

◆ getBTOFChipPattern()

static const char * o2::iotof::GeometryTGeo::getBTOFChipPattern ( )
inlinestatic

Definition at line 66 of file GeometryTGeo.h.

◆ getBTOFLayerPattern()

static const char * o2::iotof::GeometryTGeo::getBTOFLayerPattern ( )
inlinestatic

Definition at line 65 of file GeometryTGeo.h.

◆ getBTOFNumberOfChips()

const int o2::iotof::GeometryTGeo::getBTOFNumberOfChips ( )
inline

Definition at line 64 of file GeometryTGeo.h.

◆ getBTOFSensorPattern()

static const char * o2::iotof::GeometryTGeo::getBTOFSensorPattern ( )
inlinestatic

Definition at line 67 of file GeometryTGeo.h.

◆ getChipSpecifics()

const ChipSpecifics & o2::iotof::GeometryTGeo::getChipSpecifics ( int  iotofLayer)
static

Definition at line 170 of file GeometryTGeo.cxx.

◆ getFTOFChipPattern()

static const char * o2::iotof::GeometryTGeo::getFTOFChipPattern ( )
inlinestatic

Definition at line 60 of file GeometryTGeo.h.

◆ getFTOFLayerPattern()

static const char * o2::iotof::GeometryTGeo::getFTOFLayerPattern ( )
inlinestatic

Definition at line 59 of file GeometryTGeo.h.

◆ getFTOFNumberOfChips()

const int o2::iotof::GeometryTGeo::getFTOFNumberOfChips ( )
inline

Definition at line 58 of file GeometryTGeo.h.

◆ getFTOFSensorPattern()

static const char * o2::iotof::GeometryTGeo::getFTOFSensorPattern ( )
inlinestatic

Definition at line 61 of file GeometryTGeo.h.

◆ getIOTOFChipId()

bool o2::iotof::GeometryTGeo::getIOTOFChipId ( int  index,
int lay,
int sta,
int mod,
int chip 
) const

Definition at line 159 of file GeometryTGeo.cxx.

◆ getIOTOFChipIndex()

int o2::iotof::GeometryTGeo::getIOTOFChipIndex ( int  lay,
int  sta,
int  mod,
int  chip 
) const

Definition at line 154 of file GeometryTGeo.cxx.

◆ getIOTOFFirstChipIndex()

int o2::iotof::GeometryTGeo::getIOTOFFirstChipIndex ( int  lay) const

Definition at line 140 of file GeometryTGeo.cxx.

◆ getIOTOFLayer()

int o2::iotof::GeometryTGeo::getIOTOFLayer ( int  index) const

Definition at line 145 of file GeometryTGeo.cxx.

◆ getIOTOFVolPattern()

static const char * o2::iotof::GeometryTGeo::getIOTOFVolPattern ( )
inlinestatic

Definition at line 39 of file GeometryTGeo.h.

◆ getITOFChipPattern()

static const char * o2::iotof::GeometryTGeo::getITOFChipPattern ( )
inlinestatic

Definition at line 46 of file GeometryTGeo.h.

◆ getITOFLayerPattern()

static const char * o2::iotof::GeometryTGeo::getITOFLayerPattern ( )
inlinestatic

Definition at line 43 of file GeometryTGeo.h.

◆ getITOFModulePattern()

static const char * o2::iotof::GeometryTGeo::getITOFModulePattern ( )
inlinestatic

Definition at line 45 of file GeometryTGeo.h.

◆ getITOFNumberOfChips()

const int o2::iotof::GeometryTGeo::getITOFNumberOfChips ( )
inline

Definition at line 42 of file GeometryTGeo.h.

◆ getITOFSensorPattern()

static const char * o2::iotof::GeometryTGeo::getITOFSensorPattern ( )
inlinestatic

Definition at line 47 of file GeometryTGeo.h.

◆ getITOFStavePattern()

static const char * o2::iotof::GeometryTGeo::getITOFStavePattern ( )
inlinestatic

Definition at line 44 of file GeometryTGeo.h.

◆ getMatrixPath()

TString o2::iotof::GeometryTGeo::getMatrixPath ( int  index) const

Definition at line 188 of file GeometryTGeo.cxx.

◆ getOTOFChipPattern()

static const char * o2::iotof::GeometryTGeo::getOTOFChipPattern ( )
inlinestatic

Definition at line 54 of file GeometryTGeo.h.

◆ getOTOFLayerPattern()

static const char * o2::iotof::GeometryTGeo::getOTOFLayerPattern ( )
inlinestatic

Definition at line 51 of file GeometryTGeo.h.

◆ getOTOFModulePattern()

static const char * o2::iotof::GeometryTGeo::getOTOFModulePattern ( )
inlinestatic

Definition at line 53 of file GeometryTGeo.h.

◆ getOTOFNumberOfChips()

const int o2::iotof::GeometryTGeo::getOTOFNumberOfChips ( )
inline

Definition at line 50 of file GeometryTGeo.h.

◆ getOTOFSensorPattern()

static const char * o2::iotof::GeometryTGeo::getOTOFSensorPattern ( )
inlinestatic

Definition at line 55 of file GeometryTGeo.h.

◆ getOTOFStavePattern()

static const char * o2::iotof::GeometryTGeo::getOTOFStavePattern ( )
inlinestatic

Definition at line 52 of file GeometryTGeo.h.

◆ getSensorRefAlpha()

float o2::iotof::GeometryTGeo::getSensorRefAlpha ( int  chipId) const
inline

Definition at line 121 of file GeometryTGeo.h.

◆ getSensorX()

float o2::iotof::GeometryTGeo::getSensorX ( int  chipId) const
inline

Definition at line 127 of file GeometryTGeo.h.

◆ Instance()

GeometryTGeo * o2::iotof::GeometryTGeo::Instance ( )
static

Definition at line 387 of file GeometryTGeo.cxx.

◆ isTrackingFrameCached()

bool o2::iotof::GeometryTGeo::isTrackingFrameCached ( ) const
inline

Definition at line 118 of file GeometryTGeo.h.

◆ isValidIOTOFChipIndex()

bool o2::iotof::GeometryTGeo::isValidIOTOFChipIndex ( int  index) const
inline

Definition at line 98 of file GeometryTGeo.h.

Member Data Documentation

◆ mCacheRefAlpha

std::vector<float> o2::iotof::GeometryTGeo::mCacheRefAlpha
protected

cache for X of IOTOF

Definition at line 184 of file GeometryTGeo.h.

◆ mCacheRefX

std::vector<float> o2::iotof::GeometryTGeo::mCacheRefX
protected

Definition at line 183 of file GeometryTGeo.h.

◆ mLastChipIndex

int o2::iotof::GeometryTGeo::mLastChipIndex[2] {-1, -1}
protected

Definition at line 174 of file GeometryTGeo.h.

◆ mNumberOfChipsBTOF

int o2::iotof::GeometryTGeo::mNumberOfChipsBTOF = 0
protected

Definition at line 180 of file GeometryTGeo.h.

◆ mNumberOfChipsFTOF

int o2::iotof::GeometryTGeo::mNumberOfChipsFTOF = 0
protected

Definition at line 177 of file GeometryTGeo.h.

◆ mNumberOfChipsIOTOF

int o2::iotof::GeometryTGeo::mNumberOfChipsIOTOF[2] {}
protected

Definition at line 173 of file GeometryTGeo.h.

◆ mNumberOfChipsPerModuleIOTOF

int o2::iotof::GeometryTGeo::mNumberOfChipsPerModuleIOTOF[2] {}
protected

Definition at line 171 of file GeometryTGeo.h.

◆ mNumberOfChipsPerStaveIOTOF

int o2::iotof::GeometryTGeo::mNumberOfChipsPerStaveIOTOF[2] {}
protected

Definition at line 172 of file GeometryTGeo.h.

◆ mNumberOfModulesIOTOF

int o2::iotof::GeometryTGeo::mNumberOfModulesIOTOF[2] {}
protected

Definition at line 170 of file GeometryTGeo.h.

◆ mNumberOfStavesIOTOF

int o2::iotof::GeometryTGeo::mNumberOfStavesIOTOF[2] {}
protected

Definition at line 169 of file GeometryTGeo.h.

◆ sBTOFChipName

std::string o2::iotof::GeometryTGeo::sBTOFChipName = "BTOFChip"
staticprotected

Definition at line 165 of file GeometryTGeo.h.

◆ sBTOFLayerName

std::string o2::iotof::GeometryTGeo::sBTOFLayerName = "BTOFLayer"
staticprotected

Definition at line 164 of file GeometryTGeo.h.

◆ sBTOFSensorName

std::string o2::iotof::GeometryTGeo::sBTOFSensorName = "BTOFSensor"
staticprotected

Definition at line 166 of file GeometryTGeo.h.

◆ sensors

std::vector<int> o2::iotof::GeometryTGeo::sensors
protected

Definition at line 182 of file GeometryTGeo.h.

◆ sFTOFChipName

std::string o2::iotof::GeometryTGeo::sFTOFChipName = "FTOFChip"
staticprotected

Definition at line 160 of file GeometryTGeo.h.

◆ sFTOFLayerName

std::string o2::iotof::GeometryTGeo::sFTOFLayerName = "FTOFLayer"
staticprotected

Definition at line 159 of file GeometryTGeo.h.

◆ sFTOFSensorName

std::string o2::iotof::GeometryTGeo::sFTOFSensorName = "FTOFSensor"
staticprotected

Definition at line 161 of file GeometryTGeo.h.

◆ sIOTOFVolumeName

std::string o2::iotof::GeometryTGeo::sIOTOFVolumeName = "IOTOFV"
staticprotected

Definition at line 142 of file GeometryTGeo.h.

◆ sITOFChipName

std::string o2::iotof::GeometryTGeo::sITOFChipName = "ITOFChip"
staticprotected

Definition at line 148 of file GeometryTGeo.h.

◆ sITOFLayerName

std::string o2::iotof::GeometryTGeo::sITOFLayerName = "ITOFLayer"
staticprotected

Definition at line 145 of file GeometryTGeo.h.

◆ sITOFModuleName

std::string o2::iotof::GeometryTGeo::sITOFModuleName = "ITOFModule"
staticprotected

Definition at line 147 of file GeometryTGeo.h.

◆ sITOFSensorName

std::string o2::iotof::GeometryTGeo::sITOFSensorName = "ITOFSensor"
staticprotected

Definition at line 149 of file GeometryTGeo.h.

◆ sITOFStaveName

std::string o2::iotof::GeometryTGeo::sITOFStaveName = "ITOFStave"
staticprotected

Definition at line 146 of file GeometryTGeo.h.

◆ sOTOFChipName

std::string o2::iotof::GeometryTGeo::sOTOFChipName = "OTOFChip"
staticprotected

Definition at line 155 of file GeometryTGeo.h.

◆ sOTOFLayerName

std::string o2::iotof::GeometryTGeo::sOTOFLayerName = "OTOFLayer"
staticprotected

Definition at line 152 of file GeometryTGeo.h.

◆ sOTOFModuleName

std::string o2::iotof::GeometryTGeo::sOTOFModuleName = "OTOFModule"
staticprotected

Definition at line 154 of file GeometryTGeo.h.

◆ sOTOFSensorName

std::string o2::iotof::GeometryTGeo::sOTOFSensorName = "OTOFSensor"
staticprotected

Definition at line 156 of file GeometryTGeo.h.

◆ sOTOFStaveName

std::string o2::iotof::GeometryTGeo::sOTOFStaveName = "OTOFStave"
staticprotected

Definition at line 153 of file GeometryTGeo.h.


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