SetObjectClassName removed
[u/mrichter/AliRoot.git] / TRD / AliTRDSimParam.h
CommitLineData
3551db50 1#ifndef ALITRDSIMPARAM_H
2#define ALITRDSIMPARAM_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6///////////////////////////////////////////////////////////////////////////////
7// //
8// Class containing constant simulation parameters //
9// //
10///////////////////////////////////////////////////////////////////////////////
11
12/* $Id$ */
13
14#include "TObject.h"
15
16class AliTRDSimParam : public TObject
17{
18
19public:
20 static AliTRDSimParam* Instance();
21 static void Terminate();
22
23 enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 };
24
25 AliTRDSimParam(const AliTRDSimParam &p);
26 AliTRDSimParam &operator=(const AliTRDSimParam &p);
27 virtual void Copy(TObject &p) const;
28
29 void SetGasGain(Float_t gasgain) { fGasGain = gasgain; };
30 void SetNoise(Float_t noise) { fNoise = noise; };
31 void SetChipGain(Float_t chipgain) { fChipGain = chipgain; };
32
33 void SetADCoutRange(Float_t range) { fADCoutRange = range; };
34 void SetADCinRange(Float_t range) { fADCinRange = range; };
35 void SetADCthreshold(Int_t thresh) { fADCthreshold = thresh; };
36 void SetADCbaseline(Int_t basel) { fADCbaseline = basel; };
37
38 void SetDiffusion(Int_t diffOn = 1) { fDiffusionOn = diffOn; };
39
40 void SetElAttach(Int_t elOn = 1) { fElAttachOn = elOn; };
41 void SetElAttachProp(Float_t prop) { fElAttachProp = prop; };
42
43 void SetTimeResponse(Int_t trfOn = 1) { fTRFOn = trfOn; ReInit(); };
44
45 void SetCrossTalk(Int_t ctOn = 1) { fCTOn = ctOn; ReInit(); };
46
3551db50 47 void SetPadCoupling(Float_t v) { fPadCoupling = v; };
48 void SetTimeCoupling(Float_t v) { fTimeCoupling = v; };
49 void SetAnodeWireOffset(Float_t offset = 0.25) { fAnodeWireOffset = offset;};
50 void SetTimeStruct(Bool_t tsOn = 1) { fTimeStructOn = tsOn; };
51
cc7cef99 52 void SetPadResponse(Int_t prfOn = 1) { fPRFOn = prfOn; };
53
3551db50 54 Float_t GetGasGain() const { return fGasGain; };
55 Float_t GetNoise() const { return fNoise; };
56 Float_t GetChipGain() const { return fChipGain; };
57
58 Float_t GetADCoutRange() const { return fADCoutRange; };
59 Float_t GetADCinRange() const { return fADCinRange; };
60 Int_t GetADCthreshold() const { return fADCthreshold; };
61 Int_t GetADCbaseline() const { return fADCbaseline; };
62
63 Bool_t DiffusionOn() const { return fDiffusionOn; };
64
65 Bool_t ElAttachOn() const { return fElAttachOn; };
66 Float_t GetElAttachProp() const { return fElAttachProp; };
67
68 Bool_t TRFOn() const { return fTRFOn; };
69 Double_t TimeResponse(Double_t time) const;
70 Float_t GetTRFlo() const { return fTRFlo; };
71 Float_t GetTRFhi() const { return fTRFhi; };
72
73 Bool_t CTOn() const { return fCTOn; };
74 Double_t CrossTalk(Double_t time) const;
75
3551db50 76 Float_t GetPadCoupling() const { return fPadCoupling; };
77 Float_t GetTimeCoupling() const { return fTimeCoupling; };
78 Float_t GetAnodeWireOffset() const { return fAnodeWireOffset; };
79 Bool_t TimeStructOn() const { return fTimeStructOn; };
80
cc7cef99 81 Bool_t PRFOn() const { return fPRFOn; };
82
3551db50 83protected:
84 static AliTRDSimParam* fgInstance; // Instance of this class (singleton implementation)
85 static Bool_t fgTerminated; // Defines if this class has already been terminated and therefore does not return instances in GetInstance anymore
86
87 // Digitization parameter
88 Float_t fGasGain; // Gas gain
89 Float_t fNoise; // Electronics noise
90 Float_t fChipGain; // Electronics gain
91
92 Float_t fADCoutRange; // ADC output range (number of channels)
93 Float_t fADCinRange; // ADC input range (input charge)
94 Int_t fADCthreshold; // ADC threshold in ADC channel
95 Int_t fADCbaseline; // ADC baseline in ADC chann
96
97 Int_t fDiffusionOn; // Switch for the diffusion
98
99 Int_t fElAttachOn; // Switch for the electron attachment
100 Float_t fElAttachProp; // Propability for electron attachment (for 1m)
101
102 Int_t fTRFOn; // Switch for the time response
103 Float_t *fTRFsmp; //! Integrated time response
104 Int_t fTRFbin; // Number of bins for the TRF
105 Float_t fTRFlo; // Lower boundary of the TRF
106 Float_t fTRFhi; // Higher boundary of the TRF
107 Float_t fTRFwid; // Bin width of the integrated TRF
108
109 Int_t fCTOn; // Switch for cross talk
110 Float_t *fCTsmp; //! Integrated cross talk
111
3551db50 112 Float_t fAnodeWireOffset; // Distance of first anode wire from pad edge
113 Float_t fPadCoupling; // Pad coupling factor
114 Float_t fTimeCoupling; // Time coupling factor (image charge of moving ions)
115 Int_t fTimeStructOn; // Switch for cell time structure
116
cc7cef99 117 Int_t fPRFOn; // Switch for the pad response
118
3551db50 119private:
120 // this is a singleton, constructor is private!
121 AliTRDSimParam();
122 virtual ~AliTRDSimParam();
123
124 void Init();
125 void ReInit();
126 void SampleTRF();
127
cc7cef99 128 ClassDef(AliTRDSimParam, 1)
3551db50 129};
130
131#endif