![]() |
Project
|
#include <GeometryTGeo.h>
Inherits o2::detectors::DetMatrixCache.
Public Types | |
using | Mat3D = o2::math_utils::Transform3D |
![]() | |
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 | getNumberOfChips () const |
int | extractNumberOfLayersMLOT () |
Determines the number of active parts in the Geometry. | |
int | extractNumberOfLayersVD () const |
int | extractNumberOfPetalsVD () const |
int | extractNumberOfActivePartsVD () const |
int | extractNumberOfDisksVD () const |
int | extractNumberOfChipsPerPetalVD () const |
int | extractNumberOfStavesMLOT (int lay) const |
int | extractVolumeCopy (const char *name, const char *prefix) const |
Extract number following the prefix in the name string. | |
int | getNumberOfLayersMLOT () const |
int | getNumberOffActivePartsVD () const |
bool | isOwner () const |
void | setOwner (bool v) |
void | Print (Option_t *opt="") const |
void | PrintChipID (int index, int subDetID, int petalcase, int disk, int lay, int stave, int indexRetrieved) const |
int | getLayer (int index) const |
int | getStave (int index) const |
int | getSubDetID (int index) const |
int | getPetalCase (int index) const |
int | getDisk (int index) const |
int | getChipIndex (int subDetID, int petalcase, int disk, int lay, int stave) const |
bool | getChipID (int index, int &subDetID, int &petalcase, int &disk, int &lay, int &stave) const |
int | getLastChipIndex (int lay) const |
int | getFirstChipIndex (int lay, int petalcase, int subDetID) const |
TGeoHMatrix * | extractMatrixSensor (int index) const |
TString | getMatrixPath (int index) const |
![]() | |
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 | |
DetMatrixCache & | operator= (const DetMatrixCache &geom)=delete |
const o2::detectors::DetID & | getDetID () const |
const char * | getName () const |
const MatrixCache< Mat3D > & | getCacheT2L () const |
const MatrixCache< Mat3D > & | getCacheT2G () const |
const MatrixCache< Mat3D > & | getCacheL2G () const |
const MatrixCache< Rot2D > & | getCacheT2GRot () const |
const Mat3D & | getMatrixT2L (int sensID) const |
const Mat3D & | getMatrixT2G (int sensID) const |
const Mat3D & | getMatrixL2G (int sensID) const |
const Rot2D & | getMatrixT2GRot (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 GeometryTGeo * | Instance () |
static const char * | getTRKVolPattern () |
static const char * | getTRKLayerPattern () |
static const char * | getTRKPetalPattern () |
static const char * | getTRKPetalDiskPattern () |
static const char * | getTRKPetalLayerPattern () |
static const char * | getTRKStavePattern () |
static const char * | getTRKChipPattern () |
static const char * | getTRKSensorPattern () |
static const char * | getTRKWrapVolPattern () |
static const char * | composeSymNameTRK (int d) |
static const char * | composeSymNameLayer (int d, int layer) |
static const char * | composeSymNameStave (int d, int layer) |
static const char * | composeSymNameChip (int d, int lr) |
static const char * | composeSymNameSensor (int d, int layer) |
Protected Attributes | |
Int_t | mNumberOfLayersMLOT |
number of layers | |
Int_t | mNumberOfActivePartsVD |
number of layers | |
Int_t | mNumberOfLayersVD |
number of layers | |
Int_t | mNumberOfPetalsVD |
number of Petals = chip in each VD layer | |
Int_t | mNumberOfDisksVD |
number of Disks = 6 | |
std::vector< int > | mLastChipIndex |
max ID of the detctor in the petal(VD) or layer(MLOT) | |
std::vector< int > | mLastChipIndexVD |
max ID of the detctor in the layer for the VD | |
std::vector< int > | mLastChipIndexMLOT |
max ID of the detctor in the layer for the MLOT | |
std::vector< int > | mNumberOfChipsPerLayerVD |
number of chips per layer VD ( = number of petals) | |
std::vector< int > | mNumberOfChipsPerLayerMLOT |
number of chips per layer MLOT ( = 1 for the moment) | |
std::vector< int > | mNumbersOfChipPerDiskVD |
numbersOfChipPerDiskVD | |
std::vector< int > | mNumberOfChipsPerPetalVD |
numbersOfChipPerPetalVD | |
std::vector< int > | mNumberOfStaves |
Number Of Staves per layer in ML/OT. | |
std::array< char, MAXLAYERS > | mLayerToWrapper |
Layer to wrapper correspondence. | |
bool | mOwner = true |
Static Protected Attributes | |
static constexpr int | MAXLAYERS = 20 |
max number of active layers | |
static std::string | sVolumeName = "TRKV" |
static std::string | sLayerName = "TRKLayer" |
static std::string | sPetalName = "PETALCASE" |
static std::string | sPetalDiskName = "DISK" |
static std::string | sPetalLayerName = "LAYER" |
static std::string | sStaveName = "TRKStave" |
static std::string | sChipName = "TRKChip" |
static std::string | sSensorName = "TRKSensor" |
static std::string | sWrapperVolumeName = "TRKUWrapVol" |
Wrapper volume name. | |
Additional Inherited Members | |
![]() | |
o2::detectors::DetID | mDetID |
detector ID | |
int | mSize = 0 |
prebooked number of sensors | |
MatrixCache< Mat3D > | mL2G |
Local to Global matrices. | |
MatrixCache< Mat3D > | mT2L |
Tracking to Local matrices. | |
MatrixCache< Mat3D > | mT2G |
Tracking to Global matrices (general case) | |
MatrixCache< Rot2D > | mT2GRot |
Tracking to Global matrices in case of barrel (simple rotation) | |
Definition at line 22 of file GeometryTGeo.h.
Definition at line 25 of file GeometryTGeo.h.
o2::trk::GeometryTGeo::GeometryTGeo | ( | bool | build = false , |
int | loadTrans = 0 |
||
) |
Definition at line 42 of file GeometryTGeo.cxx.
o2::trk::GeometryTGeo::~GeometryTGeo | ( | ) |
Definition at line 35 of file GeometryTGeo.cxx.
ML and OT are part of TRK as the same detector, without disks
filling the information for the VD
filling the information for the MLOT
temporary, number of chips = number of staves and active parts
Definition at line 54 of file GeometryTGeo.cxx.
Definition at line 362 of file GeometryTGeo.cxx.
Definition at line 352 of file GeometryTGeo.cxx.
Definition at line 367 of file GeometryTGeo.cxx.
Definition at line 357 of file GeometryTGeo.cxx.
Definition at line 118 of file GeometryTGeo.h.
TGeoHMatrix * o2::trk::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 quering the TGeoManager
Definition at line 283 of file GeometryTGeo.cxx.
int o2::trk::GeometryTGeo::extractNumberOfActivePartsVD | ( | ) | const |
Definition at line 434 of file GeometryTGeo.cxx.
int o2::trk::GeometryTGeo::extractNumberOfChipsPerPetalVD | ( | ) | const |
Definition at line 554 of file GeometryTGeo.cxx.
int o2::trk::GeometryTGeo::extractNumberOfDisksVD | ( | ) | const |
Definition at line 464 of file GeometryTGeo.cxx.
int o2::trk::GeometryTGeo::extractNumberOfLayersMLOT | ( | ) |
Determines the number of active parts in the Geometry.
Definition at line 387 of file GeometryTGeo.cxx.
int o2::trk::GeometryTGeo::extractNumberOfLayersVD | ( | ) | const |
Definition at line 524 of file GeometryTGeo.cxx.
int o2::trk::GeometryTGeo::extractNumberOfPetalsVD | ( | ) | const |
Definition at line 494 of file GeometryTGeo.cxx.
layer node
Definition at line 584 of file GeometryTGeo.cxx.
Extract number following the prefix in the name string.
Definition at line 375 of file GeometryTGeo.cxx.
here get the matrices for det ID between 0 and 257 (mSize = 258 at the moment)
Implements o2::detectors::DetMatrixCache.
Definition at line 328 of file GeometryTGeo.cxx.
bool o2::trk::GeometryTGeo::getChipID | ( | int | index, |
int & | subDetID, | ||
int & | petalcase, | ||
int & | disk, | ||
int & | lay, | ||
int & | stave | ||
) | const |
This routine computes subDetID, petal, disk, layer, stave given the chip index number /// TODO: copute also from chip when chips will be available
int | index The chip index number, starting from 0 |
int | subDetID The subdetector ID, 0 for VD, 1 for MLOT |
int | petalcase The petal case number for VD, from 0 to 3 |
int | disk The disk number for VD, from 0 to 5 |
int | lay The layer number. Starting from 0 both for VD and MLOT |
int | stave The stave number for MLOT. Starting from 0 |
Definition at line 211 of file GeometryTGeo.cxx.
int o2::trk::GeometryTGeo::getChipIndex | ( | int | subDetID, |
int | petalcase, | ||
int | disk, | ||
int | lay, | ||
int | stave | ||
) | const |
This routine computes the chip index number from the subDetID, petal, disk, layer, stave /// TODO: retrieve also from chip when chips will be available in substave
int | subDetID The subdetector ID, 0 for VD, 1 for MLOT |
int | petalcase The petal case number for VD, from 0 to 3 |
int | disk The disk number for VD, from 0 to 5 |
int | lay The layer number. Starting from 0 both for VD and MLOT |
int | stave The stave number for MLOT. Starting from 0 |
Definition at line 196 of file GeometryTGeo.cxx.
Get the first chip index of the active petal (VD) or layer (MLOT)
Definition at line 101 of file GeometryTGeo.h.
Definition at line 100 of file GeometryTGeo.h.
VD
disks
MLOT
numeration of MLOT layesrs starting from 1
-1 if not found
Definition at line 143 of file GeometryTGeo.cxx.
TString o2::trk::GeometryTGeo::getMatrixPath | ( | int | index | ) | const |
dummy path, to be replaced
Definition at line 223 of file GeometryTGeo.cxx.
|
inline |
Definition at line 53 of file GeometryTGeo.h.
|
inline |
Definition at line 68 of file GeometryTGeo.h.
|
inline |
Definition at line 67 of file GeometryTGeo.h.
Definition at line 125 of file GeometryTGeo.cxx.
not found
Definition at line 114 of file GeometryTGeo.cxx.
|
inlinestatic |
Definition at line 49 of file GeometryTGeo.h.
|
inlinestatic |
Definition at line 44 of file GeometryTGeo.h.
|
inlinestatic |
Definition at line 46 of file GeometryTGeo.h.
|
inlinestatic |
Definition at line 47 of file GeometryTGeo.h.
|
inlinestatic |
Definition at line 45 of file GeometryTGeo.h.
|
inlinestatic |
Definition at line 50 of file GeometryTGeo.h.
|
inlinestatic |
Definition at line 48 of file GeometryTGeo.h.
|
inlinestatic |
Definition at line 43 of file GeometryTGeo.h.
|
inlinestatic |
Definition at line 51 of file GeometryTGeo.h.
|
inlinestatic |
Definition at line 36 of file GeometryTGeo.h.
|
inline |
Definition at line 70 of file GeometryTGeo.h.
void o2::trk::GeometryTGeo::Print | ( | Option_t * | opt = "" | ) | const |
Definition at line 626 of file GeometryTGeo.cxx.
void o2::trk::GeometryTGeo::PrintChipID | ( | int | index, |
int | subDetID, | ||
int | petalcase, | ||
int | disk, | ||
int | lay, | ||
int | stave, | ||
int | indexRetrieved | ||
) | const |
Definition at line 613 of file GeometryTGeo.cxx.
|
inline |
Definition at line 71 of file GeometryTGeo.h.
|
staticconstexprprotected |
max number of active layers
Definition at line 128 of file GeometryTGeo.h.
|
protected |
max ID of the detctor in the petal(VD) or layer(MLOT)
Definition at line 145 of file GeometryTGeo.h.
|
protected |
max ID of the detctor in the layer for the MLOT
Definition at line 147 of file GeometryTGeo.h.
|
protected |
max ID of the detctor in the layer for the VD
Definition at line 146 of file GeometryTGeo.h.
Layer to wrapper correspondence.
Definition at line 153 of file GeometryTGeo.h.
|
protected |
number of layers
Definition at line 141 of file GeometryTGeo.h.
|
protected |
number of chips per layer MLOT ( = 1 for the moment)
Definition at line 149 of file GeometryTGeo.h.
|
protected |
number of chips per layer VD ( = number of petals)
Definition at line 148 of file GeometryTGeo.h.
|
protected |
numbersOfChipPerPetalVD
Definition at line 151 of file GeometryTGeo.h.
|
protected |
number of Disks = 6
Definition at line 144 of file GeometryTGeo.h.
|
protected |
number of layers
Definition at line 140 of file GeometryTGeo.h.
|
protected |
number of layers
Definition at line 142 of file GeometryTGeo.h.
|
protected |
number of Petals = chip in each VD layer
Definition at line 143 of file GeometryTGeo.h.
|
protected |
Number Of Staves per layer in ML/OT.
Definition at line 152 of file GeometryTGeo.h.
|
protected |
numbersOfChipPerDiskVD
Definition at line 150 of file GeometryTGeo.h.
|
protected |
Definition at line 155 of file GeometryTGeo.h.
|
staticprotected |
Definition at line 136 of file GeometryTGeo.h.
|
staticprotected |
Definition at line 131 of file GeometryTGeo.h.
|
staticprotected |
Definition at line 133 of file GeometryTGeo.h.
|
staticprotected |
Definition at line 134 of file GeometryTGeo.h.
|
staticprotected |
Definition at line 132 of file GeometryTGeo.h.
|
staticprotected |
Definition at line 137 of file GeometryTGeo.h.
|
staticprotected |
Definition at line 135 of file GeometryTGeo.h.
|
staticprotected |
Definition at line 130 of file GeometryTGeo.h.
|
staticprotected |
Wrapper volume name.
Wrapper volume name, not implemented at the moment.
Definition at line 138 of file GeometryTGeo.h.