]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MFT/AliMFTSegmentation.h
Reorganising the TPC transformation in HLT:
[u/mrichter/AliRoot.git] / MFT / AliMFTSegmentation.h
CommitLineData
820b4d9e 1#ifndef AliMFTSegmentation_H
2#define AliMFTSegmentation_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7//====================================================================================================================================================
8//
9// Segmentation class for the planes of the ALICE Muon Forward Tracker
10//
11// Contact author: antonio.uras@cern.ch
12//
13//====================================================================================================================================================
14
15#include "TFile.h"
16#include "TNtuple.h"
17#include "TClonesArray.h"
18#include "TMath.h"
19#include "AliMFTPlane.h"
20#include "TMath.h"
d4643a10 21#include "AliMFTConstants.h"
820b4d9e 22
23//====================================================================================================================================================
24
25class AliMFTSegmentation : public TObject {
26
27public:
28
29 AliMFTSegmentation();
30 AliMFTSegmentation(const Char_t *nameGeomFile);
ffc53def 31
32 virtual ~AliMFTSegmentation();
33 virtual void Clear(const Option_t* /*opt*/);
820b4d9e 34
d4643a10 35 THnSparseC* GetDetElem(Int_t detElemID) const;
820b4d9e 36
d4643a10 37 Int_t GetDetElemID(Int_t plane, Int_t detElem) const { return fNMaxDetElemPerPlane*plane + detElem; }
820b4d9e 38
39 Bool_t Hit2PixelID(Double_t xHit, Double_t yHit, Int_t detElemID, Int_t &xPixel, Int_t &yPixel);
40
d4643a10 41 Double_t GetPixelSizeX(Int_t detElemID) const { THnSparseC *detElem = GetDetElem(detElemID); return detElem->GetAxis(0)->GetBinWidth(1); }
42 Double_t GetPixelSizeY(Int_t detElemID) const { THnSparseC *detElem = GetDetElem(detElemID); return detElem->GetAxis(1)->GetBinWidth(1); }
43 Double_t GetPixelSizeZ(Int_t detElemID) const { THnSparseC *detElem = GetDetElem(detElemID); return detElem->GetAxis(2)->GetBinWidth(1); }
820b4d9e 44
d4643a10 45 Double_t GetPixelCenterX(Int_t detElemID, Int_t iPixel) const { THnSparseC *detElem = GetDetElem(detElemID); return detElem->GetAxis(0)->GetBinCenter(iPixel+1); }
46 Double_t GetPixelCenterY(Int_t detElemID, Int_t iPixel) const { THnSparseC *detElem = GetDetElem(detElemID); return detElem->GetAxis(1)->GetBinCenter(iPixel+1); }
47 Double_t GetPixelCenterZ(Int_t detElemID, Int_t iPixel) const { THnSparseC *detElem = GetDetElem(detElemID); return -1.*(detElem->GetAxis(2)->GetBinCenter(iPixel+1)); }
820b4d9e 48
d4643a10 49 Int_t GetNPlanes() const { return fMFTPlanes->GetEntries(); }
820b4d9e 50
d4643a10 51 AliMFTPlane* GetPlane(Int_t iPlane) const { if (iPlane>=0 && iPlane<fMFTPlanes->GetEntries()) return (AliMFTPlane*) fMFTPlanes->At(iPlane); else return NULL; }
bcaf50eb 52
53 Bool_t DoesPixelExist(Int_t detElemID, Int_t xPixel, Int_t yPixel);
820b4d9e 54
55protected:
56
d4643a10 57 static const Int_t fNMaxPlanes = AliMFTConstants::fNMaxPlanes; // max number of MFT planes
58 static const Double_t fRadiusMin; // minimum radial distance of the MFT sensors. To be carefully coordinated with fDetElemSuperposition
59 static const Double_t fDetElemSuperposition; // superposition between bands tasselling the MFT planes, for having a full acceptance coverage
60 // even in case of 10 degrees inclined tracks
61 static const Double_t fHeightDetElem; // height of the active volume bands composing the planes
62 static const Double_t fSupportExtMargin; // minimum border size between the end of the support plane and the sensors
820b4d9e 63
d4643a10 64 static const Int_t fNMaxDetElemPerPlane = AliMFTConstants::fNMaxDetElemPerPlane;
820b4d9e 65
66 TClonesArray *fMFTPlanes;
67
68private:
69
70 AliMFTSegmentation(const AliMFTSegmentation &source);
71 AliMFTSegmentation& operator=(const AliMFTSegmentation &source);
72
73 ClassDef(AliMFTSegmentation,1)
74
75};
76
77//====================================================================================================================================================
78
79#endif
80