Project
Loading...
Searching...
No Matches
o2::trd::ChamberSpacePoint Class Reference

#include <CoordinateTransformer.h>

Inherited by o2::trd::HitPoint.

Public Member Functions

 ChamberSpacePoint (int det=-999)
 
 ChamberSpacePoint (int id, int detector, float x, float y, float z, std::array< float, 3 > rct, bool inDrift)
 
bool isValid () const
 check if the space point has been initialized
 
bool isFromDriftRegion () const
 check if the space point is in the drift region
 
int getID () const
 return the ID of the associated track (either MC or reconstructed)
 
float getX () const
 spatial x coordinate of space point
 
float getY () const
 spatial y coordinate of space point
 
float getZ () const
 spatial z coordinate of space point
 
int getDetector () const
 detector number corresponding to space point
 
int getPadRow () const
 pad row within detector of space point
 
float getPadRowF () const
 
float getPadCol () const
 pad position (a.k.a. column) within pad row
 
float getTimeBin () const
 time coordinate in drift direction
 
float getMCMChannel (int mcmcol) const
 calculate the channel number within the MCM. 0..21 if valid, -1 if not within this MCM
 
bool isInMCM (int detector, int padrow, int mcmcol) const
 

Protected Attributes

float mX
 calculate MCM corresponding to pad row/column
 
float mY
 
float mZ
 
bool mInDrift
 
int mID
 
int mDetector
 
float mPadrow
 
float mPadcol
 
float mTimebin
 

Detailed Description

A position in spatial (x,y,z) and raw/digit coordinates (det,row,col,tb). This class is intended to store the converted coordinates of a space point, to avoid repeated transformations between spatial and row/col/tb coordinates.

Definition at line 33 of file CoordinateTransformer.h.

Constructor & Destructor Documentation

◆ ChamberSpacePoint() [1/2]

o2::trd::ChamberSpacePoint::ChamberSpacePoint ( int  det = -999)
inline

Definition at line 36 of file CoordinateTransformer.h.

◆ ChamberSpacePoint() [2/2]

o2::trd::ChamberSpacePoint::ChamberSpacePoint ( int  id,
int  detector,
float  x,
float  y,
float  z,
std::array< float, 3 >  rct,
bool  inDrift 
)
inline

Definition at line 37 of file CoordinateTransformer.h.

Member Function Documentation

◆ getDetector()

int o2::trd::ChamberSpacePoint::getDetector ( ) const
inline

detector number corresponding to space point

Definition at line 59 of file CoordinateTransformer.h.

◆ getID()

int o2::trd::ChamberSpacePoint::getID ( ) const
inline

return the ID of the associated track (either MC or reconstructed)

Definition at line 47 of file CoordinateTransformer.h.

◆ getMCMChannel()

float ChamberSpacePoint::getMCMChannel ( int  mcmcol) const

calculate the channel number within the MCM. 0..21 if valid, -1 if not within this MCM

Definition at line 19 of file CoordinateTransformer.cxx.

◆ getPadCol()

float o2::trd::ChamberSpacePoint::getPadCol ( ) const
inline

pad position (a.k.a. column) within pad row

Definition at line 66 of file CoordinateTransformer.h.

◆ getPadRow()

int o2::trd::ChamberSpacePoint::getPadRow ( ) const
inline

pad row within detector of space point

Definition at line 62 of file CoordinateTransformer.h.

◆ getPadRowF()

float o2::trd::ChamberSpacePoint::getPadRowF ( ) const
inline

Definition at line 63 of file CoordinateTransformer.h.

◆ getTimeBin()

float o2::trd::ChamberSpacePoint::getTimeBin ( ) const
inline

time coordinate in drift direction

Definition at line 69 of file CoordinateTransformer.h.

◆ getX()

float o2::trd::ChamberSpacePoint::getX ( ) const
inline

spatial x coordinate of space point

Definition at line 50 of file CoordinateTransformer.h.

◆ getY()

float o2::trd::ChamberSpacePoint::getY ( ) const
inline

spatial y coordinate of space point

Definition at line 53 of file CoordinateTransformer.h.

◆ getZ()

float o2::trd::ChamberSpacePoint::getZ ( ) const
inline

spatial z coordinate of space point

Definition at line 56 of file CoordinateTransformer.h.

◆ isFromDriftRegion()

bool o2::trd::ChamberSpacePoint::isFromDriftRegion ( ) const
inline

check if the space point is in the drift region

Definition at line 44 of file CoordinateTransformer.h.

◆ isInMCM()

bool ChamberSpacePoint::isInMCM ( int  detector,
int  padrow,
int  mcmcol 
) const

Definition at line 29 of file CoordinateTransformer.cxx.

◆ isValid()

bool o2::trd::ChamberSpacePoint::isValid ( ) const
inline

check if the space point has been initialized

Definition at line 41 of file CoordinateTransformer.h.

Member Data Documentation

◆ mDetector

int o2::trd::ChamberSpacePoint::mDetector
protected

Definition at line 86 of file CoordinateTransformer.h.

◆ mID

int o2::trd::ChamberSpacePoint::mID
protected

Definition at line 85 of file CoordinateTransformer.h.

◆ mInDrift

bool o2::trd::ChamberSpacePoint::mInDrift
protected

Definition at line 84 of file CoordinateTransformer.h.

◆ mPadcol

float o2::trd::ChamberSpacePoint::mPadcol
protected

Definition at line 87 of file CoordinateTransformer.h.

◆ mPadrow

float o2::trd::ChamberSpacePoint::mPadrow
protected

Definition at line 87 of file CoordinateTransformer.h.

◆ mTimebin

float o2::trd::ChamberSpacePoint::mTimebin
protected

Definition at line 87 of file CoordinateTransformer.h.

◆ mX

float o2::trd::ChamberSpacePoint::mX
protected

calculate MCM corresponding to pad row/column

calculate readout board corresponding to pad row/column

Definition at line 83 of file CoordinateTransformer.h.

◆ mY

float o2::trd::ChamberSpacePoint::mY
protected

Definition at line 83 of file CoordinateTransformer.h.

◆ mZ

float o2::trd::ChamberSpacePoint::mZ
protected

Definition at line 83 of file CoordinateTransformer.h.


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