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