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

#include <GeometryTGeo.h>

Inherits o2::detectors::DetMatrixCache.

Public Types

using Mat3D = o2::math_utils::Transform3D
 
- Public Types inherited from o2::detectors::DetMatrixCache
typedef o2::math_utils::Transform3D Mat3D
 
typedef o2::math_utils::Rotation2Df_t Rot2D
 

Public Member Functions

 GeometryTGeo (bool build=false, int loadTrans=0)
 
 ~GeometryTGeo ()
 
void Build (int loadTrans)
 
void fillMatrixCache (int mask)
 
int extractNumberOfDiscs (int dir)
 
int extractNumberOfChips (int dir, int layer)
 
int extractChipId (std::string const volName)
 
void extractStaveChipId (std::string const volName, int &stave, int &chip)
 
void extractChipIds (std::string const volName, int &direction, int &layer, int &stave, int &chip)
 
int getChipIndex (int dir, int disc, int stave, int chip) const
 
int getLayer (int chipIdx) const
 
std::string getMatrixPath (int direction, int layer, int stave, int chip) const
 
int getNumberOfChips () const
 
int getNumberOfLayers () const
 
int getNumberOfStaves (int absDisc) const
 
int getSubDetID (int) const
 
int getStave (int chipIdx) const
 
int getChipOnStave (int chipIdx) const
 
int getStaveIdxDisc (int absDisc) const
 
int getChipIdxStave (int absStave) const
 
bool isOwner () const
 Exract FT3 parameters from TGeo.
 
void setOwner (bool v)
 
void Print (Option_t *opt="") 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 void adopt (GeometryTGeo *raw)
 
static const chargetFT3VolPattern ()
 
static const chargetFT3InnerVolPattern ()
 
static const chargetFT3LayerPattern ()
 
static const chargetFT3ChipPattern ()
 
static const chargetFT3SensorPattern ()
 
static const chargetFT3PassivePattern ()
 
static const charcomposeSymNameFT3 (Int_t d)
 
static const charcomposeSymNameLayer (Int_t d, Int_t lr)
 
static const charcomposeSymNameChip (Int_t d, Int_t lr)
 
static const charcomposeSymNameSensor (Int_t d, Int_t lr)
 

Protected Attributes

std::vector< float > mCacheRefXDiscs
 
std::vector< float > mCacheRefAlphaDiscs
 cache for X of ML and OT
 
std::vector< intmNumberOfDiscs
 cache for sensor ref alpha ML and OT
 
std::vector< intmNumberOfStavesPerDisc
 
std::vector< intmStaveIdxDisc
 TODO; in principle redundant?
 
std::vector< intmChipIdxStave
 Index of first global stave Id for each disc.
 
std::vector< intmNumberOfChipsPerDisc
 Index of first chup for each global stave.
 
bool mOwner = true
 

Static Protected Attributes

static std::string sInnerVolumeName = "FT3Inner"
 Mother inner volume name.
 
static std::string sVolumeName = "FT3V"
 Mother volume name.
 
static std::string sLayerName = "FT3Layer"
 Layer name.
 
static std::string sChipName = "FT3Chip"
 Chip name.
 
static std::string sSensorName = "FT3Sensor"
 Sensor name.
 
static std::string sPassiveName = "Passive"
 Passive material name.
 

Additional Inherited Members

- 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 31 of file GeometryTGeo.h.

Member Typedef Documentation

◆ Mat3D

Constructor & Destructor Documentation

◆ GeometryTGeo()

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

Definition at line 61 of file GeometryTGeo.cxx.

◆ ~GeometryTGeo()

o2::ft3::GeometryTGeo::~GeometryTGeo ( )

Definition at line 53 of file GeometryTGeo.cxx.

Member Function Documentation

◆ adopt()

static void o2::ft3::GeometryTGeo::adopt ( GeometryTGeo raw)
static

◆ Build()

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

Definition at line 76 of file GeometryTGeo.cxx.

◆ composeSymNameChip()

const char * o2::ft3::GeometryTGeo::composeSymNameChip ( Int_t  d,
Int_t  lr 
)
static

Definition at line 174 of file GeometryTGeo.cxx.

◆ composeSymNameFT3()

