]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSv1.h
Minor improvements on the code
[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 + PPSD has name GPS2  
9 // Layout EMC + CPV  has name IHEP
10 //*--                  
11 //*-- Author: Yves Schutz (SUBATECH)
12
13 // --- ROOT system ---
14 class TClonesArray ;
15 class TLorentzVector ;
16 class TFile;
17
18 // --- AliRoot header files ---
19 #include "AliPHOSv0.h"
20 class AliPHOSQAIntCheckable ; 
21 class AliPHOSQAFloatCheckable ; 
22
23 class AliPHOSv1 : public AliPHOSv0 {
24
25 public:
26
27   AliPHOSv1(void) ;
28   AliPHOSv1(const char *name, const char *title="") ;
29   AliPHOSv1(const AliPHOSv1 & phos) {
30     // cpy ctor: no implementation yet
31     // requested by the Coding Convention
32     abort() ; 
33   }
34   virtual ~AliPHOSv1(void) ;
35
36   virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits) ; 
37   virtual void   FinishEvent() ;
38   virtual void   FinishPrimary() ;
39   virtual Int_t  IsVersion(void) const {
40     // Gives the version number 
41     return 1 ; 
42   }
43
44   virtual void   StepManager(void) ;                              
45   virtual TString Version(void){ return TString("v1") ;  }
46
47   AliPHOSv1 & operator = (const AliPHOSv1 & rvalue)  {
48     // assignement operator requested by coding convention but not needed
49     abort() ;
50     return *this ; 
51   }
52
53   void       CPVDigitize (TLorentzVector p, Float_t *xy, Int_t moduleNumber, TClonesArray *digits) ;
54   Float_t    CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
55   Double_t   CPVCumulPadResponse(Double_t x, Double_t y) ;
56
57   //Variables conserning light yeild and APD efficiency
58   Float_t GetLightYieldMean()         const { return  fLightYieldMean ;}
59   Float_t GetLightYieldAttenuation()  const { return  fLightYieldAttenuation ;}
60   Float_t GetRecalibrationFactor()    const { return  fRecalibrationFactor ;}
61   Float_t GetAPDGain()                const { return  fAPDGain ;}
62   Float_t GetIntrinsicPINEfficiency() const { return  fIntrinsicPINEfficiency ;}
63   Float_t GetElectronsPerGeV()        const { return  fElectronsPerGeV ;}
64
65   void    SetLightYieldMean(Float_t LightYieldMean) 
66                                    {fLightYieldMean = LightYieldMean;}
67   void    SetLightYieldAttenuation(Float_t LightYieldAttenuation)
68                                    {fLightYieldAttenuation = LightYieldAttenuation;}
69   void    SetIntrinsicPINEfficiency(Float_t IntrinsicPINEfficiency) 
70                                    {fIntrinsicPINEfficiency = IntrinsicPINEfficiency;}
71   void    SetRecalibrationFactor(Float_t RecalibrationFactor) 
72                                    {fRecalibrationFactor = RecalibrationFactor;}
73   void    SetElectronsPerGeV(Float_t ElectronsPerGeV) 
74                                    {fElectronsPerGeV = ElectronsPerGeV;}
75   void    SetAPDGain(Float_t APDGain)   {fAPDGain = APDGain;}
76
77 protected:
78
79   AliPHOSQAIntCheckable   * fQAHitsMul ;  // QA Hits Multiplicity checkable
80   TClonesArray * fQAHitsMulB ;            // QA Hits Multiplicity / Block checkable
81   AliPHOSQAFloatCheckable * fQATotEner ;  // QA Total Energy checkable
82   TClonesArray * fQATotEnerB ;            // QA Total Energy / Block checkable
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
91   ClassDef(AliPHOSv1,1)  // Implementation of PHOS manager class for layout EMC+PPSD
92
93 };
94
95 #endif // AliPHOSV1_H