Added paragraphs on OCDB, BusPatchLength.dat
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentationSPD.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSSEGMENTATIONSPD_H
2#define ALIITSSEGMENTATIONSPD_H
3
4#include "AliITSsegmentation.h"
5
1ca7869b 6
7class AliITSgeom;
8
b0f5e3fc 9// segmentation and response for SPD
10
11class AliITSsegmentationSPD :
12public AliITSsegmentation {
13 public:
14
c9649d1e 15 AliITSsegmentationSPD(Option_t *opt="" );
b0f5e3fc 16 AliITSsegmentationSPD(AliITSgeom *gm);
55d2c544 17 AliITSsegmentationSPD(const AliITSsegmentationSPD &source);
b0f5e3fc 18 virtual ~AliITSsegmentationSPD(){}
55d2c544 19 AliITSsegmentationSPD& operator=(const AliITSsegmentationSPD &source);
b0f5e3fc 20
21 // Set Detector Segmentation Parameters
b0f5e3fc 22
23 // Maximum number of pixels along the two coordinates
e8189707 24 virtual void SetNPads(Int_t p1, Int_t p2);
5752a110 25 // Returns the maximum number of cells (digits) posible
55d2c544 26 virtual Int_t GetNPads() const {return fNpx*fNpz;}
91378d45 27 // Set Pixel Size Array in x and z, microns.
28 virtual void SetBinSize(Float_t *x,Float_t *z);
b0f5e3fc 29
30 // Transform from real to pixel coordinates
55d2c544 31 virtual void GetPadIxz(Float_t x,Float_t z,Int_t &ix,Int_t &iz) const;
b0f5e3fc 32 // Transform from pixel to real coordinates
55d2c544 33 virtual void GetPadCxz(Int_t ix,Int_t iz,Float_t &x,Float_t &z) const;
e8189707 34 // Local transformation of real local coordinates -
55d2c544 35 virtual void GetPadTxz(Float_t &x ,Float_t &z) const;
5752a110 36 // Transformation from Geant cm detector center local coordinates
37 // to detector segmentation/cell coordiantes starting from (0,0).
aacedc3e 38 virtual Bool_t LocalToDet(Float_t x,Float_t z,Int_t &ix,Int_t &iz) const;
5752a110 39 // Transformation from detector segmentation/cell coordiantes starting
40 // from (0,0) to Geant cm detector center local coordinates.
55d2c544 41 virtual void DetToLocal(Int_t ix,Int_t iz,Float_t &x,Float_t &z) const;
bd8ff387 42 // Returns the Cell upper and lower boundries in x and y. cell indexes
43 // starting from (0,0) and return Geant cm detector centered local
44 // coordinates, consistant with DetToLocal and LocalToDet functions above.
45 virtual void CellBoundries(Int_t ix,Int_t iz,Double_t &xl,Double_t &xu,
55d2c544 46 Double_t &zl,Double_t &zu) const;
b0f5e3fc 47 //
48 // Initialisation
49 virtual void Init();
50 virtual void Init300();
51 //
52 // Get member data
53 //
b0f5e3fc 54 // Pixel size in x
55d2c544 55 virtual Float_t Dpx(Int_t ix) const;
b0f5e3fc 56 // Pixel size in z
55d2c544 57 virtual Float_t Dpz(Int_t iz) const;
b0f5e3fc 58
59 // Maximum number of Pixels in x
55d2c544 60 virtual Int_t Npx() const {return fNpx;}
b0f5e3fc 61 // Maximum number of Pixels in z
55d2c544 62 virtual Int_t Npz() const {return fNpz;}
b0f5e3fc 63 //
91378d45 64 // Get next neighbours
b0f5e3fc 65 virtual void Neighbours
55d2c544 66 (Int_t iX,Int_t iZ,Int_t* Nlist,Int_t Xlist[10],Int_t Zlist[10]) const;
67 // Print default parameters (static const data members, if any)
68 virtual void PrintDefaultParameters() const
f6b6d58e 69 {AliWarning("No def. parameters defined as const static data members");}
5752a110 70
55d2c544 71 protected:
b0f5e3fc 72
55d2c544 73 virtual void Copy(TObject &obj) const;
b0f5e3fc 74 Int_t fNpx; // Number of pixels in x
75 Int_t fNpz; // Number of pixels in z
b0f5e3fc 76 Float_t fCellSizeX[256];// Size for each pixel in x -microns
77 Float_t fCellSizeZ[280];// Size for each pixel in z -microns
b0f5e3fc 78
55d2c544 79 private:
80
81 Float_t ColFromZ300(Float_t z) const;
82 Float_t ZFromCol300(Int_t col) const;
83 Float_t ZpitchFromCol300(Int_t col) const;
84 Float_t ColFromZ(Float_t z) const;
85 Float_t ZFromCol(Int_t col) const;
86 Float_t ZpitchFromCol(Int_t col) const;
87
88 ClassDef(AliITSsegmentationSPD,2) //Segmentation class for SPD
b0f5e3fc 89
90};
91
92#endif