static const char * o2::ft3::GeometryTGeo::composeSymNameFT3 ( Int_t  d)
inlinestatic

Definition at line 89 of file GeometryTGeo.h.

◆ composeSymNameLayer()

static const char * o2::ft3::GeometryTGeo::composeSymNameLayer ( Int_t  d,
Int_t  lr 
)
static

◆ composeSymNameSensor()

const char * o2::ft3::GeometryTGeo::composeSymNameSensor ( Int_t  d,
Int_t  lr 
)
static

Definition at line 180 of file GeometryTGeo.cxx.

◆ extractChipId()

int o2::ft3::GeometryTGeo::extractChipId ( std::string const  volName)

Definition at line 217 of file GeometryTGeo.cxx.

◆ extractChipIds()

void o2::ft3::GeometryTGeo::extractChipIds ( std::string const  volName,
int direction,
int layer,
int stave,
int chip 
)

Definition at line 238 of file GeometryTGeo.cxx.

◆ extractNumberOfChips()

int o2::ft3::GeometryTGeo::extractNumberOfChips ( int  dir,
int  layer 
)

Definition at line 195 of file GeometryTGeo.cxx.

◆ extractNumberOfDiscs()

int o2::ft3::GeometryTGeo::extractNumberOfDiscs ( int  dir)

Definition at line 186 of file GeometryTGeo.cxx.

◆ extractStaveChipId()

void o2::ft3::GeometryTGeo::extractStaveChipId ( std::string const  volName,
int stave,
int chip 
)

Definition at line 225 of file GeometryTGeo.cxx.

◆ fillMatrixCache()

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

Implements o2::detectors::DetMatrixCache.

Definition at line 321 of file GeometryTGeo.cxx.

◆ getChipIdxStave()

int o2::ft3::GeometryTGeo::getChipIdxStave ( int  absStave) const
inline

Definition at line 75 of file GeometryTGeo.h.

◆ getChipIndex()

int o2::ft3::GeometryTGeo::getChipIndex ( int  dir,
int  disc,
int  stave,
int  chip 
) const

Definition at line 256 of file GeometryTGeo.cxx.

◆ getChipOnStave()

int o2::ft3::GeometryTGeo::getChipOnStave ( int  chipIdx) const

Definition at line 285 of file GeometryTGeo.cxx.

◆ getFT3ChipPattern()

static const char * o2::ft3::GeometryTGeo::getFT3ChipPattern ( )
inlinestatic

Definition at line 85 of file GeometryTGeo.h.

◆ getFT3InnerVolPattern()

static const char * o2::ft3::GeometryTGeo::getFT3InnerVolPattern ( )
inlinestatic

Definition at line 83 of file GeometryTGeo.h.

◆ getFT3LayerPattern()

static const char * o2::ft3::GeometryTGeo::getFT3LayerPattern ( )
inlinestatic

Definition at line 84 of file GeometryTGeo.h.

◆ getFT3PassivePattern()

static const char * o2::ft3::GeometryTGeo::getFT3PassivePattern ( )
inlinestatic

Definition at line 87 of file GeometryTGeo.h.

◆ getFT3SensorPattern()

static const char * o2::ft3::GeometryTGeo::getFT3SensorPattern ( )
inlinestatic

Definition at line 86 of file GeometryTGeo.h.

◆ getFT3VolPattern()

static const char * o2::ft3::GeometryTGeo::getFT3VolPattern ( )
inlinestatic

Definition at line 82 of file GeometryTGeo.h.

◆ getLayer()

int o2::ft3::GeometryTGeo::getLayer ( int  chipIdx) const

Definition at line 264 of file GeometryTGeo.cxx.

◆ getMatrixPath()

std::string o2::ft3::GeometryTGeo::getMatrixPath ( int  direction,
int  layer,
int  stave,
int  chip 
) const

Definition at line 292 of file GeometryTGeo.cxx.

◆ getNumberOfChips()

int o2::ft3::GeometryTGeo::getNumberOfChips ( ) const
inline

Definition at line 68 of file GeometryTGeo.h.

◆ getNumberOfLayers()

int o2::ft3::GeometryTGeo::getNumberOfLayers ( ) const
inline

Definition at line 69 of file GeometryTGeo.h.

◆ getNumberOfStaves()

