Initial version, Compiler directive for selection of containers type: either STL...
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentation.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSSEGMENTATION_H
2#define ALIITSSEGMENTATION_H
3
b0f5e3fc 4#include <TObject.h>
b0f5e3fc 5
1ca7869b 6class TF1;
b0f5e3fc 7class AliITSgeom;
b0f5e3fc 8//----------------------------------------------
9//
10// ITS segmentation virtual base class
11//
12class AliITSsegmentation :
13public TObject {
14 public:
e8189707 15 virtual ~AliITSsegmentation() {}
b0f5e3fc 16 // Set Detector Segmentation Parameters
17 //
18 // Detector size
ac74f489 19 virtual void SetDetSize(Float_t,Float_t,Float_t) {}
b0f5e3fc 20 // Cell size
ac74f489 21 virtual void SetPadSize(Float_t,Float_t) {}
b0f5e3fc 22 // Maximum number of cells along the two coordinates
ac74f489 23 virtual void SetNPads(Int_t,Int_t) {}
5752a110 24 // Returns the maximum number of cells (digits) posible
25 virtual Int_t GetNPads(){return 0;}
b0f5e3fc 26 // Set angles - find a generic name fit for other detectors as well
27 // might be useful for beam test setups (3 angles ?)
ac74f489 28 virtual void SetAngles(Float_t, Float_t) {}
a244dbf6 29 // Set layer
ac74f489 30 virtual void SetLayer(Int_t) {}
b0f5e3fc 31 // Transform from real to cell coordinates
ac74f489 32 virtual void GetPadIxz(Float_t,Float_t,Int_t &,Int_t &) {}
b0f5e3fc 33 // Transform from cell to real coordinates
ac74f489 34 virtual void GetPadCxz(Int_t,Int_t,Float_t &,Float_t &) {}
b0f5e3fc 35 // Transform from real global to local coordinates
ac74f489 36 virtual void GetLocal(Int_t,Float_t *,Float_t *) {}
b0f5e3fc 37 // Transform from real local to global coordinates
ac74f489 38 virtual void GetGlobal(Int_t,Float_t *,Float_t *) {}
e8189707 39 // Local transformation of real local coordinates -
ac74f489 40 virtual void GetPadTxz(Float_t &,Float_t &) {}
5752a110 41 // Transformation from Geant cm detector center local coordinates
42 // to detector segmentation/cell coordiantes starting from (0,0).
ac74f489 43 virtual void LocalToDet(Float_t,Float_t,Int_t &,Int_t &){}
5752a110 44 // Transformation from detector segmentation/cell coordiantes starting
45 // from (0,0) to Geant cm detector center local coordinates.
ac74f489 46 virtual void DetToLocal(Int_t,Int_t,Float_t &,Float_t &){}
b0f5e3fc 47 // Initialisation
48 virtual void Init() {}
49 //
50 // Get member data
51 //
52 // Detector type geometry
53 virtual AliITSgeom* Geometry() {return 0;}
54 // Detector length
e8189707 55 virtual Float_t Dx() {return 0.;}
b0f5e3fc 56 // Detector width
e8189707 57 virtual Float_t Dz() {return 0.;}
b0f5e3fc 58 // Detector thickness
e8189707 59 virtual Float_t Dy() {return 0.;}
b0f5e3fc 60 // Cell size in x
e8189707 61 virtual Float_t Dpx(Int_t) {return 0.;}
b0f5e3fc 62 // Cell size in z
e8189707 63 virtual Float_t Dpz(Int_t) {return 0.;}
b0f5e3fc 64 // Maximum number of Cells in x
e8189707 65 virtual Int_t Npx() {return 0;}
b0f5e3fc 66 // Maximum number of Cells in z
e8189707 67 virtual Int_t Npz() {return 0;}
a244dbf6 68 // Layer
db93954b 69 virtual Int_t GetLayer() const {return 0;}
b0f5e3fc 70 // Angles
71 virtual void Angles(Float_t &, Float_t&) {}
b0f5e3fc 72 // Set cell position
73 virtual void SetPad(Int_t, Int_t) {}
74 // Set hit position
75 virtual void SetHit(Float_t, Float_t) {}
76
77 //
78 // Iterate over cells
79 // Initialiser
ac74f489 80 virtual void FirstPad(Float_t,Float_t,Float_t,Float_t) {}
b0f5e3fc 81 // Stepper
e8189707 82 virtual void NextPad() {}
b0f5e3fc 83 // Condition
e8189707 84 virtual Int_t MorePads() {return 0;}
b0f5e3fc 85 //
86 // Get next neighbours
ac74f489 87 virtual void Neighbours(Int_t,Int_t,Int_t*,Int_t[10],Int_t[10]) {}
b0f5e3fc 88 //
89 // Current cell cursor during disintegration
90 // x-coordinate
91 virtual Int_t Ix() {return 0;}
92 // z-coordinate
93 virtual Int_t Iz() {return 0;}
94 //
95 // Signal Generation Condition during Stepping
ac74f489 96 virtual Int_t SigGenCond(Float_t,Float_t,Float_t) {return 0;}
b0f5e3fc 97 // Initialise signal generation at coord (x,y,z)
ac74f489 98 virtual void SigGenInit(Float_t,Float_t,Float_t) {}
b0f5e3fc 99 // Current integration limits
ac74f489 100 virtual void IntegrationLimits(Float_t&,Float_t&,Float_t&,Float_t&) {}
b0f5e3fc 101 // Test points for auto calibration
ac74f489 102 virtual void GiveTestPoints(Int_t &,Float_t *,Float_t *) {}
b0f5e3fc 103 // Function for systematic corrections
104 // Set the correction function
105 virtual void SetCorrFunc(Int_t, TF1*) {}
106 // Get the correction Function
107 virtual TF1* CorrFunc(Int_t) {return 0;}
108
109 ClassDef(AliITSsegmentation,1) //Segmentation virtual base class
110};
b0f5e3fc 111#endif