Remove several warnings
[u/mrichter/AliRoot.git] / MUON / AliMUONSegRes.h
CommitLineData
a897a37a 1#ifndef MUONSegRes_H
2#define MUONSegRes_H
3#include "TObject.h"
4#include "TClonesArray.h"
5#include "TF1.h"
6class AliMUONchamber;
a897a37a 7
8//----------------------------------------------
9//
10// Chamber segmentation virtual base class
11//
12class AliMUONsegmentation :
13public TObject {
14 public:
15 // Set Chamber Segmentation Parameters
16 //
17 // Pad size Dx*Dy
18 virtual void SetPADSIZ(Float_t p1, Float_t p2) =0;
19 // Anod Pitch
20 virtual void SetDAnod(Float_t D) =0;
21 // Transform from pad (wire) to real coordinates and vice versa
22 //
23 // Anod wire coordinate closest to xhit
24 virtual Float_t GetAnod(Float_t xhit) =0;
25 // Transform from pad to real coordinates
26 virtual void GetPadIxy(Float_t x ,Float_t y ,Int_t &ix,Int_t &iy)=0;
27 // Transform from real to pad coordinates
28 virtual void GetPadCxy(Int_t ix,Int_t iy,Float_t &x ,Float_t &y )=0;
29 //
30 // Initialisation
31 virtual void Init(AliMUONchamber*) =0;
32 //
33 // Get member data
34 //
35 // Pad size in x
36 virtual Float_t Dpx() =0;
37 // Pad size in y
38 virtual Float_t Dpy() =0;
39 // Pad size in x by Sector
40 virtual Float_t Dpx(Int_t) =0;
41 // Pad size in y by Sector
42 virtual Float_t Dpy(Int_t) =0;
43 // Max number of Pads in x
44 virtual Int_t Npx() =0;
45 // max number of Pads in y
46 virtual Int_t Npy() =0;
47 // set pad position
48 virtual void SetPad(Int_t, Int_t) =0;
49 // set hit position
50 virtual void SetHit(Float_t, Float_t) =0;
51
52 //
53 // Iterate over pads
54 // Initialiser
55 virtual void FirstPad(Float_t xhit, Float_t yhit, Float_t dx, Float_t dy) =0;
56 // Stepper
57 virtual void NextPad() =0;
58 // Condition
59 virtual Int_t MorePads() =0;
60 //
61 // Distance between 1 pad and a position
62 virtual Float_t Distance2AndOffset(Int_t iX, Int_t iY, Float_t X, Float_t Y, Int_t *dummy) =0;
63 // Number of pads read in parallel and offset to add to x
64 // (specific to LYON, but mandatory for display)
65 virtual void GetNParallelAndOffset(Int_t iX, Int_t iY,
66 Int_t *Nparallel, Int_t *Offset) =0;
67 // Get next neighbours
68 virtual void Neighbours
69 (Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[10], Int_t Ylist[10]) =0;
a897a37a 70 // Current pad cursor during disintegration
71 // x-coordinate
72 virtual Int_t Ix() =0;
73 // y-coordinate
74 virtual Int_t Iy() =0;
75 // current sector
76 virtual Int_t ISector() =0;
77 // calculate sector from pad coordinates
78 virtual Int_t Sector(Int_t ix, Int_t iy) =0;
79 //
80 // Signal Generation Condition during Stepping
81 virtual Int_t SigGenCond(Float_t x, Float_t y, Float_t z) = 0;
82 // Initialise signal gneration at coord (x,y,z)
83 virtual void SigGenInit(Float_t x, Float_t y, Float_t z) = 0;
84 // Current integration limits
85 virtual void IntegrationLimits
86 (Float_t& x1, Float_t& x2, Float_t& y1, Float_t& y2) = 0;
87 // Test points for auto calibration
88 virtual void GiveTestPoints(Int_t &n, Float_t *x, Float_t *y) = 0;
89 // Debug utilities
e3a4d40e 90 virtual void Draw(Option_t *) = 0;
a897a37a 91 // Function for systematic corrections
92 virtual void SetCorrFunc(Int_t, TF1*) = 0;
93 virtual TF1* CorrFunc(Int_t) = 0;
94
95 ClassDef(AliMUONsegmentation,1) //Segmentation class for homogeneous segmentation
96};
97//----------------------------------------------
98//
99// Chamber response virtual base class
100//
101class AliMUONresponse :
102public TObject {
103 public:
104 //
105 // Configuration methods
106 //
107 // Number of sigmas over which cluster didintegration is performed
108 virtual void SetSigmaIntegration(Float_t p1) =0;
109 virtual Float_t SigmaIntegration() =0;
110 // charge slope in ADC/e
111 virtual void SetChargeSlope(Float_t p1) =0;
112 virtual Float_t ChargeSlope() =0;
113 // sigma of the charge spread function
114 virtual void SetChargeSpread(Float_t p1, Float_t p2) =0;
115 virtual Float_t ChargeSpreadX() =0;
116 virtual Float_t ChargeSpreadY() =0;
117 // Adc-count saturation value
118 virtual void SetMaxAdc(Float_t p1) =0;
119 virtual Float_t MaxAdc() =0;
120 // anode cathode Pitch
121 virtual void SetPitch(Float_t) =0;
122 virtual Float_t Pitch() =0;
123 //
124 // Chamber response methods
125 // Pulse height from scored quantity (eloss)
126 virtual Float_t IntPH(Float_t eloss) =0;
127 // Charge disintegration
128 virtual Float_t IntXY(AliMUONsegmentation *) =0;
129
130 ClassDef(AliMUONresponse,1) // Implementation of Mathieson CPC response
131};
132#endif
133
134
135