Geant4  10.00.p03
G4VAnalysisManager.icc
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // $Id: G4VAnalysisManager.hh 70604 2013-06-03 11:27:06Z ihrivnac $
27 
28 #include "G4HnManager.hh"
29 #include "G4VH1Manager.hh"
30 #include "G4VH2Manager.hh"
31 #include "G4VNtupleManager.hh"
32 #include "G4VFileManager.hh"
33 
34 //_____________________________________________________________________________
35 inline
36 G4bool G4VAnalysisManager::FillH1(G4int id, G4double value, G4double weight)
37 {
38  return fVH1Manager->FillH1(id, value, weight);
39 }
40 
41 //_____________________________________________________________________________
42 inline
43 G4bool G4VAnalysisManager::FillH2(G4int id,
44  G4double xvalue, G4double yvalue,
45  G4double weight)
46 {
47  return fVH2Manager->FillH2(id, xvalue, yvalue, weight);
48 }
49 
50 //_____________________________________________________________________________
51 inline
52 G4bool G4VAnalysisManager::FillNtupleIColumn(G4int columnId, G4int value)
53 {
54  return fVNtupleManager->FillNtupleIColumn(columnId, value);
55 }
56 
57 //_____________________________________________________________________________
58 inline
59 G4bool G4VAnalysisManager::FillNtupleFColumn(G4int columnId, G4float value)
60 {
61  return fVNtupleManager->FillNtupleFColumn(columnId, value);
62 }
63 
64 //_____________________________________________________________________________
65 inline
66 G4bool G4VAnalysisManager::FillNtupleDColumn(G4int columnId, G4double value)
67 {
68  return fVNtupleManager->FillNtupleDColumn(columnId, value);
69 }
70 
71 //_____________________________________________________________________________
72 inline
73 G4bool G4VAnalysisManager::AddNtupleRow()
74 {
75  return fVNtupleManager->AddNtupleRow();
76 }
77 
78 //_____________________________________________________________________________
79 inline
80 G4bool G4VAnalysisManager::FillNtupleIColumn(G4int ntupleId, G4int columnId,
81  G4int value)
82 {
83  return fVNtupleManager->FillNtupleIColumn(ntupleId, columnId, value);
84 }
85 //_____________________________________________________________________________
86 inline
87 G4bool G4VAnalysisManager::FillNtupleFColumn(G4int ntupleId, G4int columnId,
88  G4float value)
89 {
90  return fVNtupleManager->FillNtupleFColumn(ntupleId, columnId, value);
91 }
92 
93 //_____________________________________________________________________________
94 inline
95 G4bool G4VAnalysisManager::FillNtupleDColumn(G4int ntupleId, G4int columnId,
96  G4double value)
97 {
98  return fVNtupleManager->FillNtupleDColumn(ntupleId, columnId, value);
99 }
100 
101 //_____________________________________________________________________________
102 inline
103 G4bool G4VAnalysisManager::AddNtupleRow(G4int ntupleId)
104 {
105  return fVNtupleManager->AddNtupleRow(ntupleId);
106 }
107 
108 //_____________________________________________________________________________
109 inline
110 G4bool G4VAnalysisManager::GetActivation() const
111 {
112  return fState.GetIsActivation();
113 }
114 
115 //_____________________________________________________________________________
116 inline
117 G4int G4VAnalysisManager::GetH1Id(const G4String& name, G4bool warn) const
118 {
119  return fVH1Manager->GetH1Id(name, warn);
120 }
121 
122 //_____________________________________________________________________________
123 inline
124 G4int G4VAnalysisManager::GetH2Id(const G4String& name, G4bool warn) const
125 {
126  return fVH2Manager->GetH2Id(name, warn);
127 }
128 
129 //_____________________________________________________________________________
130 inline
131 G4int G4VAnalysisManager::GetH1Nbins(G4int id) const
132 {
133  return fVH1Manager->GetH1Nbins(id);
134 }
135 
136 //_____________________________________________________________________________
137 inline
138 G4double G4VAnalysisManager::GetH1Xmin(G4int id) const
139 {
140 // Returns xmin value with applied unit and histogram function
141 
142  return fVH1Manager->GetH1Xmin(id);
143 }
144 
145 //_____________________________________________________________________________
146 inline
147 G4double G4VAnalysisManager::GetH1Xmax(G4int id) const
148 {
149  return fVH1Manager->GetH1Xmax(id);
150 }
151 
152 //_____________________________________________________________________________
153 inline
154 G4double G4VAnalysisManager::GetH1Width(G4int id) const
155 {
156  return fVH1Manager->GetH1Width(id);
157 }
158 
159 //_____________________________________________________________________________
160 inline
161 G4int G4VAnalysisManager::GetH2Nxbins(G4int id) const
162 {
163  return fVH2Manager->GetH2Nxbins(id);
164 }
165 
166 //_____________________________________________________________________________
167 inline
168 G4double G4VAnalysisManager::GetH2Xmin(G4int id) const
169 {
170 // Returns xmin value with applied unit and histogram function
171 
172  return fVH2Manager->GetH2Xmin(id);
173 }
174 
175 //_____________________________________________________________________________
176 inline
177 G4double G4VAnalysisManager::GetH2Xmax(G4int id) const
178 {
179  return fVH2Manager->GetH2Xmax(id);
180 }
181 
182 //_____________________________________________________________________________
183 inline
184 G4double G4VAnalysisManager::GetH2XWidth(G4int id) const
185 {
186  return fVH2Manager->GetH2XWidth(id);
187 }
188 
189 //_____________________________________________________________________________
190 inline
191 G4int G4VAnalysisManager::GetH2Nybins(G4int id) const
192 {
193  return fVH2Manager->GetH2Nybins(id);
194 }
195 
196 //_____________________________________________________________________________
197 inline
198 G4double G4VAnalysisManager::GetH2Ymin(G4int id) const
199 {
200 // Returns xmin value with applied unit and histogram function
201 
202  return fVH2Manager->GetH2Ymin(id);
203 }
204 
205 //_____________________________________________________________________________
206 inline
207 G4double G4VAnalysisManager::GetH2Ymax(G4int id) const
208 {
209  return fVH2Manager->GetH2Ymax(id);
210 }
211 
212 //_____________________________________________________________________________
213 inline
214 G4double G4VAnalysisManager::GetH2YWidth(G4int id) const
215 {
216  return fVH2Manager->GetH2YWidth(id);
217 }
218 
219 //_____________________________________________________________________________
220 inline
221 G4String G4VAnalysisManager::GetH1Name(G4int id) const
222 {
223  return fH1HnManager->GetName(id);
224 }
225 
226 //_____________________________________________________________________________
227 inline
228 G4double G4VAnalysisManager::GetH1Unit(G4int id) const
229 {
230  return fH1HnManager->GetXUnit(id);
231 }
232 
233 //_____________________________________________________________________________
234 inline
235 G4bool G4VAnalysisManager::GetH1Activation(G4int id) const
236 {
237  return fH1HnManager->GetActivation(id);
238 }
239 
240 //_____________________________________________________________________________
241 inline
242 G4bool G4VAnalysisManager::GetH1Ascii(G4int id) const
243 {
244  return fH1HnManager->GetAscii(id);
245 }
246 
247 //_____________________________________________________________________________
248 inline
249 G4String G4VAnalysisManager::GetH2Name(G4int id) const
250 {
251  return fH2HnManager->GetName(id);
252 }
253 
254 //_____________________________________________________________________________
255 inline
256 G4double G4VAnalysisManager::GetH2XUnit(G4int id) const
257 {
258  return fH2HnManager->GetXUnit(id);
259 }
260 
261 //_____________________________________________________________________________
262 inline
263 G4double G4VAnalysisManager::GetH2YUnit(G4int id) const
264 {
265  return fH2HnManager->GetYUnit(id);
266 }
267 
268 //_____________________________________________________________________________
269 inline
270 G4bool G4VAnalysisManager::GetH2Activation(G4int id) const
271 {
272  return fH2HnManager->GetActivation(id);
273 }
274 
275 //_____________________________________________________________________________
276 inline
277 G4bool G4VAnalysisManager::GetH2Ascii(G4int id) const
278 {
279  return fH2HnManager->GetAscii(id);
280 }
281 
282 
283 //_____________________________________________________________________________
284 inline
285 G4bool G4VAnalysisManager::SetH1Title(G4int id, const G4String& title)
286 {
287  return fVH1Manager->SetH1Title(id, title);
288 }
289 
290 //_____________________________________________________________________________
291 inline
292 G4bool G4VAnalysisManager::SetH1XAxisTitle(G4int id, const G4String& title)
293 {
294  return fVH1Manager->SetH1XAxisTitle(id, title);
295 }
296 
297 //_____________________________________________________________________________
298 inline
299 G4bool G4VAnalysisManager::SetH1YAxisTitle(G4int id, const G4String& title)
300 {
301  return fVH1Manager->SetH1YAxisTitle(id, title);
302 }
303 
304 //_____________________________________________________________________________
305 inline
306 G4bool G4VAnalysisManager::SetH2Title(G4int id, const G4String& title)
307 {
308  return fVH2Manager->SetH2Title(id, title);
309 }
310 
311 //_____________________________________________________________________________
312 inline
313 G4bool G4VAnalysisManager::SetH2XAxisTitle(G4int id, const G4String& title)
314 {
315  return fVH2Manager->SetH2XAxisTitle(id, title);
316 }
317 
318 //_____________________________________________________________________________
319 inline
320 G4bool G4VAnalysisManager::SetH2YAxisTitle(G4int id, const G4String& title)
321 {
322  return fVH2Manager->SetH2YAxisTitle(id, title);
323 }
324 
325 //_____________________________________________________________________________
326 inline
327 G4bool G4VAnalysisManager::SetH2ZAxisTitle(G4int id, const G4String& title)
328 {
329  return fVH2Manager->SetH2ZAxisTitle(id, title);
330 }
331 
332 //_____________________________________________________________________________
333 inline
334 G4String G4VAnalysisManager::GetH1Title(G4int id) const
335 {
336  return fVH1Manager->GetH1Title(id);
337 }
338 
339 //_____________________________________________________________________________
340 inline
341 G4String G4VAnalysisManager::GetH1XAxisTitle(G4int id) const
342 {
343  return fVH1Manager->GetH1XAxisTitle(id);
344 }
345 
346 //_____________________________________________________________________________
347 inline
348 G4String G4VAnalysisManager::GetH1YAxisTitle(G4int id) const
349 {
350  return fVH1Manager->GetH1YAxisTitle(id);
351 }
352 
353 //_____________________________________________________________________________
354 inline
355 G4String G4VAnalysisManager::GetH2Title(G4int id) const
356 {
357  return fVH2Manager->GetH2Title(id);
358 }
359 
360 //_____________________________________________________________________________
361 inline
362 G4String G4VAnalysisManager::GetH2XAxisTitle(G4int id) const
363 {
364  return fVH2Manager->GetH2XAxisTitle(id);
365 }
366 
367 //_____________________________________________________________________________
368 inline
369 G4String G4VAnalysisManager::GetH2YAxisTitle(G4int id) const
370 {
371  return fVH2Manager->GetH2YAxisTitle(id);
372 }
373 
374 //_____________________________________________________________________________
375 inline
376 G4String G4VAnalysisManager::GetH2ZAxisTitle(G4int id) const
377 {
378  return fVH2Manager->GetH2ZAxisTitle(id);
379 }
380 
381 //_____________________________________________________________________________
382 inline
383 G4int G4VAnalysisManager::GetVerboseLevel() const
384 {
385  return fState.GetVerboseLevel();
386 }
387 
388 //_____________________________________________________________________________
389 inline
390 G4String G4VAnalysisManager::GetType() const
391 {
392  return fState.GetType();
393 }
394 
395 //_____________________________________________________________________________
396 inline
397 G4String G4VAnalysisManager::GetFileType() const
398 {
399  return fVFileManager->GetFileType();
400 }