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

#include <Segmentation.h>

Public Types

enum  { Bottom , Top }
 

Public Member Functions

 Segmentation ()
 
 Segmentation (const Char_t *nameGeomFile)
 
 ~Segmentation ()
 
void Clear (const Option_t *)
 Clear the TClonesArray holding the HalfSegmentation objects.
 
HalfSegmentationgetHalf (Int_t iHalf) const
 Returns pointer to the segmentation of the half-MFT.
 
Int_t getDetElemLocalID (Int_t half, Int_t disk, Int_t ladder, Int_t sensor) const
 
Bool_t hitToPixelID (Double_t xHit, Double_t yHit, Double_t zHit, Int_t half, Int_t disk, Int_t ladder, Int_t sensor, Int_t &xPixel, Int_t &yPixel)
 

Static Public Attributes

static constexpr Int_t NumberOfHalves = 2
 Number of detector halves.
 

Detailed Description

Definition at line 36 of file Segmentation.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Bottom 
Top 

Definition at line 40 of file Segmentation.h.

Constructor & Destructor Documentation

◆ Segmentation() [1/2]

Segmentation::Segmentation ( )

Definition at line 28 of file Segmentation.cxx.

◆ Segmentation() [2/2]

Segmentation::Segmentation ( const Char_t *  nameGeomFile)

Definition at line 31 of file Segmentation.cxx.

◆ ~Segmentation()

Segmentation::~Segmentation ( )

Definition at line 52 of file Segmentation.cxx.

Member Function Documentation

◆ Clear()

void Segmentation::Clear ( const Option_t *  )

Clear the TClonesArray holding the HalfSegmentation objects.

Definition at line 76 of file Segmentation.cxx.

◆ getDetElemLocalID()

Int_t Segmentation::getDetElemLocalID ( Int_t  half,
Int_t  disk,
Int_t  ladder,
Int_t  sensor 
) const

Returns the local ID of the sensor on the entire disk specified

Parameters
sensorInt_t : Sensor ID
ladderInt_t : Ladder ID holding the Sensor
diskInt_t : Half-Disk ID holding the Sensor
halfInt_t : Half-MFT ID holding the Sensor
Returns
A fixed number that represents the ID of the sensor on the disk. It goes from 0 to the max number of sensor on the disk

Definition at line 95 of file Segmentation.cxx.

◆ getHalf()

HalfSegmentation * Segmentation::getHalf ( Int_t  iHalf) const

Returns pointer to the segmentation of the half-MFT.

Parameters
iHalfInteger : 0 = Bottom; 1 = Top
Returns
Pointer to a HalfSegmentation

Definition at line 66 of file Segmentation.cxx.

◆ hitToPixelID()

Bool_t o2::mft::Segmentation::hitToPixelID ( Double_t  xHit,
Double_t  yHit,
Double_t  zHit,
Int_t  half,
Int_t  disk,
Int_t  ladder,
Int_t  sensor,
Int_t &  xPixel,
Int_t &  yPixel 
)

Member Data Documentation

◆ NumberOfHalves

constexpr Int_t o2::mft::Segmentation::NumberOfHalves = 2
staticconstexpr

Number of detector halves.

Definition at line 59 of file Segmentation.h.


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