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

#include <Segmentation.h>

Public Member Functions

 ~Segmentation ()=default
 
bool localToDetector (float x, float z, int &iRow, int &iCol, const int subDetectorID)
 
void localToDetectorUnchecked (float xRow, float zCol, int &iRow, int &iCol, const int subDetectorID)
 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)
 
template<typename T = float, typename L = float>
void detectorToLocalUnchecked (L row, L col, math_utils::Point3D< T > &loc, const int subDetectorID)
 
template<typename T = float, typename L = float>
void detectorToLocalUnchecked (L row, L col, std::array< T, 3 > &loc, const int subDetectorID)
 
template<typename T = float, typename L = float>
bool detectorToLocal (L row, L col, T &xRow, T &zCol, const int subDetectorID)
 
template<typename T = float, typename L = float>
bool detectorToLocal (L row, L col, math_utils::Point3D< T > &loc, const int subDetectorID)
 
template<typename T = float, typename L = float>
bool detectorToLocal (L row, L col, std::array< T, 3 > &loc, const int subDetectorID)
 
float getFirstRowCoordinate (const int subDetectorID)
 
float getFirstColCoordinate (const int subDetectorID)
 
 ClassDefNV (Segmentation, 1)
 

Static Public Member Functions

static SegmentationInstance ()
 

Detailed Description

Segmentation and response for pixels in inner and outer TOF of the ALICE 3 apparatus Questions to solve:

Definition at line 31 of file Segmentation.h.

Constructor & Destructor Documentation

◆ ~Segmentation()

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

Member Function Documentation

◆ ClassDefNV()

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

◆ detectorToLocal() [1/3]

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

Definition at line 121 of file Segmentation.h.

◆ detectorToLocal() [2/3]

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

Definition at line 135 of file Segmentation.h.

◆ detectorToLocal() [3/3]

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

Definition at line 106 of file Segmentation.h.

◆ detectorToLocalUnchecked() [1/3]

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

Definition at line 81 of file Segmentation.h.

◆ detectorToLocalUnchecked() [2/3]

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

Definition at line 91 of file Segmentation.h.

◆ detectorToLocalUnchecked() [3/3]

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

Transformation from Detector cell coordiantes 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 70 of file Segmentation.h.

◆ getFirstColCoordinate()

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

Definition at line 154 of file Segmentation.h.

◆ getFirstRowCoordinate()

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

Definition at line 149 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 
)
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 190 of file Segmentation.h.

◆ localToDetectorUnchecked()

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

same but w/o check for row/column range

Definition at line 164 of file Segmentation.h.


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