ROOT logo
#ifndef ALIMUONRESPONSEV0_H
#define ALIMUONRESPONSEV0_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

/* $Id$ */
// Revision of includes 07/05/2004

/// \ingroup sim
/// \class AliMUONResponseV0
/// \brief Implementation of Mathieson response

#include "AliMUONResponse.h"
#include "AliMUONMathieson.h"

class AliMUONResponseV0 : public AliMUONResponse
{
 public:
  AliMUONResponseV0();
  AliMUONResponseV0(const AliMUONResponseV0& rhs);
  AliMUONResponseV0& operator = (const AliMUONResponseV0& rhs);
  virtual ~AliMUONResponseV0();
  
  //
    // Configuration methods
    //
    /// Set number of sigmas over which cluster didintegration is performed
    virtual void    SetSigmaIntegration(Float_t p1) {fSigmaIntegration=p1;}
    /// Get number of sigmas over which cluster didintegration is performed   
    virtual Float_t SigmaIntegration() const {return fSigmaIntegration;}    
    /// Set single electron pulse height (ADCcounts/e)
    virtual void    SetChargeSlope(Float_t p1) {fChargeSlope=p1;}
    /// Get Set single electron pulse height (ADCcounts/e)
    virtual Float_t ChargeSlope() const     {return fChargeSlope;}
    /// Set sigmas of the charge spread function
    virtual void    SetChargeSpread(Float_t p1, Float_t p2)
	{fChargeSpreadX=p1; fChargeSpreadY=p2;}
    /// Get sigma_X of the charge spread function
    virtual Float_t ChargeSpreadX() const    {return fChargeSpreadX;}
    /// Get sigma_Y of the charge spread function
    virtual Float_t ChargeSpreadY() const    {return fChargeSpreadY;}        
    /// Set maximum Adc-count value
    virtual void    SetMaxAdc(Int_t p1) {fMaxAdc=p1;}
    /// Set saturation value
    virtual void    SetSaturation(Int_t p1) {fSaturation=p1;}
    /// Set zero suppression threshold
    virtual void    SetZeroSuppression(Int_t p1) {fZeroSuppression=p1;}
    /// Get maximum Adc-count value   
    virtual Int_t   MaxAdc() const          {return fMaxAdc;}
    /// Get saturation value   
    virtual Int_t   Saturation() const      {return fSaturation;}

    /// Get zero suppression threshold
    virtual Int_t   ZeroSuppression() const {return fZeroSuppression;}
    /// Set the charge correlation
    virtual void SetChargeCorrel(Float_t correl){fChargeCorrel = correl;}
    /// Get the charge correlation
    virtual Float_t ChargeCorrel() const {return fChargeCorrel;}


    /// Set anode cathode Pitch
    virtual Float_t Pitch() const           {return fMathieson->Pitch();}
    /// Get anode cathode Pitch
    virtual void    SetPitch(Float_t p1)    {fMathieson->SetPitch(p1);};

    /// Set Mathieson parameters
    /// Mathieson sqrt{Kx3} and derived Kx2 and Kx4 
    /// passing pointer to class Mathieson for backward compatibility
    virtual void    SetSqrtKx3AndDeriveKx2Kx4(Float_t SqrtKx3);
    /// Mathieson sqrt{Kx3}
    virtual void    SetSqrtKx3(Float_t p1) {fMathieson->SetSqrtKx3(p1);};
    /// Mathieson Kx2
    virtual void    SetKx2(Float_t p1)     {fMathieson->SetKx2(p1);};
    /// Mathieson Kx4
    virtual void    SetKx4(Float_t p1)     {fMathieson->SetKx4(p1);};
    /// Mathieson sqrt{Ky3} and derived Ky2 and Ky4
    virtual void SetSqrtKy3AndDeriveKy2Ky4(Float_t SqrtKy3);
    /// Mathieson sqrt{Ky3}
    virtual void    SetSqrtKy3(Float_t p1) {fMathieson->SetSqrtKy3(p1);};
    /// Mathieson Ky2
    virtual void    SetKy2(Float_t p1)     {fMathieson->SetKy2(p1);};
    /// Mathieson Ky4
      virtual void SetKy4(Float_t p1)     {fMathieson->SetKy4(p1);};
    //  
    // Chamber response methods
    // Pulse height from scored quantity (eloss)
    virtual Float_t  IntPH(Float_t eloss) const;

    /// Parametrised tail effect in resolution histogram
    virtual void    SetTailEffect(Bool_t isTail) {fIsTailEffect=isTail;}
    
    virtual Float_t GetAnod(Float_t x) const;
    
    virtual void DisIntegrate(const AliMUONHit& hit, TList& digits, Float_t timeDif);
    
    virtual void Print(Option_t* opt="") const;
  
private:
    void CopyTo(AliMUONResponseV0& other) const;
    
private:
   
    Float_t fChargeSlope;              ///< Slope of the charge distribution
    Float_t fChargeSpreadX;            ///< Width of the charge distribution in x
    Float_t fChargeSpreadY;            ///< Width of the charge distribution in y
    Float_t fSigmaIntegration;         ///< Number of sigma's used for charge distribution
    Int_t   fMaxAdc;                   ///< Maximum ADC channel
    Int_t   fSaturation;               ///< Pad saturation in ADC channel
    Int_t   fZeroSuppression;          ///< Zero suppression threshold
    Float_t fChargeCorrel;             ///< \brief amplitude of charge correlation on 2 cathods
                                       ///  is RMS of ln(q1/q2)
    AliMUONMathieson* fMathieson;      ///< pointer to mathieson fct
    Float_t fChargeThreshold;          ///< Charges below this threshold are = 0  
    Bool_t   fIsTailEffect;            ///< switch to turn on/off the tail effect
      

