Geant4  10.01.p02
ExG4HbookAnalysisManager.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: ExG4HbookAnalysisManager.hh 70604 2013-06-03 11:27:06Z ihrivnac $
27 
28 /// \file hbook/include/ExG4HbookAnalysisManager.icc
29 /// \brief Inline functions of the ExG4HbookAnalysisManager class
30 
31 
32 #include "ExG4HbookH1Manager.hh"
33 #include "ExG4HbookH2Manager.hh"
34 #include "ExG4HbookNtupleManager.hh"
35 
36 //_____________________________________________________________________________
37 inline
38 G4bool ExG4HbookAnalysisManager::SetH1HbookIdOffset(G4int offset)
39 {
40  return fH1Manager->SetH1HbookIdOffset(offset);
41 }
42 
43 //_____________________________________________________________________________
44 inline
45 G4int ExG4HbookAnalysisManager::GetH1HbookIdOffset() const
46 {
47  return fH1Manager->GetH1HbookIdOffset();
48 }
49 
50 //_____________________________________________________________________________
51 inline
52 G4bool ExG4HbookAnalysisManager::SetH2HbookIdOffset(G4int offset)
53 {
54  return fH2Manager->SetH2HbookIdOffset(offset);
55 }
56 
57 //_____________________________________________________________________________
58 inline
59 G4int ExG4HbookAnalysisManager::GetH2HbookIdOffset() const
60 {
61  return fH2Manager->GetH2HbookIdOffset();
62 }
63 
64 //_____________________________________________________________________________
65 inline
66 G4bool ExG4HbookAnalysisManager::SetNtupleHbookIdOffset(G4int offset)
67 {
68  return fNtupleManager->SetNtupleHbookIdOffset(offset);
69 }
70 
71 //_____________________________________________________________________________
72 inline
73 G4int ExG4HbookAnalysisManager::GetNtupleHbookIdOffset() const
74 {
75  return fNtupleManager->GetNtupleHbookIdOffset();
76 }
77 
78 //_____________________________________________________________________________
79 inline
80 tools::hbook::h1* ExG4HbookAnalysisManager::GetH1(G4int id, G4bool warn,
81  G4bool onlyIfActive) const
82 {
83  return fH1Manager->GetH1(id, warn, onlyIfActive);
84 }
85 
86 //_____________________________________________________________________________
87 inline
88 tools::hbook::h2* ExG4HbookAnalysisManager::GetH2(G4int id, G4bool warn,
89  G4bool onlyIfActive) const
90 {
91  return fH2Manager->GetH2(id, warn, onlyIfActive);
92 }
93 
94 //_____________________________________________________________________________
95 inline
96 tools::hbook::wntuple* ExG4HbookAnalysisManager::GetNtuple() const
97 {
98  return fNtupleManager->GetNtuple();
99 }
100 
101 //_____________________________________________________________________________
102 inline
103 tools::hbook::wntuple* ExG4HbookAnalysisManager::GetNtuple(G4int ntupleId) const
104 {
105  return fNtupleManager->GetNtuple(ntupleId);
106 }
107 
108 //_____________________________________________________________________________
109 inline
110 std::vector<tools::hbook::h1*>::iterator ExG4HbookAnalysisManager::BeginH1()
111 {
112  return fH1Manager->BeginH1();
113 }
114 
115 //_____________________________________________________________________________
116 inline
117 std::vector<tools::hbook::h1*>::iterator ExG4HbookAnalysisManager::EndH1()
118 {
119  return fH1Manager->EndH1();
120 }
121 
122 //_____________________________________________________________________________
123 inline
124 std::vector<tools::hbook::h1*>::const_iterator
125 ExG4HbookAnalysisManager::BeginConstH1() const
126 {
127  return fH1Manager->BeginConstH1();
128 }
129 
130 //_____________________________________________________________________________
131 inline
132 std::vector<tools::hbook::h1*>::const_iterator
133 ExG4HbookAnalysisManager::EndConstH1() const
134 {
135  return fH1Manager->EndConstH1();
136 }
137 
138 //_____________________________________________________________________________
139 inline
140 std::vector<tools::hbook::h2*>::iterator ExG4HbookAnalysisManager::BeginH2()
141 {
142  return fH2Manager->BeginH2();
143 }
144 
145 //_____________________________________________________________________________
146 inline
147 std::vector<tools::hbook::h2*>::iterator ExG4HbookAnalysisManager::EndH2()
148 {
149  return fH2Manager->EndH2();
150 }
151 
152 //_____________________________________________________________________________
153 inline
154 std::vector<tools::hbook::h2*>::const_iterator
155 ExG4HbookAnalysisManager::BeginConstH2() const
156 {
157  return fH2Manager->BeginConstH2();
158 }
159 
160 //_____________________________________________________________________________
161 inline
162 std::vector<tools::hbook::h2*>::const_iterator
163 ExG4HbookAnalysisManager::EndConstH2() const
164 {
165  return fH2Manager->EndConstH2();
166 }
167 
168 //_____________________________________________________________________________
169 inline
170 std::vector<tools::hbook::wntuple*>::iterator ExG4HbookAnalysisManager::BeginNtuple()
171 {
172  return fNtupleManager->BeginNtuple();
173 }
174 
175 //_____________________________________________________________________________
176 inline
177 std::vector<tools::hbook::wntuple*>::iterator ExG4HbookAnalysisManager::EndNtuple()
178 {
179  return fNtupleManager->EndNtuple();
180 }
181 
182 //_____________________________________________________________________________
183 inline
184 std::vector<tools::hbook::wntuple*>::const_iterator
185 ExG4HbookAnalysisManager::BeginConstNtuple() const
186 {
187  return fNtupleManager->BeginConstNtuple();
188 }
189 
190 //_____________________________________________________________________________
191 inline
192 std::vector<tools::hbook::wntuple*>::const_iterator
193 ExG4HbookAnalysisManager::EndConstNtuple() const
194 {
195  return fNtupleManager->EndConstNtuple();
196 }