Project
Loading...
Searching...
No Matches
o2::mft::AlignSensorHelper Class Reference

#include <AlignSensorHelper.h>

Public Member Functions

 AlignSensorHelper ()
 constructor with a pointer to the geometry
 
virtual ~AlignSensorHelper ()=default
 default destructor
 
void setGeometry ()
 set pointer to geometry that should already have done fillMatrixCache()
 
bool setSensor (const int chipIndex)
 set the studied sensor
 
void setSensorOnlyInfo (const int chipIndex)
 set the studied sensor
 
UShort_t chipIndexOnLadder () const
 return sensor index within the ladder [0, 4]
 
UShort_t chipIndexInMft () const
 return sensor sw index within the MFT [0, 935]
 
UShort_t half () const
 return the half number to which belongs the sensor
 
UShort_t disk () const
 return the disk number to which belongs the sensor
 
UShort_t layer () const
 return the layer number to which belongs the sensor
 
UShort_t zone () const
 return the zone to which belongs the sensor
 
UShort_t connector () const
 return the connector to which the ladder is plugged
 
UShort_t transceiver () const
 return the transceiver on the RU for this sensor
 
Int_t sensorUid () const
 return the ALICE global unique id of the sensor
 
TString geoSymbolicName ()
 return the geo symbolic name for this sensor
 
double translateX () const
 return the x component of the translation in the sensor transform
 
double translateY () const
 return the y component of the translation in the sensor transform
 
double translateZ () const
 return the z component of the translation in the sensor transform
 
double angleRx () const
 return the rotation angle w.r.t. global x-axis in the sensor transform
 
double angleRy () const
 return the rotation angle w.r.t. global y-axis in the sensor transform
 
double angleRz () const
 return the rotation angle w.r.t. global z-axis in the sensor transform
 
double sinRx () const
 return the sin, cos of the rotation angle w.r.t. x-axis
 
double cosRx () const
 
double sinRy () const
 return the sin, cos of the rotation angle w.r.t. y-axis
 
double cosRy () const
 
double sinRz () const
 return the sin, cos of the rotation angle w.r.t. z-axis
 
double cosRz () const
 
bool isTransformExtracted () const
 return the status of the sensor transform extraction
 
std::stringstream getSensorFullName (bool wSymName=true)
 return a stringstream filled with the sensor info
 

Protected Member Functions

void setSensorUid (const int chipIndex)
 set the ALICE global unique id of the sensor
 
void builSymNames ()
 build array of symbolic names of all sensors
 
int getChipIdGeoFromRO (const int chipIdRO)
 return chip id Geo from a given chip id RO
 
void setSymName ()
 set the symbolic name of this sensor in the geometry
 
void extractSensorTransform ()
 init the matrix that stores the sensor transform L2G and extract its components
 
void resetSensorTransformInfo ()
 reset all sensor transform related variables
 
 ClassDef (AlignSensorHelper, 0)
 

Protected Attributes

o2::mft::GeometryTGeomGeometry = nullptr
 MFT geometry.
 
UShort_t mChipIndexOnLadder = 0
 sensor index within the ladder [0, 4]
 
UShort_t mChipIndexInMft = 0
 sensor sw index within the MFT [0, 935]
 
UShort_t mConnector = 0
 connector index to which the ladder is plugged in the zone [0, 4]
 
UShort_t mTransceiver = 0
 transceiver id to which the sensor is connected in the zone [0, 24]
 
UShort_t mLayer = 0
 layer id [0, 9]
 
UShort_t mZone = 0
 zone id [0,3]
 
UShort_t mDisk = 0
 disk id [0, 4]
 
UShort_t mHalf = 0
 half id [0, 1]
 
Int_t mChipUniqueId = 0
 ALICE global unique id of the sensor.
 
TGeoHMatrix mTransform
 sensor transformation matrix L2G
 
o2::math_utils::Point3D< double > mTranslation
 coordinates of the translation between the local system origin (the center of the sensor) and the global origin
 
std::array< TString, mNumberOfSensorsmSymNames
 
double mRx = 0
 

‍array of symbolic names of all sensors


 
double mRy = 0
 rotation angle aroung global y-axis (radian)
 
double mRz = 0
 rotation angle aroung global z-axis (radian)
 
double mSinRx = 0
 