    ClassDef(AliMUONResponseV0,2) // Implementation of detector response
};

#endif











 AliMUONResponseV0.h:1
 AliMUONResponseV0.h:2
 AliMUONResponseV0.h:3
 AliMUONResponseV0.h:4
 AliMUONResponseV0.h:5
 AliMUONResponseV0.h:6
 AliMUONResponseV0.h:7
 AliMUONResponseV0.h:8
 AliMUONResponseV0.h:9
 AliMUONResponseV0.h:10
 AliMUONResponseV0.h:11
 AliMUONResponseV0.h:12
 AliMUONResponseV0.h:13
 AliMUONResponseV0.h:14
 AliMUONResponseV0.h:15
 AliMUONResponseV0.h:16
 AliMUONResponseV0.h:17
 AliMUONResponseV0.h:18
 AliMUONResponseV0.h:19
 AliMUONResponseV0.h:20
 AliMUONResponseV0.h:21
 AliMUONResponseV0.h:22
 AliMUONResponseV0.h:23
 AliMUONResponseV0.h:24
 AliMUONResponseV0.h:25
 AliMUONResponseV0.h:26
 AliMUONResponseV0.h:27
 AliMUONResponseV0.h:28
 AliMUONResponseV0.h:29
 AliMUONResponseV0.h:30
 AliMUONResponseV0.h:31
 AliMUONResponseV0.h:32
 AliMUONResponseV0.h:33
 AliMUONResponseV0.h:34
 AliMUONResponseV0.h:35
 AliMUONResponseV0.h:36
 AliMUONResponseV0.h:37
 AliMUONResponseV0.h:38
 AliMUONResponseV0.h:39
 AliMUONResponseV0.h:40
 AliMUONResponseV0.h:41
 AliMUONResponseV0.h:42
 AliMUONResponseV0.h:43
 AliMUONResponseV0.h:44
 AliMUONResponseV0.h:45
 AliMUONResponseV0.h:46
 AliMUONResponseV0.h:47
 AliMUONResponseV0.h:48
 AliMUONResponseV0.h:49
 AliMUONResponseV0.h:50
 AliMUONResponseV0.h:51
 AliMUONResponseV0.h:52
 AliMUONResponseV0.h:53
 AliMUONResponseV0.h:54
 AliMUONResponseV0.h:55
 AliMUONResponseV0.h:56
 AliMUONResponseV0.h:57
 AliMUONResponseV0.h:58
 AliMUONResponseV0.h:59
 AliMUONResponseV0.h:60
 AliMUONResponseV0.h:61
 AliMUONResponseV0.h:62
 AliMUONResponseV0.h:63
 AliMUONResponseV0.h:64
 AliMUONResponseV0.h:65
 AliMUONResponseV0.h:66
 AliMUONResponseV0.h:67
 AliMUONResponseV0.h:68
 AliMUONResponseV0.h:69
 AliMUONResponseV0.h:70
 AliMUONResponseV0.h:71
 AliMUONResponseV0.h:72
 AliMUONResponseV0.h:73
 AliMUONResponseV0.h:74
 AliMUONResponseV0.h:75
 AliMUONResponseV0.h:76
 AliMUONResponseV0.h:77
 AliMUONResponseV0.h:78
 AliMUONResponseV0.h:79
 AliMUONResponseV0.h:80
 AliMUONResponseV0.h:81
 AliMUONResponseV0.h:82
 AliMUONResponseV0.h:83
 AliMUONResponseV0.h:84
 AliMUONResponseV0.h:85
 AliMUONResponseV0.h:86
 AliMUONResponseV0.h:87
 AliMUONResponseV0.h:88
 AliMUONResponseV0.h:89
 AliMUONResponseV0.h:90
 AliMUONResponseV0.h:91
 AliMUONResponseV0.h:92
 AliMUONResponseV0.h:93
 AliMUONResponseV0.h:94
 AliMUONResponseV0.h:95
 AliMUONResponseV0.h:96
 AliMUONResponseV0.h:97
 AliMUONResponseV0.h:98
 AliMUONResponseV0.h:99
 AliMUONResponseV0.h:100
 AliMUONResponseV0.h:101
 AliMUONResponseV0.h:102
 AliMUONResponseV0.h:103
 AliMUONResponseV0.h:104
 AliMUONResponseV0.h:105
 AliMUONResponseV0.h:106
 AliMUONResponseV0.h:107
 AliMUONResponseV0.h:108
 AliMUONResponseV0.h:109
 AliMUONResponseV0.h:110
 AliMUONResponseV0.h:111
 AliMUONResponseV0.h:112
 AliMUONResponseV0.h:113
 AliMUONResponseV0.h:114
 AliMUONResponseV0.h:115
 AliMUONResponseV0.h:116
 AliMUONResponseV0.h:117
 AliMUONResponseV0.h:118
 AliMUONResponseV0.h:119
 AliMUONResponseV0.h:120
 AliMUONResponseV0.h:121
 AliMUONResponseV0.h:122
 AliMUONResponseV0.h:123
 AliMUONResponseV0.h:124
 AliMUONResponseV0.h:125
 AliMUONResponseV0.h:126
 AliMUONResponseV0.h:127
 AliMUONResponseV0.h:128
 AliMUONResponseV0.h:129
 AliMUONResponseV0.h:130
 AliMUONResponseV0.h:131