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