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

#include <GeometryTGeo.h>

Inherits o2::itsmft::GeometryTGeo.

Public Types

typedef o2::math_utils::Transform3D Mat3D
 
- 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=kFALSE, int loadTrans=0)
 
 ~GeometryTGeo () override=default
 Default destructor.
 
 GeometryTGeo (const GeometryTGeo &src)=delete
 
GeometryTGeooperator= (const GeometryTGeo &geom)=delete
 
void fillMatrixCache (int mask) override
 
void Build (int loadTrans=0) override
 Exract FCT parameters from TGeo.
 
void Print (Option_t *opt="") const
 
- Public Member Functions inherited from o2::itsmft::GeometryTGeo
 GeometryTGeo ()=default
 
 GeometryTGeo (const GeometryTGeo &src)=delete
 
GeometryTGeooperator= (const GeometryTGeo &geom)=delete
 
 GeometryTGeo (const o2::detectors::DetID &detid)
 
 ~GeometryTGeo () override=default
 
Int_t getNumberOfChips () const
 
bool isOwner () const
 
void setOwner (bool v)
 
- 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 chargetFCTVolPattern ()
 
static const chargetFCTInnerVolPattern ()
 
static const chargetFCTLayerPattern ()
 
static const chargetFCTChipPattern ()
 
static const chargetFCTSensorPattern ()
 
static const charcomposeSymNameFCT (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

Int_t mNumberOfLayers
 number of layers
 
- Protected Attributes inherited from o2::itsmft::GeometryTGeo
bool mOwner = true
 

Static Protected Attributes

static constexpr int MAXLAYERS = 15
 max number of active layers
 
static std::string sInnerVolumeName = "FCTInner"
 Mother inner volume name.
 
static std::string sVolumeName = "FCTV"
 Mother volume name.
 
static std::string sLayerName = "FCTLayer"
 Layer name.
 
static std::string sChipName = "FCTChip"
 Chip name.
 
static std::string sSensorName = "FCTSensor"
 Sensor 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)
 
- Protected Member Functions inherited from o2::itsmft::GeometryTGeo
 ClassDefOverride (GeometryTGeo, 1)
 is it owned by the singleton?
 

Detailed Description

GeometryTGeo is a simple interface class to TGeoManager. It is used in the simulation in order to query the TGeo FCT geometry. RS: In order to preserve the static character of the class but make it dynamically access geometry, we need to check in every method if the structures are initialized. To be converted to singleton at later stage.

Definition at line 44 of file GeometryTGeo.h.

Member Typedef Documentation

◆ Mat3D

Constructor & Destructor Documentation

◆ GeometryTGeo() [1/2]

GeometryTGeo::GeometryTGeo ( bool  build = kFALSE,
int  loadTrans = 0 
)

Definition at line 59 of file GeometryTGeo.cxx.

◆ ~GeometryTGeo()

o2::fct::GeometryTGeo::~GeometryTGeo ( )
overridedefault

Default destructor.

◆ GeometryTGeo() [2/2]

o2::fct::GeometryTGeo::GeometryTGeo ( const GeometryTGeo src)
delete

Member Function Documentation

◆ adopt()

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

◆ Build()

void GeometryTGeo::Build ( int  loadTrans = 0)
overridevirtual

Exract FCT parameters from TGeo.

Implements o2::itsmft::GeometryTGeo.

Definition at line 74 of file GeometryTGeo.cxx.

◆ composeSymNameChip()

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

Definition at line 96 of file GeometryTGeo.cxx.

◆ composeSymNameFCT()

static const char * o2::fct::GeometryTGeo::composeSymNameFCT ( Int_t  d)
inlinestatic

Definition at line 98 of file GeometryTGeo.h.

◆ composeSymNameLayer()

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

Definition at line 90 of file GeometryTGeo.cxx.

◆ composeSymNameSensor()

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

Definition at line 102 of file GeometryTGeo.cxx.

◆ fillMatrixCache()

void GeometryTGeo::fillMatrixCache ( int  mask)
overridevirtual

Implements o2::detectors::DetMatrixCache.

Definition at line 108 of file GeometryTGeo.cxx.

◆ getFCTChipPattern()

static const char * o2::fct::GeometryTGeo::getFCTChipPattern ( )
inlinestatic

Definition at line 95 of file GeometryTGeo.h.

◆ getFCTInnerVolPattern()

static const char * o2::fct::GeometryTGeo::getFCTInnerVolPattern ( )
inlinestatic

Definition at line 93 of file GeometryTGeo.h.

◆ getFCTLayerPattern()

static const char * o2::fct::GeometryTGeo::getFCTLayerPattern ( )
inlinestatic

Definition at line 94 of file GeometryTGeo.h.

◆ getFCTSensorPattern()

static const char * o2::fct::GeometryTGeo::getFCTSensorPattern ( )
inlinestatic

Definition at line 96 of file GeometryTGeo.h.

◆ getFCTVolPattern()

static const char * o2::fct::GeometryTGeo::getFCTVolPattern ( )
inlinestatic

Definition at line 92 of file GeometryTGeo.h.

◆ Instance()

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

Definition at line 55 of file GeometryTGeo.h.

◆ operator=()

GeometryTGeo & o2::fct::GeometryTGeo::operator= ( const GeometryTGeo geom)
delete

◆ Print()

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

Member Data Documentation

◆ MAXLAYERS

constexpr int o2::fct::GeometryTGeo::MAXLAYERS = 15
staticconstexprprotected

max number of active layers

Definition at line 104 of file GeometryTGeo.h.

◆ mNumberOfLayers

Int_t o2::fct::GeometryTGeo::mNumberOfLayers
protected

number of layers

Definition at line 106 of file GeometryTGeo.h.

◆ sChipName

std::string GeometryTGeo::sChipName = "FCTChip"
staticprotected

Chip name.

Sensor name.

Definition at line 110 of file GeometryTGeo.h.

◆ sInnerVolumeName

std::string GeometryTGeo::sInnerVolumeName = "FCTInner"
staticprotected

Mother inner volume name.

Definition at line 107 of file GeometryTGeo.h.

◆ sLayerName

std::string GeometryTGeo::sLayerName = "FCTLayer"
staticprotected

Layer name.

Definition at line 109 of file GeometryTGeo.h.

◆ sSensorName

std::string GeometryTGeo::sSensorName = "FCTSensor"
staticprotected

Sensor name.

Definition at line 112 of file GeometryTGeo.h.

◆ sVolumeName

std::string GeometryTGeo::sVolumeName = "FCTV"
staticprotected

Mother volume name.

Definition at line 108 of file GeometryTGeo.h.


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