double mCosRx = 0
 
double mSinRy = 0
 
double mCosRy = 0
 
double mSinRz = 0
 
double mCosRz = 0
 
TString mGeoSymbolicName
 symbolic name of this sensor in the geometry
 
bool mIsTransformExtracted = false
 boolean used to check if the sensor transform was successfully extracted from geometry
 

Static Protected Attributes

static constexpr int mNumberOfSensors = o2::itsmft::ChipMappingMFT::NChips
 Total number of sensors (detection elements) in the MFT.
 

Detailed Description

Definition at line 37 of file AlignSensorHelper.h.

Constructor & Destructor Documentation

◆ AlignSensorHelper()

AlignSensorHelper::AlignSensorHelper ( )

constructor with a pointer to the geometry

Definition at line 29 of file AlignSensorHelper.cxx.

◆ ~AlignSensorHelper()

virtual o2::mft::AlignSensorHelper::~AlignSensorHelper ( )
virtualdefault

default destructor

Member Function Documentation

◆ angleRx()

double o2::mft::AlignSensorHelper::angleRx ( ) const
inline

return the rotation angle w.r.t. global x-axis in the sensor transform

Definition at line 95 of file AlignSensorHelper.h.

◆ angleRy()

double o2::mft::AlignSensorHelper::angleRy ( ) const
inline

return the rotation angle w.r.t. global y-axis in the sensor transform

Definition at line 98 of file AlignSensorHelper.h.

◆ angleRz()

double o2::mft::AlignSensorHelper::angleRz ( ) const
inline

return the rotation angle w.r.t. global z-axis in the sensor transform

Definition at line 101 of file AlignSensorHelper.h.

◆ builSymNames()

void AlignSensorHelper::builSymNames ( )
protected

build array of symbolic names of all sensors

Definition at line 122 of file AlignSensorHelper.cxx.

◆ chipIndexInMft()

UShort_t o2::mft::AlignSensorHelper::chipIndexInMft ( ) const
inline

return sensor sw index within the MFT [0, 935]

Definition at line 59 of file AlignSensorHelper.h.

◆ chipIndexOnLadder()

UShort_t o2::mft::AlignSensorHelper::chipIndexOnLadder ( ) const
inline

return sensor index within the ladder [0, 4]

Definition at line 56 of file AlignSensorHelper.h.

◆ ClassDef()

o2::mft::AlignSensorHelper::ClassDef ( AlignSensorHelper  ,
 
)
protected

◆ connector()

UShort_t o2::mft::AlignSensorHelper::connector ( ) const
inline

return the connector to which the ladder is plugged

Definition at line 74 of file AlignSensorHelper.h.

◆ cosRx()

double o2::mft::AlignSensorHelper::cosRx ( ) const
inline

Definition at line 105 of file AlignSensorHelper.h.

◆ cosRy()

double o2::mft::AlignSensorHelper::cosRy ( ) const
inline

Definition at line 109 of file AlignSensorHelper.h.

◆ cosRz()

double o2::mft::AlignSensorHelper::cosRz ( ) const
inline

Definition at line 113 of file AlignSensorHelper.h.

◆ disk()

UShort_t o2::mft::AlignSensorHelper::disk ( ) const
inline

return the disk number to which belongs the sensor

Definition at line 65 of file AlignSensorHelper.h.

◆ extractSensorTransform()

void AlignSensorHelper::extractSensorTransform ( )
protected

init the matrix that stores the sensor transform L2G and extract its components

Definition at line 192 of file AlignSensorHelper.cxx.

◆ geoSymbolicName()

TString o2::mft::AlignSensorHelper::geoSymbolicName ( )
inline

return the geo symbolic name for this sensor

Definition at line 83 of file AlignSensorHelper.h.

◆ getChipIdGeoFromRO()

int AlignSensorHelper::getChipIdGeoFromRO ( const int  chipIdRO)
protected

return chip id Geo from a given chip id RO

Definition at line 160 of file AlignSensorHelper.cxx.

◆ getSensorFullName()

std::stringstream AlignSensorHelper::getSensorFullName ( bool  wSymName = true)

return a stringstream filled with the sensor info

Definition at line 93 of file AlignSensorHelper.cxx.

◆ half()

UShort_t o2::mft::AlignSensorHelper::half ( ) const
inline

