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