]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSsegmentationSDD.h
Some typos and misalignment of comments corrected
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentationSDD.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSSEGMENTATIONSDD_H
2#define ALIITSSEGMENTATIONSDD_H
3
4
5#include "AliITSsegmentation.h"
b0f5e3fc 6
7// segmentation for SDD
8
1ca7869b 9class AliITSresponse;
b0f5e3fc 10class AliITSsegmentationSDD :
11public AliITSsegmentation {
12 public:
13
14
15 AliITSsegmentationSDD();
16 AliITSsegmentationSDD(AliITSgeom *gm, AliITSresponse *resp);
17 AliITSsegmentationSDD(AliITSsegmentationSDD &source);
18 virtual ~AliITSsegmentationSDD(){}
19 AliITSsegmentationSDD& operator=(AliITSsegmentationSDD &source);
20
21 // Set Detector Segmentation Parameters
22 //
23 // Detector size : x,z,y
24 virtual void SetDetSize
e8189707 25 (Float_t p1=35000., Float_t p2=75264., Float_t p3= 300.)
b0f5e3fc 26 {fDx=p1; fDz=p2; fDy=p3;}
27
28 // Cell size dz*dx
e8189707 29 virtual void SetPadSize(Float_t pitch=294., Float_t clock=40.)
b0f5e3fc 30 {fPitch=pitch;fTimeStep=1000./clock;}
31
32 // Maximum number of cells along the two coordinates z,x (anodes,samples)
e8189707 33 virtual void SetNPads(Int_t p1=256, Int_t p2=256)
b0f5e3fc 34 {fNanodes=2*p1;fNsamples=p2;}
5752a110 35 // Returns the maximum number of cells (digits) posible
36 virtual Int_t GetNPads(){return fNandoes*fNsamples;}
b0f5e3fc 37
38 // Transform from real local to cell coordinates
e8189707 39 virtual void GetPadIxz(Float_t x ,Float_t z ,Int_t &ix,Int_t &iz);
b0f5e3fc 40 // Transform from cell to real local coordinates
e8189707 41 virtual void GetPadCxz(Int_t ix,Int_t iz,Float_t &x ,Float_t &z );
b0f5e3fc 42 // Transform from real global to local coordinates
43 virtual void GetLocal(Int_t module,Float_t *g ,Float_t *l);
44 // Transform from real local to global coordinates
45 virtual void GetGlobal(Int_t module,Float_t *l ,Float_t *g);
e8189707 46 // Get anode and time bucket as floats - numbering from 0
47 virtual void GetPadTxz(Float_t &x ,Float_t &z);
5752a110 48 // Transformation from Geant cm detector center local coordinates
49 // to detector segmentation/cell coordiantes starting from (0,0).
50 virtual void LocalToDet(Float_t x,Float_t z,Int_t &ix,Int_t &iz);
51 // Transformation from detector segmentation/cell coordiantes starting
52 // from (0,0) to Geant cm detector center local coordinates.
53 virtual void DetToLocal(Int_t ix,Int_t iz,Float_t &x,Float_t &z);
b0f5e3fc 54 //
55 // Initialisation
56 virtual void Init();
57 //
58 // Get member data
59 //
60 // Detector type geometry
61 virtual AliITSgeom* Geometry() {return fGeom;}
62 // Detector length
63 virtual Float_t Dx() {return fDx;}
5752a110 64 // Detector drift distance or detector active area half width
b0f5e3fc 65 virtual Float_t Dz() {return fDz;}
66 // Detector thickness
67 virtual Float_t Dy() {return fDy;}
68 // Cell size in x
69 virtual Float_t Dpx(Int_t dummy) {return fTimeStep;}
70 // Cell size in z
71 virtual Float_t Dpz(Int_t dummy) {return fPitch;}
72
73 // Maximum number of samples in x
74 virtual Int_t Npx() {return fNsamples;}
75 // Maximum number of anodes in z
76 virtual Int_t Npz() {return fNanodes;}
77
78 //
79 // Get next neighbours
80 virtual void Neighbours
81 (Int_t iX, Int_t iZ, Int_t* Nlist, Int_t Xlist[10], Int_t Zlist[10]);
82
83 // Set cell position
84 virtual void SetPad(Int_t, Int_t) {}
85 // Set hit position
86 virtual void SetHit(Float_t, Float_t) {}
87
88 //
89 // Iterate over cells
90 // Initialiser
e8189707 91 virtual void FirstPad
b0f5e3fc 92 (Float_t xhit, Float_t zhit, Float_t dx, Float_t dz) {}
93 // Stepper
e8189707 94 virtual void NextPad() {}
b0f5e3fc 95 // Condition
e8189707 96 virtual Int_t MorePads() {return 0;}
b0f5e3fc 97 //
98 // Current cell cursor during disintegration
99 // x-coordinate
100 virtual Int_t Ix() {return 0;}
101 // z-coordinate
102 virtual Int_t Iz() {return 0;}
103 //
104 // Signal Generation Condition during Stepping
105 virtual Int_t SigGenCond(Float_t x, Float_t y, Float_t z) {return 0;}
106 // Initialise signal generation at coord (x,y,z)
107 virtual void SigGenInit(Float_t x, Float_t y, Float_t z) {}
108 // Current integration limits
109 virtual void IntegrationLimits
110 (Float_t& x1, Float_t& x2, Float_t& z1, Float_t& z2) {}
111 // Test points for auto calibration
112 virtual void GiveTestPoints(Int_t &n, Float_t *x, Float_t *z) {}
113 // Function for systematic corrections
114 // Set the correction function
115 virtual void SetCorrFunc(Int_t, TF1*) {}
116 // Get the correction Function
117 virtual TF1* CorrFunc(Int_t) {return 0;}
f5d698b9 118 // Print Parameters
119 virtual void Print();
b0f5e3fc 120
121 protected:
122
5752a110 123 Int_t fNsamples; // Number of time samples in x
124 Int_t fNanodes; // Summed # of anodes in the two det halves (z)
125 Float_t fPitch; // Anode pitch - microns
126 Float_t fTimeStep; // Sampling time - ns
127 Float_t fDx; // Drift distance of the 1/2detector (x axis)-microns
128 Float_t fDz; // Length of half-detector (z axis) - microns
129 Float_t fDy; // Full thickness of the detector (y axis) - microns
b0f5e3fc 130
e8189707 131 AliITSgeom *fGeom; //! pointer to the geometry class
b0f5e3fc 132 AliITSresponse *fResponse; // pointer to the response class
133
134 TF1* fCorr; // correction function
135
136 ClassDef(AliITSsegmentationSDD,1) // SDD segmentation
137};
138
139#endif