return the half number to which belongs the sensor

Definition at line 62 of file AlignSensorHelper.h.

◆ isTransformExtracted()

bool o2::mft::AlignSensorHelper::isTransformExtracted ( ) const
inline

return the status of the sensor transform extraction

Definition at line 116 of file AlignSensorHelper.h.

◆ layer()

UShort_t o2::mft::AlignSensorHelper::layer ( ) const
inline

return the layer number to which belongs the sensor

Definition at line 68 of file AlignSensorHelper.h.

◆ resetSensorTransformInfo()

void AlignSensorHelper::resetSensorTransformInfo ( )
protected

reset all sensor transform related variables

Definition at line 237 of file AlignSensorHelper.cxx.

◆ sensorUid()

Int_t o2::mft::AlignSensorHelper::sensorUid ( ) const
inline

return the ALICE global unique id of the sensor

Definition at line 80 of file AlignSensorHelper.h.

◆ setGeometry()

void AlignSensorHelper::setGeometry ( )

set pointer to geometry that should already have done fillMatrixCache()

Definition at line 57 of file AlignSensorHelper.cxx.

◆ setSensor()

bool AlignSensorHelper::setSensor ( const int  chipIndex)

set the studied sensor

Definition at line 113 of file AlignSensorHelper.cxx.

◆ setSensorOnlyInfo()

void AlignSensorHelper::setSensorOnlyInfo ( const int  chipIndex)

set the studied sensor

Definition at line 70 of file AlignSensorHelper.cxx.

◆ setSensorUid()

void AlignSensorHelper::setSensorUid ( const int  chipIndex)
protected

set the ALICE global unique id of the sensor

Definition at line 173 of file AlignSensorHelper.cxx.

◆ setSymName()

void AlignSensorHelper::setSymName ( )
protected

set the symbolic name of this sensor in the geometry

Definition at line 186 of file AlignSensorHelper.cxx.

◆ sinRx()

double o2::mft::AlignSensorHelper::sinRx ( ) const
inline

return the sin, cos of the rotation angle w.r.t. x-axis

Definition at line 104 of file AlignSensorHelper.h.

◆ sinRy()

double o2::mft::AlignSensorHelper::sinRy ( ) const
inline

return the sin, cos of the rotation angle w.r.t. y-axis

Definition at line 108 of file AlignSensorHelper.h.

◆ sinRz()

double o2::mft::AlignSensorHelper::sinRz ( ) const
inline

return the sin, cos of the rotation angle w.r.t. z-axis

Definition at line 112 of file AlignSensorHelper.h.

◆ transceiver()

UShort_t o2::mft::AlignSensorHelper::transceiver ( ) const
inline

return the transceiver on the RU for this sensor

Definition at line 77 of file AlignSensorHelper.h.

◆ translateX()

double o2::mft::AlignSensorHelper::translateX ( ) const
inline

return the x component of the translation in the sensor transform

Definition at line 86 of file AlignSensorHelper.h.

◆ translateY()

double o2::mft::AlignSensorHelper::translateY ( ) const
inline

return the y component of the translation in the sensor transform

Definition at line 89 of file AlignSensorHelper.h.

◆ translateZ()

double o2::mft::AlignSensorHelper::translateZ ( ) const
inline

return the z component of the translation in the sensor transform

Definition at line 92 of file AlignSensorHelper.h.

◆ zone()

UShort_t o2::mft::AlignSensorHelper::zone ( ) const
inline

return the zone to which belongs the sensor

Definition at line 71 of file AlignSensorHelper.h.

Member Data Documentation

◆ mChipIndexInMft

UShort_t o2::mft::AlignSensorHelper::mChipIndexInMft = 0
protected

sensor sw index within the MFT [0, 935]

Definition at line 125 of file AlignSensorHelper.h.

◆ mChipIndexOnLadder

UShort_t o2::mft::AlignSensorHelper::mChipIndexOnLadder = 0
protected

sensor index within the ladder [0, 4]

Definition at line 124 of file AlignSensorHelper.h.

◆ mChipUniqueId

Int_t o2::mft::AlignSensorHelper::mChipUniqueId = 0
protected

ALICE global unique id of the sensor.

Definition at line 132 of file AlignSensorHelper.h.

◆ mConnector