int o2::ft3::GeometryTGeo::getNumberOfStaves ( int  absDisc) const
inline

Definition at line 70 of file GeometryTGeo.h.

◆ getStave()

int o2::ft3::GeometryTGeo::getStave ( int  chipIdx) const

Definition at line 274 of file GeometryTGeo.cxx.

◆ getStaveIdxDisc()

int o2::ft3::GeometryTGeo::getStaveIdxDisc ( int  absDisc) const
inline

Definition at line 74 of file GeometryTGeo.h.

◆ getSubDetID()

int o2::ft3::GeometryTGeo::getSubDetID ( int  ) const
inline

Definition at line 71 of file GeometryTGeo.h.

◆ Instance()

static GeometryTGeo * o2::ft3::GeometryTGeo::Instance ( )
inlinestatic

Definition at line 46 of file GeometryTGeo.h.

◆ isOwner()

bool o2::ft3::GeometryTGeo::isOwner ( ) const
inline

Exract FT3 parameters from TGeo.

Definition at line 78 of file GeometryTGeo.h.

◆ Print()

void o2::ft3::GeometryTGeo::Print ( Option_t *  opt = "") const

Definition at line 397 of file GeometryTGeo.cxx.

◆ setOwner()

void o2::ft3::GeometryTGeo::setOwner ( bool  v)
inline

Definition at line 79 of file GeometryTGeo.h.

Member Data Documentation

◆ mCacheRefAlphaDiscs

std::vector<float> o2::ft3::GeometryTGeo::mCacheRefAlphaDiscs
protected

cache for X of ML and OT

Definition at line 103 of file GeometryTGeo.h.

◆ mCacheRefXDiscs

std::vector<float> o2::ft3::GeometryTGeo::mCacheRefXDiscs
protected

Definition at line 102 of file GeometryTGeo.h.

◆ mChipIdxStave

std::vector<int> o2::ft3::GeometryTGeo::mChipIdxStave
protected

Index of first global stave Id for each disc.

Definition at line 107 of file GeometryTGeo.h.

◆ mNumberOfChipsPerDisc

std::vector<int> o2::ft3::GeometryTGeo::mNumberOfChipsPerDisc
protected

Index of first chup for each global stave.

Definition at line 108 of file GeometryTGeo.h.

◆ mNumberOfDiscs

std::vector<int> o2::ft3::GeometryTGeo::mNumberOfDiscs
protected

cache for sensor ref alpha ML and OT

Number Discs per direction

Definition at line 104 of file GeometryTGeo.h.

◆ mNumberOfStavesPerDisc

std::vector<int> o2::ft3::GeometryTGeo::mNumberOfStavesPerDisc
protected

Definition at line 105 of file GeometryTGeo.h.

◆ mOwner

bool o2::ft3::GeometryTGeo::mOwner = true
protected

Definition at line 112 of file GeometryTGeo.h.

◆ mStaveIdxDisc

std::vector<int> o2::ft3::GeometryTGeo::mStaveIdxDisc
protected

TODO; in principle redundant?

Definition at line 106 of file GeometryTGeo.h.

◆ sChipName

std::string o2::ft3::GeometryTGeo::sChipName = "FT3Chip"
staticprotected

Chip name.

Definition at line 98 of file GeometryTGeo.h.

◆ sInnerVolumeName

std::string o2::ft3::GeometryTGeo::sInnerVolumeName = "FT3Inner"
staticprotected

Mother inner volume name.

Definition at line 95 of file GeometryTGeo.h.

◆ sLayerName

std::string o2::ft3::GeometryTGeo::sLayerName = "FT3Layer"
staticprotected

Layer name.

Definition at line 97 of file GeometryTGeo.h.

◆ sPassiveName

std::string o2::ft3::GeometryTGeo::sPassiveName = "Passive"
staticprotected

Passive material name.

Definition at line 100 of file GeometryTGeo.h.

◆ sSensorName

std::string o2::ft3::GeometryTGeo::sSensorName = "FT3Sensor"
staticprotected

Sensor name.

Definition at line 99 of file GeometryTGeo.h.

◆ sVolumeName

std::string o2::ft3::GeometryTGeo::sVolumeName = "FT3V"
staticprotected

Mother volume name.

Definition at line 96 of file GeometryTGeo.h.


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