]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONResponseV0.h
fChargeCorrel moved from AliMUONChamber to AliMUONResponse as decided by
[u/mrichter/AliRoot.git] / MUON / AliMUONResponseV0.h
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$ */
7
8 #include "AliMUONResponse.h"
9
10 class AliMUONResponseV0 : 
11 public AliMUONResponse {
12  public:
13     AliMUONResponseV0(){fChargeCorrel = 0;} // by default
14     virtual ~AliMUONResponseV0(){}
15     //
16     // Configuration methods
17     //
18     // Set number of sigmas over which cluster didintegration is performed
19     virtual void    SetSigmaIntegration(Float_t p1) {fSigmaIntegration=p1;}
20     // Get number of sigmas over which cluster didintegration is performed   
21     virtual Float_t SigmaIntegration() {return fSigmaIntegration;}    
22     // Set single electron pulse height (ADCcounts/e)
23     virtual void    SetChargeSlope(Float_t p1) {fChargeSlope=p1;}
24     // Get Set single electron pulse height (ADCcounts/e)
25     virtual Float_t ChargeSlope()      {return fChargeSlope;}
26     // Set sigmas of the charge spread function
27     virtual void    SetChargeSpread(Float_t p1, Float_t p2)
28         {fChargeSpreadX=p1; fChargeSpreadY=p2;}
29     // Get sigma_X of the charge spread function
30     virtual Float_t ChargeSpreadX()    {return fChargeSpreadX;}
31     // Get sigma_Y of the charge spread function
32     virtual Float_t ChargeSpreadY()    {return fChargeSpreadY;}        
33     // Set maximum Adc-count value
34     virtual void    SetMaxAdc(Int_t p1) {fMaxAdc=p1;}
35     // Set zero suppression threshold
36     virtual void    SetZeroSuppression(Int_t p1) {fZeroSuppression=p1;}
37     // Get maximum Adc-count value   
38     virtual Int_t   MaxAdc()           {return fMaxAdc;}
39     // Get zero suppression threshold
40     virtual Int_t   ZeroSuppression() {return fZeroSuppression;}
41     // Set anode cathode Pitch
42     virtual Float_t Pitch()            {return fPitch;}
43     // Get anode cathode Pitch
44     virtual void    SetPitch(Float_t p1) {fPitch=p1;};
45     // Set the charge correlation
46     virtual void SetChargeCorrel(Float_t correl){fChargeCorrel = correl;}
47     // Get the charge correlation
48     virtual Float_t ChargeCorrel(){return fChargeCorrel;}
49     // Set Mathieson parameters
50     // Mathieson \sqrt{Kx3} and derived Kx2 and Kx4
51     virtual void SetSqrtKx3AndDeriveKx2Kx4(Float_t SqrtKx3);
52     // Mathieson \sqrt{Kx3}
53     virtual void    SetSqrtKx3(Float_t p1) {fSqrtKx3=p1;};
54     // Mathieson Kx2
55     virtual void    SetKx2(Float_t p1) {fKx2=p1;};
56     // Mathieson Kx4
57     virtual void    SetKx4(Float_t p1) {fKx4=p1;};
58     // Mathieson \sqrt{Ky3} and derived Ky2 and Ky4
59     virtual void SetSqrtKy3AndDeriveKy2Ky4(Float_t SqrtKy3);
60     // Mathieson \sqrt{Ky3}
61     virtual void    SetSqrtKy3(Float_t p1) {fSqrtKy3=p1;};
62     // Mathieson Ky2
63     virtual void    SetKy2(Float_t p1) {fKy2=p1;};
64     // Mathieson Ky4
65     virtual void    SetKy4(Float_t p1) {fKy4=p1;};
66     //  
67     // Chamber response methods
68     // Pulse height from scored quantity (eloss)
69     virtual Float_t  IntPH(Float_t eloss);
70     // Charge disintegration
71     virtual Float_t  IntXY(AliSegmentation * segmentation);
72     // Noise, zero-suppression, adc saturation
73     virtual Int_t DigitResponse(Int_t digit);
74
75     ClassDef(AliMUONResponseV0,1) // Implementation of Mathieson response
76  protected:
77     Float_t fChargeSlope;              // Slope of the charge distribution
78     Float_t fChargeSpreadX;            // Width of the charge distribution in x
79     Float_t fChargeSpreadY;            // Width of the charge distribution in y
80     Float_t fSigmaIntegration;         // Number of sigma's used for charge distribution
81     Int_t   fMaxAdc;                   // Maximum ADC channel
82     Int_t   fZeroSuppression;          // Zero suppression threshold
83     Float_t fChargeCorrel;             // amplitude of charge correlation on 2 cathods
84                                        // is RMS of ln(q1/q2)
85     Float_t fSqrtKx3;                  // Mathieson Sqrt(Kx3)
86     Float_t fKx2;                      // Mathieson Kx2
87     Float_t fKx4;                      // Mathieson Kx4 = Kx1/Kx2/Sqrt(Kx3)  
88     Float_t fSqrtKy3;                  // Mathieson Sqrt(Ky3)
89     Float_t fKy2;                      // Mathieson Ky2
90     Float_t fKy4;                      // Mathieson Ky4 = Ky1/Ky2/Sqrt(Ky3)
91     Float_t fPitch;                    // anode-cathode pitch
92 };
93 #endif
94
95
96
97
98
99
100
101
102
103
104