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