]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSv1.h
Correction in the memory managemen. Adding new getter
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv1.h
CommitLineData
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 13class TClonesArray ;
14class TLorentzVector ;
2ab0c725 15class TFile;
16
7587f5a5 17// --- AliRoot header files ---
18#include "AliPHOSv0.h"
7b326aac 19class AliPHOSQAIntCheckable ;
20class AliPHOSQAFloatCheckable ;
7587f5a5 21
22class AliPHOSv1 : public AliPHOSv0 {
23
24public:
25
bea63bea 26 AliPHOSv1(void) ;
7587f5a5 27 AliPHOSv1(const char *name, const char *title="") ;
780fda6d 28 AliPHOSv1(AliPHOSv1 & phos) : AliPHOSv0(phos) {
29 phos.Copy(*this) ;
5f20d3fb 30 }
bea63bea 31 virtual ~AliPHOSv1(void) ;
32
780fda6d 33 virtual void Copy(AliPHOSv1 & phos) ;
7b326aac 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 {
037cc66d 38 // Gives the version number
39 return 1 ;
40 }
41
0a6d52e3 42 virtual void StepManager(void) ;
bd46a237 43 virtual const TString Version(void)const { return TString("v1") ; }
5f20d3fb 44
8c140292 45 AliPHOSv1 & operator = (const AliPHOSv1 & /*rvalue*/) {
a3dfe79c 46 // assignement operator requested by coding convention but not needed
f1611b7c 47 Fatal("operator =", "not implemented") ;
5f20d3fb 48 return *this ;
49 }
bea63bea 50
90cceaf6 51 void CPVDigitize (TLorentzVector p, Float_t *xy, TClonesArray *digits) ;
fa412d9b 52 Float_t CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
53 Double_t CPVCumulPadResponse(Double_t x, Double_t y) ;
54
9688c1dd 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
bea63bea 75protected:
76
7b326aac 77 AliPHOSQAIntCheckable * fQAHitsMul ; // QA Hits Multiplicity checkable
9688c1dd 78 TClonesArray * fQAHitsMulB ; // QA Hits Multiplicity / Block checkable
7b326aac 79 AliPHOSQAFloatCheckable * fQATotEner ; // QA Total Energy checkable
9688c1dd 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
27f33ee5 88 Float_t fLightFactor ; //! a calculated factor
89 Float_t fAPDFactor ; //! a calculated factor
fa412d9b 90
5f20d3fb 91 ClassDef(AliPHOSv1,1) // Implementation of PHOS manager class for layout EMC+PPSD
7587f5a5 92
93};
94
95#endif // AliPHOSV1_H