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 */
7 // Revision of includes 07/05/2004
10 /// \class AliMUONResponseV0
11 /// \brief Implementation of Mathieson response
13 #include "AliMUONResponse.h"
14 #include "AliMUONMathieson.h"
16 class AliMUONResponseV0 : public AliMUONResponse
20 virtual ~AliMUONResponseV0();
22 // Configuration methods
24 // Set number of sigmas over which cluster didintegration is performed
25 virtual void SetSigmaIntegration(Float_t p1) {fSigmaIntegration=p1;}
26 // Get number of sigmas over which cluster didintegration is performed
27 virtual Float_t SigmaIntegration() const {return fSigmaIntegration;}
28 // Set single electron pulse height (ADCcounts/e)
29 virtual void SetChargeSlope(Float_t p1) {fChargeSlope=p1;}
30 // Get Set single electron pulse height (ADCcounts/e)
31 virtual Float_t ChargeSlope() const {return fChargeSlope;}
32 // Set sigmas of the charge spread function
33 virtual void SetChargeSpread(Float_t p1, Float_t p2)
34 {fChargeSpreadX=p1; fChargeSpreadY=p2;}
35 // Get sigma_X of the charge spread function
36 virtual Float_t ChargeSpreadX() const {return fChargeSpreadX;}
37 // Get sigma_Y of the charge spread function
38 virtual Float_t ChargeSpreadY() const {return fChargeSpreadY;}
39 // Set maximum Adc-count value
40 virtual void SetMaxAdc(Int_t p1) {fMaxAdc=p1;}
41 // Set saturation value
42 virtual void SetSaturation(Int_t p1) {fSaturation=p1;}
43 // Set zero suppression threshold
44 virtual void SetZeroSuppression(Int_t p1) {fZeroSuppression=p1;}
45 // Get maximum Adc-count value
46 virtual Int_t MaxAdc() const {return fMaxAdc;}
47 // Get saturation value
48 virtual Int_t Saturation() const {return fSaturation;}
50 // Get zero suppression threshold
51 virtual Int_t ZeroSuppression() const {return fZeroSuppression;}
52 // Set the charge correlation
53 virtual void SetChargeCorrel(Float_t correl){fChargeCorrel = correl;}
54 // Get the charge correlation
55 virtual Float_t ChargeCorrel() const {return fChargeCorrel;}
58 // Set anode cathode Pitch
59 virtual Float_t Pitch() const {return fMathieson->Pitch();}
60 // Get anode cathode Pitch
61 virtual void SetPitch(Float_t p1) {fMathieson->SetPitch(p1);};
63 // Set Mathieson parameters
64 // Mathieson \sqrt{Kx3} and derived Kx2 and Kx4
65 // passing pointer to class Mathieson for backward compatibility
66 virtual void SetSqrtKx3AndDeriveKx2Kx4(Float_t SqrtKx3);
67 // Mathieson \sqrt{Kx3}
68 virtual void SetSqrtKx3(Float_t p1) {fMathieson->SetSqrtKx3(p1);};
70 virtual void SetKx2(Float_t p1) {fMathieson->SetKx2(p1);};
72 virtual void SetKx4(Float_t p1) {fMathieson->SetKx4(p1);};
73 // Mathieson \sqrt{Ky3} and derived Ky2 and Ky4
74 virtual void SetSqrtKy3AndDeriveKy2Ky4(Float_t SqrtKy3);
75 // Mathieson \sqrt{Ky3}
76 virtual void SetSqrtKy3(Float_t p1) {fMathieson->SetSqrtKy3(p1);};
78 virtual void SetKy2(Float_t p1) {fMathieson->SetKy2(p1);};
80 virtual void SetKy4(Float_t p1) {fMathieson->SetKy4(p1);};
82 // Chamber response methods
83 // Pulse height from scored quantity (eloss)
84 virtual Float_t IntPH(Float_t eloss);
85 // Charge disintegration
86 virtual Float_t IntXY(Int_t idDE, AliMUONGeometrySegmentation* segmentation);
87 // Noise, zero-suppression, adc saturation
88 virtual Int_t DigitResponse(Int_t digit, AliMUONTransientDigit* where);
90 virtual Float_t GetAnod(Float_t x) const;
92 virtual void DisIntegrate(const AliMUONHit& hit, TList& digits);
94 virtual void Print(Option_t* opt="") const;
97 AliMUONResponseV0(const AliMUONResponseV0& rhs);
98 AliMUONResponseV0& operator = (const AliMUONResponseV0& rhs);
100 Float_t fChargeSlope; // Slope of the charge distribution
101 Float_t fChargeSpreadX; // Width of the charge distribution in x
102 Float_t fChargeSpreadY; // Width of the charge distribution in y
103 Float_t fSigmaIntegration; // Number of sigma's used for charge distribution
104 Int_t fMaxAdc; // Maximum ADC channel
105 Int_t fSaturation; // Pad saturation in ADC channel
106 Int_t fZeroSuppression; // Zero suppression threshold
107 Float_t fChargeCorrel; // amplitude of charge correlation on 2 cathods
108 // is RMS of ln(q1/q2)
109 AliMUONMathieson* fMathieson; // pointer to mathieson fct
110 Float_t fChargeThreshold; // Charges below this threshold are = 0
112 ClassDef(AliMUONResponseV0,2) // Implementation of detector response