]>
Commit | Line | Data |
---|---|---|
7587f5a5 | 1 | #ifndef ALIPHOSV1_H |
2 | #define ALIPHOSV1_H | |
5f20d3fb | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
7587f5a5 | 4 | * See cxx source for full Copyright notice */ |
5f20d3fb | 5 | |
b2a60966 | 6 | //_________________________________________________________________________ |
5f20d3fb | 7 | // Implementation version v1 of PHOS Manager class |
8 | // Layout EMC + PPSD has name GPS2 | |
a3dfe79c | 9 | // Layout EMC + CPV has name IHEP |
10 | //*-- | |
5f20d3fb | 11 | //*-- Author: Yves Schutz (SUBATECH) |
7587f5a5 | 12 | |
13 | // --- ROOT system --- | |
13add4de | 14 | class TClonesArray ; |
15 | class TLorentzVector ; | |
2ab0c725 | 16 | class TFile; |
17 | ||
7587f5a5 | 18 | // --- AliRoot header files --- |
19 | #include "AliPHOSv0.h" | |
7b326aac | 20 | class AliPHOSQAIntCheckable ; |
21 | class AliPHOSQAFloatCheckable ; | |
7587f5a5 | 22 | |
23 | class AliPHOSv1 : public AliPHOSv0 { | |
24 | ||
25 | public: | |
26 | ||
bea63bea | 27 | AliPHOSv1(void) ; |
7587f5a5 | 28 | AliPHOSv1(const char *name, const char *title="") ; |
5f20d3fb | 29 | AliPHOSv1(const AliPHOSv1 & phos) { |
30 | // cpy ctor: no implementation yet | |
31 | // requested by the Coding Convention | |
13add4de | 32 | abort() ; |
5f20d3fb | 33 | } |
bea63bea | 34 | virtual ~AliPHOSv1(void) ; |
35 | ||
7b326aac | 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 { | |
037cc66d | 40 | // Gives the version number |
41 | return 1 ; | |
42 | } | |
43 | ||
0a6d52e3 | 44 | virtual void StepManager(void) ; |
bd46a237 | 45 | virtual const TString Version(void)const { return TString("v1") ; } |
5f20d3fb | 46 | |
47 | AliPHOSv1 & operator = (const AliPHOSv1 & rvalue) { | |
a3dfe79c | 48 | // assignement operator requested by coding convention but not needed |
13add4de | 49 | abort() ; |
5f20d3fb | 50 | return *this ; |
51 | } | |
bea63bea | 52 | |
fa412d9b | 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) ; | |
56 | ||
9688c1dd | 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 | ||
bea63bea | 77 | protected: |
78 | ||
7b326aac | 79 | AliPHOSQAIntCheckable * fQAHitsMul ; // QA Hits Multiplicity checkable |
9688c1dd | 80 | TClonesArray * fQAHitsMulB ; // QA Hits Multiplicity / Block checkable |
7b326aac | 81 | AliPHOSQAFloatCheckable * fQATotEner ; // QA Total Energy checkable |
9688c1dd | 82 | TClonesArray * fQATotEnerB ; // QA Total Energy / Block checkable |
83 | ||
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 | |
27f33ee5 | 90 | Float_t fLightFactor ; //! a calculated factor |
91 | Float_t fAPDFactor ; //! a calculated factor | |
fa412d9b | 92 | |
5f20d3fb | 93 | ClassDef(AliPHOSv1,1) // Implementation of PHOS manager class for layout EMC+PPSD |
7587f5a5 | 94 | |
95 | }; | |
96 | ||
97 | #endif // AliPHOSV1_H |