]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSv1.h
New default calibration parameters (Yu.Kharlov)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv1.h
1 #ifndef ALIPHOSV1_H
2 #define ALIPHOSV1_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 /* History of cvs commits:
9  *
10  * $Log$
11  */
12
13 //_________________________________________________________________________
14 // Implementation version v1 of PHOS Manager class 
15 // Layout EMC + CPV  has name IHEP
16 //*--                  
17 //*-- Author: Yves Schutz (SUBATECH)
18
19 // --- ROOT system ---
20 class TClonesArray ;
21 class TLorentzVector ;
22 class TFile;
23
24 // --- AliRoot header files ---
25 #include "AliPHOSv0.h"
26
27 class AliPHOSv1 : public AliPHOSv0 {
28
29 public:
30
31   AliPHOSv1(void) ;
32   AliPHOSv1(const char *name, const char *title="") ;
33   AliPHOSv1(AliPHOSv1 & phos) : AliPHOSv0(phos) {
34     phos.Copy(*this) ; 
35   }
36   virtual ~AliPHOSv1(void) ;
37
38   virtual void   Copy(TObject &phos) const; 
39
40   using AliPHOSv0::AddHit;
41   virtual void   AddHit( Int_t shunt, Int_t primary, Int_t id, Float_t *hits) ; 
42   virtual void   FinishEvent() ;
43   virtual void   FinishPrimary() ;
44   virtual Int_t  IsVersion(void) const {
45     // Gives the version number 
46     return 1 ; 
47   }
48
49   virtual void   StepManager(void) ;                              
50   virtual const TString Version(void)const { return TString("v1") ;  }
51
52   AliPHOSv1 & operator = (const AliPHOSv1 & /*rvalue*/)  {
53     // assignement operator requested by coding convention but not needed
54     Fatal("operator =", "not implemented") ;
55     return *this ; 
56   }
57
58   void       CPVDigitize (TLorentzVector p, Float_t *xy, TClonesArray *digits) ;
59   Float_t    CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
60   Double_t   CPVCumulPadResponse(Double_t x, Double_t y) ;
61
62   //Variables conserning light yeild and APD efficiency
63   Float_t GetLightYieldMean()         const { return  fLightYieldMean ;}
64   Float_t GetLightYieldAttenuation()  const { return  fLightYieldAttenuation ;}
65   Float_t GetRecalibrationFactor()    const { return  fRecalibrationFactor ;}
66   Float_t GetAPDGain()                const { return  fAPDGain ;}
67   Float_t GetIntrinsicPINEfficiency() const { return  fIntrinsicPINEfficiency ;}
68   Float_t GetElectronsPerGeV()        const { return  fElectronsPerGeV ;}
69
70   void    SetLightYieldMean(Float_t LightYieldMean) 
71                                    {fLightYieldMean = LightYieldMean;}
72   void    SetLightYieldAttenuation(Float_t LightYieldAttenuation)
73                                    {fLightYieldAttenuation = LightYieldAttenuation;}
74   void    SetIntrinsicPINEfficiency(Float_t IntrinsicPINEfficiency) 
75                                    {fIntrinsicPINEfficiency = IntrinsicPINEfficiency;}
76   void    SetRecalibrationFactor(Float_t RecalibrationFactor) 
77                                    {fRecalibrationFactor = RecalibrationFactor;}
78   void    SetElectronsPerGeV(Float_t ElectronsPerGeV) 
79                                    {fElectronsPerGeV = ElectronsPerGeV;}
80   void    SetAPDGain(Float_t APDGain)   {fAPDGain = APDGain;}
81
82 protected:
83
84   Float_t fLightYieldMean ;         // Mean lightyield in the PbOW4 xtal per GeV (Poisson distribution)
85   Float_t fIntrinsicPINEfficiency ; // Photo efficiency of the PIN diode   
86   Float_t fLightYieldAttenuation ;  // Attenuation of the light through the crystal
87   Float_t fRecalibrationFactor ;    // Recalibration factor
88   Float_t fElectronsPerGeV ;        // Number of electrons per GeV created in the PIN by a ionizing particle
89   Float_t fAPDGain ;                // APD Gain
90   Float_t fLightFactor ;            //! a calculated factor
91   Float_t fAPDFactor ;              //! a calculated factor
92
93   ClassDef(AliPHOSv1,2)  // Implementation of PHOS manager class for layout EMC+PPSD
94
95 };
96
97 #endif // AliPHOSV1_H