]>
Commit | Line | Data |
---|---|---|
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.40 2006/09/13 07:31:01 kharlov | |
12 | * Effective C++ corrections (T.Pocheptsov) | |
13 | * | |
14 | * Revision 1.39 2005/05/28 14:19:05 schutz | |
15 | * Compilation warnings fixed by T.P. | |
16 | * | |
17 | */ | |
18 | ||
19 | //_________________________________________________________________________ | |
20 | // Implementation version v1 of PHOS Manager class | |
21 | // Layout EMC + CPV has name IHEP | |
22 | //*-- | |
23 | //*-- Author: Yves Schutz (SUBATECH) | |
24 | ||
25 | // --- ROOT system --- | |
26 | class TClonesArray ; | |
27 | class TLorentzVector ; | |
28 | class TFile; | |
29 | ||
30 | // --- AliRoot header files --- | |
31 | #include "AliPHOSv0.h" | |
32 | ||
33 | class AliPHOSv1 : public AliPHOSv0 { | |
34 | ||
35 | public: | |
36 | ||
37 | AliPHOSv1(void) ; | |
38 | AliPHOSv1(const char *name, const char *title="") ; | |
39 | virtual ~AliPHOSv1(void) ; | |
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 | void CPVDigitize (TLorentzVector p, Float_t *xy, 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) ; | |
56 | ||
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 ;} | |
64 | ||
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;} | |
76 | ||
77 | protected: | |
78 | ||
79 | Float_t fLightYieldMean ; // Mean lightyield in the PbOW4 xtal per GeV (Poisson distribution) | |
80 | Float_t fIntrinsicPINEfficiency ; // Photo efficiency of the PIN diode | |
81 | Float_t fLightYieldAttenuation ; // Attenuation of the light through the crystal | |
82 | Float_t fRecalibrationFactor ; // Recalibration factor | |
83 | Float_t fElectronsPerGeV ; // Number of electrons per GeV created in the PIN by a ionizing particle | |
84 | Float_t fAPDGain ; // APD Gain | |
85 | Float_t fLightFactor ; //! a calculated factor | |
86 | Float_t fAPDFactor ; //! a calculated factor | |
87 | ||
88 | private: | |
89 | AliPHOSv1(AliPHOSv1 & phos); | |
90 | AliPHOSv1 & operator = (const AliPHOSv1 & /*rvalue*/); | |
91 | ||
92 | ClassDef(AliPHOSv1,2) // Implementation of PHOS manager class for layout EMC+PPSD | |
93 | ||
94 | }; | |
95 | ||
96 | #endif // AliPHOSV1_H |