2 // ********************************************************************
3 // * License and Disclaimer *
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. *
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. *
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 // ********************************************************************
26 // $Id: G4VAnalysisReader.hh 70604 2013-06-03 11:27:06Z ihrivnac $
28 #include "G4HnManager.hh"
29 #include "G4VH1Manager.hh"
30 #include "G4VH2Manager.hh"
31 #include "G4VH3Manager.hh"
32 #include "G4VP1Manager.hh"
33 #include "G4VP2Manager.hh"
34 #include "G4VNtupleManager.hh"
35 #include "G4BaseFileManager.hh"
37 //_____________________________________________________________________________
39 G4int G4VAnalysisReader::GetH1Id(const G4String& name, G4bool warn) const
41 return fVH1Manager->GetH1Id(name, warn);
44 //_____________________________________________________________________________
46 G4int G4VAnalysisReader::GetH2Id(const G4String& name, G4bool warn) const
48 return fVH2Manager->GetH2Id(name, warn);
51 //_____________________________________________________________________________
53 G4int G4VAnalysisReader::GetH3Id(const G4String& name, G4bool warn) const
55 return fVH3Manager->GetH3Id(name, warn);
58 //_____________________________________________________________________________
60 G4int G4VAnalysisReader::GetP1Id(const G4String& name, G4bool warn) const
62 return fVP1Manager->GetP1Id(name, warn);
65 //_____________________________________________________________________________
67 G4int G4VAnalysisReader::GetP2Id(const G4String& name, G4bool warn) const
69 return fVP2Manager->GetP2Id(name, warn);
72 //_____________________________________________________________________________
74 G4int G4VAnalysisReader::GetH1Nbins(G4int id) const
76 return fVH1Manager->GetH1Nbins(id);
79 //_____________________________________________________________________________
81 G4double G4VAnalysisReader::GetH1Xmin(G4int id) const
83 // Returns xmin value with applied unit and histogram function
85 return fVH1Manager->GetH1Xmin(id);
88 //_____________________________________________________________________________
90 G4double G4VAnalysisReader::GetH1Xmax(G4int id) const
92 return fVH1Manager->GetH1Xmax(id);
95 //_____________________________________________________________________________
97 G4double G4VAnalysisReader::GetH1Width(G4int id) const
99 return fVH1Manager->GetH1Width(id);
102 //_____________________________________________________________________________
104 G4int G4VAnalysisReader::GetH2Nxbins(G4int id) const
106 return fVH2Manager->GetH2Nxbins(id);
109 //_____________________________________________________________________________
111 G4double G4VAnalysisReader::GetH2Xmin(G4int id) const
113 // Returns xmin value with applied unit and histogram function
115 return fVH2Manager->GetH2Xmin(id);
118 //_____________________________________________________________________________
120 G4double G4VAnalysisReader::GetH2Xmax(G4int id) const
122 return fVH2Manager->GetH2Xmax(id);
125 //_____________________________________________________________________________
127 G4double G4VAnalysisReader::GetH2XWidth(G4int id) const
129 return fVH2Manager->GetH2XWidth(id);
132 //_____________________________________________________________________________
134 G4int G4VAnalysisReader::GetH2Nybins(G4int id) const
136 return fVH2Manager->GetH2Nybins(id);
139 //_____________________________________________________________________________
141 G4double G4VAnalysisReader::GetH2Ymin(G4int id) const
143 // Returns xmin value with applied unit and histogram function
145 return fVH2Manager->GetH2Ymin(id);
148 //_____________________________________________________________________________
150 G4double G4VAnalysisReader::GetH2Ymax(G4int id) const
152 return fVH2Manager->GetH2Ymax(id);
155 //_____________________________________________________________________________
157 G4double G4VAnalysisReader::GetH2YWidth(G4int id) const
159 return fVH2Manager->GetH2YWidth(id);
163 //_____________________________________________________________________________
165 G4int G4VAnalysisReader::GetH3Nxbins(G4int id) const
167 return fVH3Manager->GetH3Nxbins(id);
170 //_____________________________________________________________________________
172 G4double G4VAnalysisReader::GetH3Xmin(G4int id) const
174 // Returns xmin value with applied unit and histogram function
176 return fVH3Manager->GetH3Xmin(id);
179 //_____________________________________________________________________________
181 G4double G4VAnalysisReader::GetH3Xmax(G4int id) const
183 return fVH3Manager->GetH3Xmax(id);
186 //_____________________________________________________________________________
188 G4double G4VAnalysisReader::GetH3XWidth(G4int id) const
190 return fVH3Manager->GetH3XWidth(id);
193 //_____________________________________________________________________________
195 G4int G4VAnalysisReader::GetH3Nybins(G4int id) const
197 return fVH3Manager->GetH3Nybins(id);
200 //_____________________________________________________________________________
202 G4double G4VAnalysisReader::GetH3Ymin(G4int id) const
204 // Returns xmin value with applied unit and histogram function
206 return fVH3Manager->GetH3Ymin(id);
209 //_____________________________________________________________________________
211 G4double G4VAnalysisReader::GetH3Ymax(G4int id) const
213 return fVH3Manager->GetH3Ymax(id);
216 //_____________________________________________________________________________
218 G4double G4VAnalysisReader::GetH3YWidth(G4int id) const
220 return fVH3Manager->GetH3YWidth(id);
223 //_____________________________________________________________________________
225 G4int G4VAnalysisReader::GetH3Nzbins(G4int id) const
227 return fVH3Manager->GetH3Nzbins(id);
230 //_____________________________________________________________________________
232 G4double G4VAnalysisReader::GetH3Zmin(G4int id) const
234 // Returns xmin value with applied unit and histogram function
236 return fVH3Manager->GetH3Zmin(id);
239 //_____________________________________________________________________________
241 G4double G4VAnalysisReader::GetH3Zmax(G4int id) const
243 return fVH3Manager->GetH3Zmax(id);
246 //_____________________________________________________________________________
248 G4double G4VAnalysisReader::GetH3ZWidth(G4int id) const
250 return fVH3Manager->GetH3ZWidth(id);
253 //_____________________________________________________________________________
255 G4int G4VAnalysisReader::GetP1Nbins(G4int id) const
257 return fVP1Manager->GetP1Nbins(id);
260 //_____________________________________________________________________________
262 G4double G4VAnalysisReader::GetP1Xmin(G4int id) const
264 // Returns xmin value with applied unit and histogram function
266 return fVP1Manager->GetP1Xmin(id);
269 //_____________________________________________________________________________
271 G4double G4VAnalysisReader::GetP1Xmax(G4int id) const
273 return fVP1Manager->GetP1Xmax(id);
276 //_____________________________________________________________________________
278 G4double G4VAnalysisReader::GetP1XWidth(G4int id) const
280 return fVP1Manager->GetP1XWidth(id);
283 //_____________________________________________________________________________
285 G4double G4VAnalysisReader::GetP1Ymin(G4int id) const
287 // Returns xmin value with applied unit and histogram function
289 return fVP1Manager->GetP1Ymin(id);
292 //_____________________________________________________________________________
294 G4double G4VAnalysisReader::GetP1Ymax(G4int id) const
296 return fVP1Manager->GetP1Ymax(id);
299 //_____________________________________________________________________________
301 G4int G4VAnalysisReader::GetP2Nxbins(G4int id) const
303 return fVP2Manager->GetP2Nxbins(id);
306 //_____________________________________________________________________________
308 G4double G4VAnalysisReader::GetP2Xmin(G4int id) const
310 // Returns xmin value with applied unit and histogram function
312 return fVP2Manager->GetP2Xmin(id);
315 //_____________________________________________________________________________
317 G4double G4VAnalysisReader::GetP2Xmax(G4int id) const
319 return fVP2Manager->GetP2Xmax(id);
322 //_____________________________________________________________________________
324 G4double G4VAnalysisReader::GetP2XWidth(G4int id) const
326 return fVP2Manager->GetP2XWidth(id);
329 //_____________________________________________________________________________
331 G4int G4VAnalysisReader::GetP2Nybins(G4int id) const
333 return fVP2Manager->GetP2Nybins(id);
336 //_____________________________________________________________________________
338 G4double G4VAnalysisReader::GetP2Ymin(G4int id) const
340 // Returns xmin value with applied unit and histogram function
342 return fVP2Manager->GetP2Ymin(id);
345 //_____________________________________________________________________________
347 G4double G4VAnalysisReader::GetP2Ymax(G4int id) const
349 return fVP2Manager->GetP2Ymax(id);
352 //_____________________________________________________________________________
354 G4double G4VAnalysisReader::GetP2YWidth(G4int id) const
356 return fVP2Manager->GetP2YWidth(id);
359 //_____________________________________________________________________________
361 G4double G4VAnalysisReader::GetP2Zmin(G4int id) const
363 // Returns xmin value with applied unit and histogram function
365 return fVP2Manager->GetP2Zmin(id);
368 //_____________________________________________________________________________
370 G4double G4VAnalysisReader::GetP2Zmax(G4int id) const
372 return fVP2Manager->GetP2Zmax(id);
375 //_____________________________________________________________________________
377 G4String G4VAnalysisReader::GetH1Title(G4int id) const
379 return fVH1Manager->GetH1Title(id);
382 //_____________________________________________________________________________
384 G4String G4VAnalysisReader::GetH1XAxisTitle(G4int id) const
386 return fVH1Manager->GetH1XAxisTitle(id);
389 //_____________________________________________________________________________
391 G4String G4VAnalysisReader::GetH1YAxisTitle(G4int id) const
393 return fVH1Manager->GetH1YAxisTitle(id);
396 //_____________________________________________________________________________
398 G4String G4VAnalysisReader::GetH2Title(G4int id) const
400 return fVH2Manager->GetH2Title(id);
403 //_____________________________________________________________________________
405 G4String G4VAnalysisReader::GetH2XAxisTitle(G4int id) const
407 return fVH2Manager->GetH2XAxisTitle(id);
410 //_____________________________________________________________________________
412 G4String G4VAnalysisReader::GetH2YAxisTitle(G4int id) const
414 return fVH2Manager->GetH2YAxisTitle(id);
417 //_____________________________________________________________________________
419 G4String G4VAnalysisReader::GetH2ZAxisTitle(G4int id) const
421 return fVH2Manager->GetH2ZAxisTitle(id);
424 //_____________________________________________________________________________
426 G4String G4VAnalysisReader::GetH3Title(G4int id) const
428 return fVH3Manager->GetH3Title(id);
431 //_____________________________________________________________________________
433 G4String G4VAnalysisReader::GetH3XAxisTitle(G4int id) const
435 return fVH3Manager->GetH3XAxisTitle(id);
438 //_____________________________________________________________________________
440 G4String G4VAnalysisReader::GetH3YAxisTitle(G4int id) const
442 return fVH3Manager->GetH3YAxisTitle(id);
445 //_____________________________________________________________________________
447 G4String G4VAnalysisReader::GetH3ZAxisTitle(G4int id) const
449 return fVH3Manager->GetH3ZAxisTitle(id);
452 //_____________________________________________________________________________
454 G4String G4VAnalysisReader::GetP1Title(G4int id) const
456 return fVP1Manager->GetP1Title(id);
459 //_____________________________________________________________________________
461 G4String G4VAnalysisReader::GetP1XAxisTitle(G4int id) const
463 return fVP1Manager->GetP1XAxisTitle(id);
466 //_____________________________________________________________________________
468 G4String G4VAnalysisReader::GetP1YAxisTitle(G4int id) const
470 return fVP1Manager->GetP1YAxisTitle(id);
473 //_____________________________________________________________________________
475 G4String G4VAnalysisReader::GetP2Title(G4int id) const
477 return fVP2Manager->GetP2Title(id);
480 //_____________________________________________________________________________
482 G4String G4VAnalysisReader::GetP2XAxisTitle(G4int id) const
484 return fVP2Manager->GetP2XAxisTitle(id);
487 //_____________________________________________________________________________
489 G4String G4VAnalysisReader::GetP2YAxisTitle(G4int id) const
491 return fVP2Manager->GetP2YAxisTitle(id);
494 //_____________________________________________________________________________
496 G4String G4VAnalysisReader::GetP2ZAxisTitle(G4int id) const
498 return fVP2Manager->GetP2ZAxisTitle(id);
501 //_____________________________________________________________________________
503 G4int G4VAnalysisReader::GetVerboseLevel() const
505 return fState.GetVerboseLevel();
508 //_____________________________________________________________________________
510 G4String G4VAnalysisReader::GetType() const
512 return fState.GetType();
515 //_____________________________________________________________________________
517 G4String G4VAnalysisReader::GetFileType() const
519 return fFileManager->GetFileType();