]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSv3.h
Added virtual IsVersion. Print of version defered to Init in AliPHOS
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv3.h
1 #ifndef ALIPHOSV3_H
2 #define ALIPHOSV3_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 // The main goal of this version of AliPHOS is to calculte the 
10 //  induced charged in the PIN diode, taking into account light
11 //  tracking in the PbWO4 crystal, induced signal in the 
12 //  PIN due to MIPS particle and electronic noise.
13 // This is done in the StepManager 
14 //                  
15 //*-- Author:  Odd Harald Oddland & Gines Martinez (SUBATECH)
16
17 // --- ROOT system ---
18
19
20 // --- AliRoot header files ---
21 #include "AliPHOSv1.h"
22
23
24 class AliPHOSv3 : public AliPHOSv1 {
25
26 public:
27
28   AliPHOSv3(void) : AliPHOSv1() {
29     // ctor
30   }
31   AliPHOSv3(const char *name, const char *title="") ;
32   AliPHOSv3(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title="") ;
33   virtual ~AliPHOSv3(void) {
34     // dtor
35   } 
36                             
37   virtual Int_t   IsVersion(void) const { 
38     // Gives the version number 
39     return 3 ; 
40   }
41   virtual TString Version(void){ 
42     // returns the version number 
43     return TString("v3") ; 
44   }   
45   virtual void   StepManager(void) ;    
46   
47 private:
48   
49   Float_t fLightYieldMean ;         // Mean lightyield in the PbOW4 xtal per GeV (Poisson distribution)
50   Float_t fIntrinsicPINEfficiency ; // Photo efficiency of the PIN diode   
51   Float_t fLightYieldAttenuation ;  // Attenuation of the light through the crystal
52   Float_t fRecalibrationFactor ;    // Recalibration factor
53   Float_t fElectronsPerGeV ;        // Number of electrons per GeV created in the PIN by a ionizing particle
54
55   ClassDef(AliPHOSv3,1)  // Implementation of PHOS manager class for layout EMC+PPSD with light transport, MIPS in PIN and electronic noise
56
57 };
58
59 #endif // AliPHOSV3_H