KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVFAZIADBRun.cpp
Go to the documentation of this file.
1 //Created by KVClassFactory on Tue Jan 20 16:29:33 2015
2 //Author: ,,,
3 
4 #include "KVFAZIADBRun.h"
5 #include "KVFileReader.h"
6 #include "KVDataSet.h"
7 
9 
10 // BEGIN_HTML <!--
12 /* -->
13 <h2>KVFAZIADBRun</h2>
14 <h4>run description for FAZIA experiment</h4>
15 <!-- */
16 // --> END_HTML
18 
19 
20 
23 void KVFAZIADBRun::init()
24 {
25  //initialize all fields
26 
27  SetTrigger(-1);
28  SetNumberOfTriggerBlocks(-1);
29  SetDeadTime(-1);
30  SetTriggerRate(-1);
31  SetGoodEvents(-1);
32  SetACQStatus("Unkown");
33  SetError_WrongNumberOfBlocks(-1);
34  SetError_InternalBlockError(-1);
35  SetNumberOfAcqFiles(-1);
36  SetDuration(-1.);
37  SetFrequency(-1.);
38  SetRutherfordCount(-1);
39  SetRutherfordCrossSection(0.0);
40 
41 }
42 
43 
44 
45 
48 
50 {
51  // Default constructor
52  init();
53 }
54 
55 
56 
57 
60 
61 KVFAZIADBRun::KVFAZIADBRun(Int_t number, const Char_t* title) : KVDBRun(number, title)
62 {
63  //constructor with run number
64  init();
65 }
66 
67 
68 
71 
73 {
74  // Destructor
75 }
76 
77 
78 
80 
82 {
83  Set("ACQ Status", status);
84 }
85 
86 
87 
89 
91 {
92  return GetString("ACQ Status");
93 }
94 
95 
96 
98 
100 {
101  SetScaler("Good Events", evt_number);
102 }
103 
104 
105 
107 
109 {
110  return GetScaler("Good Events");
111 }
112 
113 
114 
116 
118 {
119  SetScaler("Bad Events with wrong number of blocks", evt_number);
120 }
121 
122 
123 
125 
127 {
128  return GetScaler("Bad Events with wrong number of blocks");
129 }
130 
131 
132 
134 
136 {
137  SetScaler("Bad Events internal error in one block", evt_number);
138 }
139 
140 
141 
143 
145 {
146  return GetScaler("Bad Events internal error in one block");
147 }
148 
149 
150 
152 
154 {
155  SetScaler("Number of ACQ files", number);
156 }
157 
158 
159 
161 
163 {
164  return GetScaler("Number of ACQ files");
165 }
166 
167 
168 
170 
172 {
173  Set("Duration (s)", duration);
174 }
175 
176 
177 
179 
181 {
182  return Get("Duration (s)");
183 }
184 
185 
186 
188 
190 {
191  Set("ACQ rate (evts/s)", frequency);
192 }
193 
194 
195 
197 
199 {
200  return Get("ACQ rate (evts/s)");
201 }
202 
203 
204 
206 
208 {
209  Set("trigger rate (evts/s)", triggerrate);
210 }
211 
212 
213 
215 
217 {
218  return Get("trigger rate (evts/s)");
219 }
220 
221 
222 
224 
226 {
227  Set("deadtime [0;1]", deadtime);
228 }
229 
230 
231 
233 
235 {
236  return Get("deadtime [0;1]");
237 }
238 
239 
240 
242 
244 {
245  Set("number of trigger blocks", number);
246 }
247 
248 
249 
251 
253 {
254  return Get("number of trigger blocks");
255 }
256 
257 
258 
260 
262 {
263  SetScaler("Rutherford Count", number);
264 }
265 
266 
267 
269 
271 {
272  return GetScaler("Rutherford Count");
273 }
274 
275 
276 
278 
280 {
281  Set("Rutherford Cross Section (mb)", number);
282 }
283 
284 
285 
287 
289 {
290  return Get("Rutherford Cross Section (mb)");
291 }
292 
293 
int Int_t
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
char Char_t
double Double_t
Description of an experimental run in database ,.
Definition: KVDBRun.h:35
void Set(const Char_t *param, Double_t val)
Set numerical (non-scaler) characteristic of run.
Definition: KVDBRun.h:230
Double_t Get(const Char_t *param) const
Get numerical (non-scaler) characteristic of run.
Definition: KVDBRun.h:236
virtual Int_t GetScaler(const Char_t *name) const
Get value of scaler with the given name for this run.
Definition: KVDBRun.h:214
const Char_t * GetString(const Char_t *param) const
Get characteristic of run.
Definition: KVDBRun.h:247
virtual void SetScaler(const Char_t *name, Int_t val)
Set value for the scaler with the given name for this run.
Definition: KVDBRun.h:208
Database entry for a run in a FAZIA experiment.
Definition: KVFAZIADBRun.h:14
virtual ~KVFAZIADBRun()
Destructor.
Double_t GetTriggerRate() const
Int_t GetNumberOfAcqFiles() const
void SetNumberOfAcqFiles(Int_t)
void SetDuration(Double_t)
Double_t GetRutherfordCrossSection() const
Int_t GetRutherfordCount() const
const Char_t * GetACQStatus() const
Int_t GetError_InternalBlockError() const
void SetGoodEvents(Int_t)
void init()
initialize all fields
void SetError_InternalBlockError(Int_t)
void SetError_WrongNumberOfBlocks(Int_t)
Double_t GetFrequency() const
void SetRutherfordCrossSection(Double_t)
Double_t GetNumberOfTriggerBlocks() const
Double_t GetDuration() const
void SetRutherfordCount(Int_t)
void SetACQStatus(const KVString &status)
void SetFrequency(Double_t)
Int_t GetError_WrongNumberOfBlocks() const
Int_t GetGoodEvents() const
void SetTriggerRate(Double_t)
void SetDeadTime(Double_t)
void SetNumberOfTriggerBlocks(Double_t)
Double_t GetDeadTime() const
KVFAZIADBRun()
Default constructor.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:72