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