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