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