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

Segmentation and response for pixels in inner and outer TOF of the ALICE 3 apparatus. More...

#include <Segmentation.h>

Public Member Functions

 ~Segmentation ()=default
 
bool localToDetector (float x, float z, int &iRow, int &iCol, const int subDetectorID) const
 
void localToDetectorUnchecked (float xRow, float zCol, int &iRow, int &iCol, const int subDetectorID) const
 same but w/o check for row/column range
 
template<typename T = float, typename L = float>
void detectorToLocalUnchecked (L row, L col, T &xRow, T &zCol, const int subDetectorID) const
 
template<typename T = float, typename L = float>
void detectorToLocalUnchecked (L row, L col, math_utils::Point3D< T > &loc, const int subDetectorID) const
 
template<typename T = float, typename L = float>
void detectorToLocalUnchecked (L row, L col, std::array< T, 3 > &loc, const int subDetectorID) const
 
template<typename T = float, typename L = float>
bool detectorToLocal (L row, L col, T &xRow, T &zCol, const int subDetectorID) const
 
template<typename T = float, typename L = float>
bool detectorToLocal (L row, L col, math_utils::Point3D< T > &loc, const int subDetectorID) const
 
template<typename T = float, typename L = float>
bool detectorToLocal (L row, L col, std::array< T, 3 > &loc, const int subDetectorID) const
 
float getFirstRowCoordinate (const int subDetectorID) const
 
float getFirstColCoordinate (const int subDetectorID) const
 
 ClassDefNV (Segmentation, 1)
 

Static Public Member Functions

static Segmentation * Instance ()
 

Detailed Description

Segmentation and response for pixels in inner and outer TOF of the ALICE 3 apparatus.

Definition at line 30 of file Segmentation.h.

Constructor & Destructor Documentation

◆ ~Segmentation()

o2::iotof::Segmentation::~Segmentation ( )
default

Member Function Documentation

◆ ClassDefNV()

o2::iotof::Segmentation::ClassDefNV ( Segmentation  ,
1   
)

◆ detectorToLocal() [1/3]

template<typename T = float, typename L = float>
bool o2::iotof::Segmentation::detectorToLocal ( L  row,
L  col,
math_utils::Point3D< T > &  loc,
const int  subDetectorID 
) const
inline

Definition at line 120 of file Segmentation.h.

◆ detectorToLocal() [2/3]

template<typename T = float, typename L = float>
bool o2::iotof::Segmentation::detectorToLocal ( L  row,
L  col,
std::array< T, 3 > &  loc,
const int  subDetectorID 
) const
inline

Definition at line 134 of file Segmentation.h.

◆ detectorToLocal() [3/3]

template<typename T = float, typename L = float>
bool o2::iotof::Segmentation::detectorToLocal ( L  row,
L  col,
T &  xRow,
T &  zCol,
const int  subDetectorID 
) const
inline

Definition at line 105 of file Segmentation.h.

◆ detectorToLocalUnchecked() [1/3]

template<typename T = float, typename L = float>
void o2::iotof::Segmentation::detectorToLocalUnchecked ( L  row,
L  col,
math_utils::Point3D< T > &  loc,
const int  subDetectorID 
) const
inline

Definition at line 80 of file Segmentation.h.

◆ detectorToLocalUnchecked() [2/3]

template<typename T = float, typename L = float>
void o2::iotof::Segmentation::detectorToLocalUnchecked ( L  row,
L  col,
std::array< T, 3 > &  loc,
const int  subDetectorID 
) const
inline

Definition at line 90 of file Segmentation.h.

◆ detectorToLocalUnchecked() [3/3]

template<typename T = float, typename L = float>
void o2::iotof::Segmentation::detectorToLocalUnchecked ( L  row,
L  col,
T &  xRow,
T &  zCol,
const int  subDetectorID 
) const
inline

Transformation from Detector cell coordinates to Geant detector centered local coordinates (cm)

Parameters
intiRow Detector x cell coordinate. Has the range 0 <= iRow < mNumberOfRows
intiCol Detector z cell coordinate. Has the range 0 <= iCol < mNumberOfColumns
floatx Detector local coordinate x in cm with respect to the center of the sensitive volume.
floatz Detector local coordinate z in cm with respect to the center of the sensitive volulme. If iRow and or iCol is outside of the segmentation range a value of -0.5*Dx() or -0.5*Dz() is returned.

Definition at line 69 of file Segmentation.h.

◆ getFirstColCoordinate()

float o2::iotof::Segmentation::getFirstColCoordinate ( const int  subDetectorID) const
inline

Definition at line 153 of file Segmentation.h.

◆ getFirstRowCoordinate()

float o2::iotof::Segmentation::getFirstRowCoordinate ( const int  subDetectorID) const
inline

Definition at line 148 of file Segmentation.h.

◆ Instance()

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

Definition at line 27 of file Segmentation.cxx.

◆ localToDetector()

bool o2::iotof::Segmentation::localToDetector ( float  x,
float  z,
int &  iRow,
int &  iCol,
const int  subDetectorID 
) const
inline

Transformation from Geant detector centered local coordinates (cm) to Pixel cell numbers iRow and iCol. Returns kTRUE if point x,z is inside sensitive volume, kFALSE otherwise. A value of -1 for iRow or iCol indicates that this point is outside of the detector segmentation as defined.

Parameters
floatx Detector local coordinate x in cm with respect to the center of the sensitive volume.
floatz Detector local coordinate z in cm with respect to the center of the sensitive volulme.
intiRow Detector x cell coordinate. Has the range 0 <= iRow < mNumberOfRows
intiCol Detector z cell coordinate. Has the range 0 <= iCol < mNumberOfColumns

Definition at line 189 of file Segmentation.h.

◆ localToDetectorUnchecked()

void o2::iotof::Segmentation::localToDetectorUnchecked ( float  xRow,
float  zCol,
int &  iRow,
int &  iCol,
const int  subDetectorID 
) const
inline

same but w/o check for row/column range

Definition at line 163 of file Segmentation.h.


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