]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSv1.h
Make compatible with TVirtualMC.
[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 class AliPHOSQAIntCheckable ; 
20 class AliPHOSQAFloatCheckable ; 
21
22 class AliPHOSv1 : public AliPHOSv0 {
23
24 public:
25
26   AliPHOSv1(void) ;
27   AliPHOSv1(const char *name, const char *title="") ;
28   AliPHOSv1(const AliPHOSv1 & phos) : AliPHOSv0(phos) {
29     // cpy ctor: no implementation yet
30     // requested by the Coding Convention
31     Fatal("cpy ctor", "not implemented") ; 
32   }
33   virtual ~AliPHOSv1(void) ;
34
35   virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits) ; 
36   virtual void   FinishEvent() ;
37   virtual void   FinishPrimary() ;
38   virtual Int_t  IsVersion(void) const {
39     // Gives the version number 
40     return 1 ; 
41   }
42
43   virtual void   StepManager(void) ;                              
44   virtual const TString Version(void)const { return TString("v1") ;  }
45
46   AliPHOSv1 & operator = (const AliPHOSv1 & rvalue)  {
47     // assignement operator requested by coding convention but not needed
48     Fatal("operator =", "not implemented") ;
49     return *this ; 
50   }
51
52   void       CPVDigitize (TLorentzVector p, Float_t *xy, TClonesArray *digits) ;
53   Float_t    CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
54   Double_t   CPVCumulPadResponse(Double_t x, Double_t y) ;
55
56   //Variables conserning light yeild and APD efficiency
57   Float_t GetLightYieldMean()         const { return  fLightYieldMean ;}
58   Float_t GetLightYieldAttenuation()  const { return  fLightYieldAttenuation ;}
59   Float_t GetRecalibrationFactor()    const { return  fRecalibrationFactor ;}
60   Float_t GetAPDGain()                const { return  fAPDGain ;}
61   Float_t GetIntrinsicPINEfficiency() const { return  fIntrinsicPINEfficiency ;}
62   Float_t GetElectronsPerGeV()        const { return  fElectronsPerGeV ;}
63
64   void    SetLightYieldMean(Float_t LightYieldMean) 
65                                    {fLightYieldMean = LightYieldMean;}
66   void    SetLightYieldAttenuation(Float_t LightYieldAttenuation)
67                                    {fLightYieldAttenuation = LightYieldAttenuation;}
68   void    SetIntrinsicPINEfficiency(Float_t IntrinsicPINEfficiency) 
69                                    {fIntrinsicPINEfficiency = IntrinsicPINEfficiency;}
70   void    SetRecalibrationFactor(Float_t RecalibrationFactor) 
71                                    {fRecalibrationFactor = RecalibrationFactor;}
72   void    SetElectronsPerGeV(Float_t ElectronsPerGeV) 
73                                    {fElectronsPerGeV = ElectronsPerGeV;}
74   void    SetAPDGain(Float_t APDGain)   {fAPDGain = APDGain;}
75
76 protected:
77
78   AliPHOSQAIntCheckable   * fQAHitsMul ;  // QA Hits Multiplicity checkable
79   TClonesArray * fQAHitsMulB ;            // QA Hits Multiplicity / Block checkable
80   AliPHOSQAFloatCheckable * fQATotEner ;  // QA Total Energy checkable
81   TClonesArray * fQATotEnerB ;            // QA Total Energy / Block checkable
82
83   Float_t fLightYieldMean ;         // Mean lightyield in the PbOW4 xtal per GeV (Poisson distribution)
84   Float_t fIntrinsicPINEfficiency ; // Photo efficiency of the PIN diode   
85   Float_t fLightYieldAttenuation ;  // Attenuation of the light through the crystal
86   Float_t fRecalibrationFactor ;    // Recalibration factor
87   Float_t fElectronsPerGeV ;        // Number of electrons per GeV created in the PIN by a ionizing particle
88   Float_t fAPDGain ;                // APD Gain
89   Float_t fLightFactor ;            //! a calculated factor
90   Float_t fAPDFactor ;              //! a calculated factor
91
92   ClassDef(AliPHOSv1,1)  // Implementation of PHOS manager class for layout EMC+PPSD
93
94 };
95
96 #endif // AliPHOSV1_H