]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALSimParam.h
Coverity 16153
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALSimParam.h
CommitLineData
33a52e55 1#ifndef ALIEMCALSIMPARAM_H
2#define ALIEMCALSIMPARAM_H
3/* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id: AliEMCALSimParam.h $ */
7/*
8//
9// Base class for the EMCAL simulation parameters.
10//
11//
12*/
13
14#include "TNamed.h"
15
16class AliEMCALSimParam : public TNamed {
17
18public:
19
20 AliEMCALSimParam();
21 AliEMCALSimParam(const AliEMCALSimParam& recoParam);
22 AliEMCALSimParam& operator = (const AliEMCALSimParam& recoParam);
23 virtual ~AliEMCALSimParam() {}
24
25 static AliEMCALSimParam * GetInstance() ;
26 virtual void Print(Option_t * option="") const ;
27
28 //Parameters used in Digitizer
f0a6dc6f 29 Int_t GetDigitThreshold() const { return fDigitThreshold;}
30 Float_t GetPinNoise() const { return fPinNoise;}
31 Double_t GetTimeDelay() const { return fTimeDelay ; }
a2f8e711 32 Double_t GetTimeResolutionPar0() const { return fTimeResolutionPar0 ; }
33 Double_t GetTimeResolutionPar1() const { return fTimeResolutionPar1 ; }
f0a6dc6f 34 Int_t GetNADCEC() const { return fNADCEC ; }
35 Int_t GetMeanPhotonElectron() const { return fMeanPhotonElectron ; }
36 void SetDigitThreshold(Int_t val) { fDigitThreshold = val ; }
37 void SetPinNoise(Float_t val) { fPinNoise = val ; }
38 void SetTimeDelay(Double_t val) { fTimeDelay = val ; }
a2f8e711 39 void SetTimeResolutionPar0(Double_t val) { fTimeResolutionPar0 = val ; }
40 void SetTimeResolutionPar1(Double_t val) { fTimeResolutionPar1 = val ; }
f0a6dc6f 41 void SetNADCED(Int_t val) { fNADCEC = val ; }
42 void SetMeanPhotonElectron(Int_t val){ fMeanPhotonElectron = val ; }
33a52e55 43
44 //Parameters used in SDigitizer
45 Float_t GetA() const { return fA ; }
46 Float_t GetB() const { return fB ; }
47 Float_t GetECPrimaryThreshold() const { return fECPrimThreshold ; }
48 void SetA(Float_t val) { fA = val ; }
49 void SetB(Float_t val) { fB = val ; }
50 void SetECPrimaryThreshold(Float_t val) { fECPrimThreshold = val ;}
51
33a52e55 52
53private:
54
55
56 static AliEMCALSimParam * fgSimParam ; // pointer to the unique instance of the class
57
58 // Digitizer
f0a6dc6f 59 Int_t fDigitThreshold ; // Threshold for storing digits in EMC
60 Int_t fMeanPhotonElectron ; // number of photon electrons per GeV deposited energy
61 Float_t fPinNoise ; // Electronics noise in EMC
62 Double_t fTimeDelay; // Time delay to reproduce data delay
a2f8e711 63 Double_t fTimeResolutionPar0 ; // Time resolution of FEE electronics
64 Double_t fTimeResolutionPar1 ; // Time resolution of FEE electronics
f0a6dc6f 65 Int_t fNADCEC ; // number of channels in EC section ADC
33a52e55 66
67 // SDigitizer
68 Float_t fA ; // Pedestal parameter
69 Float_t fB ; // Slope Digitizition parameters
70 Float_t fECPrimThreshold ; // To store primary if EC Shower Elos > threshold
71
a2f8e711 72 ClassDef(AliEMCALSimParam,4)
33a52e55 73};
74
75#endif
76