New treatment of DCS data points for SDD (V. Pospisil)
[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
fcf95fc7 7//////////////////////////////////////////////////////
8// Segmentation class for SDD //
9// //
10//////////////////////////////////////////////////////
b0f5e3fc 11class AliITSsegmentationSDD :
12public AliITSsegmentation {
13 public:
14
15
16 AliITSsegmentationSDD();
55d2c544 17 AliITSsegmentationSDD(const AliITSsegmentationSDD &source);
18 AliITSsegmentationSDD& operator=(const AliITSsegmentationSDD &source);
4952f440 19 AliITSsegmentationSDD(AliITSgeom *gm);
b0f5e3fc 20 virtual ~AliITSsegmentationSDD(){}
b0f5e3fc 21
22 // Set Detector Segmentation Parameters
23 //
023ae34b 24 // get the drift speed used for this segmentation
25 virtual Float_t GetDriftSpeed()const{return fDriftSpeed;}
26 // Set the drift speed needed for this segmentation
4952f440 27 virtual void SetDriftSpeed(Float_t ds){
28 fDriftSpeed = ds;
29 fSetDriftSpeed=kTRUE;
30 }
b0f5e3fc 31 // Cell size dz*dx
55d2c544 32 virtual void SetPadSize(Float_t pitch, Float_t clock)
b0f5e3fc 33 {fPitch=pitch;fTimeStep=1000./clock;}
34
35 // Maximum number of cells along the two coordinates z,x (anodes,samples)
55d2c544 36 virtual void SetNPads(Int_t p1, Int_t p2)
b0f5e3fc 37 {fNanodes=2*p1;fNsamples=p2;}
5752a110 38 // Returns the maximum number of cells (digits) posible
55d2c544 39 virtual Int_t GetNPads() const {return fNanodes*fNsamples;}
b0f5e3fc 40
41 // Transform from real local to cell coordinates
55d2c544 42 virtual void GetPadIxz(Float_t x ,Float_t z ,Int_t &ix,Int_t &iz) const;
b0f5e3fc 43 // Transform from cell to real local coordinates
55d2c544 44 virtual void GetPadCxz(Int_t ix,Int_t iz,Float_t &x ,Float_t &z ) const;
b0f5e3fc 45 // Transform from real global to local coordinates
55d2c544 46 virtual void GetLocal(Int_t module,Float_t *g ,Float_t *l) const;
b0f5e3fc 47 // Transform from real local to global coordinates
55d2c544 48 virtual void GetGlobal(Int_t module,Float_t *l ,Float_t *g) const;
e8189707 49 // Get anode and time bucket as floats - numbering from 0
55d2c544 50 virtual void GetPadTxz(Float_t &x ,Float_t &z) const;
5752a110 51 // Transformation from Geant cm detector center local coordinates
52 // to detector segmentation/cell coordiantes starting from (0,0).
aacedc3e 53 virtual Bool_t LocalToDet(Float_t x,Float_t z,Int_t &ix,Int_t &iz) const;
5752a110 54 // Transformation from detector segmentation/cell coordiantes starting
55 // from (0,0) to Geant cm detector center local coordinates.
55d2c544 56 virtual void DetToLocal(Int_t ix,Int_t iz,Float_t &x,Float_t &z) const;
b0f5e3fc 57 //
58 // Initialisation
59 virtual void Init();
60 //
61 // Get member data
62 //
b0f5e3fc 63 // Cell size in x
55d2c544 64 virtual Float_t Dpx(Int_t) const {return fTimeStep;}
b0f5e3fc 65 // Cell size in z
55d2c544 66 virtual Float_t Dpz(Int_t) const {return fPitch;}
b0f5e3fc 67
68 // Maximum number of samples in x
55d2c544 69 virtual Int_t Npx() const {return fNsamples;}
b0f5e3fc 70 // Maximum number of anodes in z
55d2c544 71 virtual Int_t Npz() const {return fNanodes;}
4952f440 72 // Maximum number of anodes in z
73 virtual Int_t NpzHalf() const {return fNanodes/2;}
b0f5e3fc 74
75 //
76 // Get next neighbours
ac74f489 77 virtual void Neighbours(Int_t iX,Int_t iZ,Int_t* Nlist,Int_t Xlist[10],
55d2c544 78 Int_t Zlist[10]) const;
b0f5e3fc 79
b0f5e3fc 80 // Current integration limits
ac74f489 81 virtual void IntegrationLimits(Float_t&,Float_t&,Float_t&,Float_t&) {}
f5d698b9 82 // Print Parameters
d8046757 83 virtual void Print(Option_t *opt="") const;
55d2c544 84// Print default parameters (static const data members, if any)
85 virtual void PrintDefaultParameters() const;
03898a57 86
b0f5e3fc 87 protected:
88
55d2c544 89 virtual void Copy(TObject &obj) const;
90
5752a110 91 Int_t fNsamples; // Number of time samples in x
92 Int_t fNanodes; // Summed # of anodes in the two det halves (z)
93 Float_t fPitch; // Anode pitch - microns
94 Float_t fTimeStep; // Sampling time - ns
03898a57 95 Float_t fDriftSpeed; // Drift speed
4952f440 96 Bool_t fSetDriftSpeed; // flag for usage of drift speed
55d2c544 97 static const Float_t fgkDxDefault; // Default value for fDx
98 static const Float_t fgkDzDefault; // Default value for fDz
99 static const Float_t fgkDyDefault; // Default value for fDy
100 static const Float_t fgkPitchDefault; //Default value for fPitch
101 static const Float_t fgkClockDefault; //Default value for the clock freq.
102 static const Int_t fgkHalfNanodesDefault; //Default value for fNanodes/2
103 static const Int_t fgkNsamplesDefault; //Default value for fNsamples
104
4952f440 105 ClassDef(AliITSsegmentationSDD,4) // SDD segmentation
b0f5e3fc 106};
107
108#endif