UShort_t o2::mft::AlignSensorHelper::mConnector = 0
protected

connector index to which the ladder is plugged in the zone [0, 4]

Definition at line 126 of file AlignSensorHelper.h.

◆ mCosRx

double o2::mft::AlignSensorHelper::mCosRx = 0
protected

Definition at line 144 of file AlignSensorHelper.h.

◆ mCosRy

double o2::mft::AlignSensorHelper::mCosRy = 0
protected

Definition at line 146 of file AlignSensorHelper.h.

◆ mCosRz

double o2::mft::AlignSensorHelper::mCosRz = 0
protected

Definition at line 148 of file AlignSensorHelper.h.

◆ mDisk

UShort_t o2::mft::AlignSensorHelper::mDisk = 0
protected

disk id [0, 4]

Definition at line 130 of file AlignSensorHelper.h.

◆ mGeometry

o2::mft::GeometryTGeo* o2::mft::AlignSensorHelper::mGeometry = nullptr
protected

MFT geometry.

Definition at line 122 of file AlignSensorHelper.h.

◆ mGeoSymbolicName

TString o2::mft::AlignSensorHelper::mGeoSymbolicName
protected

symbolic name of this sensor in the geometry

Definition at line 150 of file AlignSensorHelper.h.

◆ mHalf

UShort_t o2::mft::AlignSensorHelper::mHalf = 0
protected

half id [0, 1]

Definition at line 131 of file AlignSensorHelper.h.

◆ mIsTransformExtracted

bool o2::mft::AlignSensorHelper::mIsTransformExtracted = false
protected

boolean used to check if the sensor transform was successfully extracted from geometry

Definition at line 152 of file AlignSensorHelper.h.

◆ mLayer

UShort_t o2::mft::AlignSensorHelper::mLayer = 0
protected

layer id [0, 9]

Definition at line 128 of file AlignSensorHelper.h.

◆ mNumberOfSensors

constexpr int o2::mft::AlignSensorHelper::mNumberOfSensors = o2::itsmft::ChipMappingMFT::NChips
staticconstexprprotected

Total number of sensors (detection elements) in the MFT.

Definition at line 123 of file AlignSensorHelper.h.

◆ mRx

double o2::mft::AlignSensorHelper::mRx = 0
protected

‍array of symbolic names of all sensors

rotation angle aroung global x-axis (radian)

Definition at line 138 of file AlignSensorHelper.h.

◆ mRy

double o2::mft::AlignSensorHelper::mRy = 0
protected

rotation angle aroung global y-axis (radian)

Definition at line 139 of file AlignSensorHelper.h.

◆ mRz

double o2::mft::AlignSensorHelper::mRz = 0
protected

rotation angle aroung global z-axis (radian)

Definition at line 140 of file AlignSensorHelper.h.

◆ mSinRx

double o2::mft::AlignSensorHelper::mSinRx = 0
protected

Definition at line 143 of file AlignSensorHelper.h.

◆ mSinRy

double o2::mft::AlignSensorHelper::mSinRy = 0
protected

Definition at line 145 of file AlignSensorHelper.h.

◆ mSinRz

double o2::mft::AlignSensorHelper::mSinRz = 0
protected

Definition at line 147 of file AlignSensorHelper.h.

◆ mSymNames

std::array<TString, mNumberOfSensors> o2::mft::AlignSensorHelper::mSymNames
protected

Definition at line 135 of file AlignSensorHelper.h.

◆ mTransceiver

UShort_t o2::mft::AlignSensorHelper::mTransceiver = 0
protected

transceiver id to which the sensor is connected in the zone [0, 24]

Definition at line 127 of file AlignSensorHelper.h.

◆ mTransform

TGeoHMatrix o2::mft::AlignSensorHelper::mTransform
protected

sensor transformation matrix L2G

Definition at line 133 of file AlignSensorHelper.h.

◆ mTranslation

o2::math_utils::Point3D<double> o2::mft::AlignSensorHelper::mTranslation
protected

coordinates of the translation between the local system origin (the center of the sensor) and the global origin

Definition at line 134 of file AlignSensorHelper.h.

◆ mZone

UShort_t o2::mft::AlignSensorHelper::mZone = 0
protected

zone id [0,3]

Definition at line 129 of file AlignSensorHelper.h.


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