]>
Commit | Line | Data |
---|---|---|
a9e2aefa | 1 | #ifndef ALIMUONRESPONSEV0_H |
2 | #define ALIMUONRESPONSEV0_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
30178c30 | 7 | // Revision of includes 07/05/2004 |
a9e2aefa | 8 | |
9 | #include "AliMUONResponse.h" | |
a713db22 | 10 | #include "AliMUONMathieson.h" |
a9e2aefa | 11 | |
a713db22 | 12 | class AliMUONResponseV0 : public AliMUONResponse |
30178c30 | 13 | { |
a9e2aefa | 14 | public: |
30178c30 | 15 | AliMUONResponseV0(); |
a713db22 | 16 | virtual ~AliMUONResponseV0(); |
a9e2aefa | 17 | // |
18 | // Configuration methods | |
19 | // | |
20 | // Set number of sigmas over which cluster didintegration is performed | |
21 | virtual void SetSigmaIntegration(Float_t p1) {fSigmaIntegration=p1;} | |
22 | // Get number of sigmas over which cluster didintegration is performed | |
30178c30 | 23 | virtual Float_t SigmaIntegration() const {return fSigmaIntegration;} |
a9e2aefa | 24 | // Set single electron pulse height (ADCcounts/e) |
25 | virtual void SetChargeSlope(Float_t p1) {fChargeSlope=p1;} | |
26 | // Get Set single electron pulse height (ADCcounts/e) | |
30178c30 | 27 | virtual Float_t ChargeSlope() const {return fChargeSlope;} |
a9e2aefa | 28 | // Set sigmas of the charge spread function |
29 | virtual void SetChargeSpread(Float_t p1, Float_t p2) | |
30 | {fChargeSpreadX=p1; fChargeSpreadY=p2;} | |
31 | // Get sigma_X of the charge spread function | |
30178c30 | 32 | virtual Float_t ChargeSpreadX() const {return fChargeSpreadX;} |
a9e2aefa | 33 | // Get sigma_Y of the charge spread function |
30178c30 | 34 | virtual Float_t ChargeSpreadY() const {return fChargeSpreadY;} |
a9e2aefa | 35 | // Set maximum Adc-count value |
36 | virtual void SetMaxAdc(Int_t p1) {fMaxAdc=p1;} | |
a614d271 | 37 | // Set saturation value |
38 | virtual void SetSaturation(Int_t p1) {fSaturation=p1;} | |
a9e2aefa | 39 | // Set zero suppression threshold |
40 | virtual void SetZeroSuppression(Int_t p1) {fZeroSuppression=p1;} | |
41 | // Get maximum Adc-count value | |
30178c30 | 42 | virtual Int_t MaxAdc() const {return fMaxAdc;} |
a614d271 | 43 | // Get saturation value |
30178c30 | 44 | virtual Int_t Saturation() const {return fSaturation;} |
a614d271 | 45 | |
a9e2aefa | 46 | // Get zero suppression threshold |
30178c30 | 47 | virtual Int_t ZeroSuppression() const {return fZeroSuppression;} |
16d57990 | 48 | // Set the charge correlation |
49 | virtual void SetChargeCorrel(Float_t correl){fChargeCorrel = correl;} | |
50 | // Get the charge correlation | |
30178c30 | 51 | virtual Float_t ChargeCorrel() const {return fChargeCorrel;} |
a713db22 | 52 | |
53 | ||
54 | // Set anode cathode Pitch | |
55 | virtual Float_t Pitch() const {return fMathieson->Pitch();} | |
56 | // Get anode cathode Pitch | |
57 | virtual void SetPitch(Float_t p1) {fMathieson->SetPitch(p1);}; | |
58 | ||
a9e2aefa | 59 | // Set Mathieson parameters |
a713db22 | 60 | // Mathieson \sqrt{Kx3} and derived Kx2 and Kx4 |
61 | // passing pointer to class Mathieson for backward compatibility | |
62 | virtual void SetSqrtKx3AndDeriveKx2Kx4(Float_t SqrtKx3); | |
a9e2aefa | 63 | // Mathieson \sqrt{Kx3} |
a713db22 | 64 | virtual void SetSqrtKx3(Float_t p1) {fMathieson->SetSqrtKx3(p1);}; |
a9e2aefa | 65 | // Mathieson Kx2 |
a713db22 | 66 | virtual void SetKx2(Float_t p1) {fMathieson->SetKx2(p1);}; |
a9e2aefa | 67 | // Mathieson Kx4 |
a713db22 | 68 | virtual void SetKx4(Float_t p1) {fMathieson->SetKx4(p1);}; |
d5bfadcc | 69 | // Mathieson \sqrt{Ky3} and derived Ky2 and Ky4 |
70 | virtual void SetSqrtKy3AndDeriveKy2Ky4(Float_t SqrtKy3); | |
a9e2aefa | 71 | // Mathieson \sqrt{Ky3} |
a713db22 | 72 | virtual void SetSqrtKy3(Float_t p1) {fMathieson->SetSqrtKy3(p1);}; |
a9e2aefa | 73 | // Mathieson Ky2 |
a713db22 | 74 | virtual void SetKy2(Float_t p1) {fMathieson->SetKy2(p1);}; |
a9e2aefa | 75 | // Mathieson Ky4 |
a713db22 | 76 | virtual void SetKy4(Float_t p1) {fMathieson->SetKy4(p1);}; |
a9e2aefa | 77 | // |
78 | // Chamber response methods | |
79 | // Pulse height from scored quantity (eloss) | |
80 | virtual Float_t IntPH(Float_t eloss); | |
81 | // Charge disintegration | |
a30a000f | 82 | virtual Float_t IntXY(AliSegmentation * segmentation); |
a713db22 | 83 | virtual Float_t IntXY(Int_t idDE, AliMUONGeometrySegmentation* segmentation); |
a9e2aefa | 84 | // Noise, zero-suppression, adc saturation |
ba030c0e | 85 | virtual Int_t DigitResponse(Int_t digit, AliMUONTransientDigit* where); |
a9e2aefa | 86 | |
87 | ClassDef(AliMUONResponseV0,1) // Implementation of Mathieson response | |
88 | protected: | |
89 | Float_t fChargeSlope; // Slope of the charge distribution | |
90 | Float_t fChargeSpreadX; // Width of the charge distribution in x | |
91 | Float_t fChargeSpreadY; // Width of the charge distribution in y | |
92 | Float_t fSigmaIntegration; // Number of sigma's used for charge distribution | |
93 | Int_t fMaxAdc; // Maximum ADC channel | |
a614d271 | 94 | Int_t fSaturation; // Pad saturation in ADC channel |
a9e2aefa | 95 | Int_t fZeroSuppression; // Zero suppression threshold |
16d57990 | 96 | Float_t fChargeCorrel; // amplitude of charge correlation on 2 cathods |
97 | // is RMS of ln(q1/q2) | |
a713db22 | 98 | AliMUONMathieson* fMathieson; // pointer to mathieson fct |
99 | ||
100 | /* Float_t fSqrtKx3; // Mathieson Sqrt(Kx3) */ | |
101 | /* Float_t fKx2; // Mathieson Kx2 */ | |
102 | /* Float_t fKx4; // Mathieson Kx4 = Kx1/Kx2/Sqrt(Kx3) */ | |
103 | /* Float_t fSqrtKy3; // Mathieson Sqrt(Ky3) */ | |
104 | /* Float_t fKy2; // Mathieson Ky2 */ | |
105 | /* Float_t fKy4; // Mathieson Ky4 = Ky1/Ky2/Sqrt(Ky3) */ | |
106 | /* Float_t fPitch; // anode-cathode pitch */ | |
a9e2aefa | 107 | }; |
108 | #endif | |
109 | ||
110 | ||
111 | ||
112 | ||
113 | ||
114 | ||
115 | ||
116 | ||
117 | ||
118 | ||
119 |