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