26 #include "TXMLEngine.h" 27 #include "TClonesArray.h" 60 AliInfo(
"Creating MFT Virtual Segmentation");
64 fMFTHalves =
new TClonesArray(
"AliMFTHalfSegmentation", 2);
76 AliDebug(1,
"MFT segmentation set!\n");
116 Bool_t
AliMFTSegmentation::Hit2PixelID(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){
118 Double_t master[3] = {xHit, yHit, zHit};
121 if(!halfSeg)
return kFALSE;
123 if(!diskSeg)
return kFALSE;
125 if(!ladderSeg)
return kFALSE;
127 if(!chipSeg)
return kFALSE;
129 AliDebug(2,Form(
" -> Global %f %f %f",master[0],master[1],master[2]));
132 for (
int i=0; i<3; i++) master[i] = local[i];
135 for (
int i=0; i<3; i++) master[i] = local[i];
138 for (
int i=0; i<3; i++) master[i] = local[i];
140 AliDebug(2,Form(
" -> Chip Pos %f %f %f",local[0],local[1],local[2]));
143 return (chipSeg->
Hit2PixelID(local[0], local[1], xPixel, yPixel));
167 if(iSens==sensor)
return localId;
Class for the description of the structure a Half-Disk.
TGeoCombiTrans * GetTransformation() const
Returns the Transformation Combining a Rotation followed by a Translation.
AliMFTHalfDiskSegmentation * GetHalfDisk(Int_t iDisk) const
Chip Segmentation description.
AliMFTHalfSegmentation * GetHalf(Int_t iHalf) const
Returns pointer to the segmentation of the half-MFT.
virtual void Clear(const Option_t *)
Clear the TClonesArray holding the AliMFTHalfSegmentation objects.
AliMFTLadderSegmentation * GetLadder(Int_t iLadder)
Returns pointer to the ladder segmentation object.
Int_t GetDetElemLocalID(Int_t half, Int_t disk, Int_t ladder, Int_t sensor) const
Int_t GetNLadders() const
Get the number of Ladder on the Half-Disk.
Int_t GetNSensors() const
Returns number of Sensor on the ladder.
Bool_t Hit2PixelID(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)
AliMFTChipSegmentation * GetSensor(Int_t sensor) const
TClonesArray * fMFTHalves
Array of pointer to AliMFTHalfSegmentation.
Segmentation class for each half of the ALICE Muon Forward Tracker.
AliMFTSegmentation()
Default constructor.
Description of the virtual segmentation of a ladder.
#define AliDebug(logLevel, message)
Class for the virtual segmentation of the ALICE Muon Forward Tracker.
Bool_t Hit2PixelID(Double_t xHit, Double_t yHit, Int_t &xPixel, Int_t &yPixel)
Transform (x,y) Hit coordinate into Pixel ID on the matrix.
virtual ~AliMFTSegmentation()
Int_t GetNChips()
Returns the number of sensors on the Half-Disk.