3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 //_________________________________________________________________________
7 // Implementation version v1 of PHOS Manager class
8 // Layout EMC + PPSD has name GPS2
9 // Layout EMC + CPV has name IHEP
11 //*-- Author: Yves Schutz (SUBATECH)
13 // --- ROOT system ---
15 class TLorentzVector ;
18 // --- AliRoot header files ---
19 #include "AliPHOSv0.h"
20 class AliPHOSQAIntCheckable ;
21 class AliPHOSQAFloatCheckable ;
23 class AliPHOSv1 : public AliPHOSv0 {
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
34 virtual ~AliPHOSv1(void) ;
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
44 virtual void StepManager(void) ;
45 virtual TString Version(void){ return TString("v1") ; }
47 AliPHOSv1 & operator = (const AliPHOSv1 & rvalue) {
48 // assignement operator requested by coding convention but not needed
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) ;
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 ;}
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;}
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
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
91 ClassDef(AliPHOSv1,1) // Implementation of PHOS manager class for layout EMC+PPSD