Geant4  10.02.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 "ExG4HbookP1Manager.hh"
35 #include "ExG4HbookNtupleManager.hh"
36 #include "ExG4HbookFileManager.hh"
37 
38 //_____________________________________________________________________________
39 inline
40 G4bool ExG4HbookAnalysisManager::IsOpenFileImpl() const
41 {
42  return fFileManager->IsOpenFile();
43 }
44 
45 //_____________________________________________________________________________
46 inline
47 G4bool ExG4HbookAnalysisManager::SetH1HbookIdOffset(G4int offset)
48 {
49  return fH1Manager->SetH1HbookIdOffset(offset);
50 }
51 
52 //_____________________________________________________________________________
53 inline
54 G4int ExG4HbookAnalysisManager::GetH1HbookIdOffset() const
55 {
56  return fH1Manager->GetH1HbookIdOffset();
57 }
58 
59 //_____________________________________________________________________________
60 inline
61 G4bool ExG4HbookAnalysisManager::SetH2HbookIdOffset(G4int offset)
62 {
63  return fH2Manager->SetH2HbookIdOffset(offset);
64 }
65 
66 //_____________________________________________________________________________
67 inline
68 G4int ExG4HbookAnalysisManager::GetH2HbookIdOffset() const
69 {
70  return fH2Manager->GetH2HbookIdOffset();
71 }
72 
73 //_____________________________________________________________________________
74 inline
75 G4bool ExG4HbookAnalysisManager::SetP1HbookIdOffset(G4int offset)
76 {
77  return fP1Manager->SetP1HbookIdOffset(offset);
78 }
79 
80 //_____________________________________________________________________________
81 inline
82 G4int ExG4HbookAnalysisManager::GetP1HbookIdOffset() const
83 {
84  return fP1Manager->GetP1HbookIdOffset();
85 }
86 
87 //_____________________________________________________________________________
88 inline
89 G4bool ExG4HbookAnalysisManager::SetNtupleHbookIdOffset(G4int offset)
90 {
91  return fNtupleManager->SetNtupleHbookIdOffset(offset);
92 }
93 
94 //_____________________________________________________________________________
95 inline
96 G4int ExG4HbookAnalysisManager::GetNtupleHbookIdOffset() const
97 {
98  return fNtupleManager->GetNtupleHbookIdOffset();
99 }
100 
101 //_____________________________________________________________________________
102 inline
103 tools::hbook::h1* ExG4HbookAnalysisManager::GetH1(G4int id, G4bool warn,
104  G4bool onlyIfActive) const
105 {
106  return fH1Manager->GetH1(id, warn, onlyIfActive);
107 }
108 
109 //_____________________________________________________________________________
110 inline
111 tools::hbook::h2* ExG4HbookAnalysisManager::GetH2(G4int id, G4bool warn,
112  G4bool onlyIfActive) const
113 {
114  return fH2Manager->GetH2(id, warn, onlyIfActive);
115 }
116 
117 //_____________________________________________________________________________
118 inline
119 tools::hbook::p1* ExG4HbookAnalysisManager::GetP1(G4int id, G4bool warn,
120  G4bool onlyIfActive) const
121 {
122  return fP1Manager->GetP1(id, warn, onlyIfActive);
123 }
124 
125 //_____________________________________________________________________________
126 inline
127 tools::hbook::wntuple* ExG4HbookAnalysisManager::GetNtuple() const
128 {
129  return fNtupleManager->GetNtuple();
130 }
131 
132 //_____________________________________________________________________________
133 inline
134 tools::hbook::wntuple* ExG4HbookAnalysisManager::GetNtuple(G4int ntupleId) const
135 {
136  return fNtupleManager->GetNtuple(ntupleId);
137 }
138 
139 //_____________________________________________________________________________
140 inline
141 std::vector<tools::hbook::h1*>::iterator ExG4HbookAnalysisManager::BeginH1()
142 {
143  return fH1Manager->BeginH1();
144 }
145 
146 //_____________________________________________________________________________
147 inline
148 std::vector<tools::hbook::h1*>::iterator ExG4HbookAnalysisManager::EndH1()
149 {
150  return fH1Manager->EndH1();
151 }
152 
153 //_____________________________________________________________________________
154 inline
155 std::vector<tools::hbook::h1*>::const_iterator
156 ExG4HbookAnalysisManager::BeginConstH1() const
157 {
158  return fH1Manager->BeginConstH1();
159 }
160 
161 //_____________________________________________________________________________
162 inline
163 std::vector<tools::hbook::h1*>::const_iterator
164 ExG4HbookAnalysisManager::EndConstH1() const
165 {
166  return fH1Manager->EndConstH1();
167 }
168 
169 //_____________________________________________________________________________
170 inline
171 std::vector<tools::hbook::h2*>::iterator ExG4HbookAnalysisManager::BeginH2()
172 {
173  return fH2Manager->BeginH2();
174 }
175 
176 //_____________________________________________________________________________
177 inline
178 std::vector<tools::hbook::h2*>::iterator ExG4HbookAnalysisManager::EndH2()
179 {
180  return fH2Manager->EndH2();
181 }
182 
183 //_____________________________________________________________________________
184 inline
185 std::vector<tools::hbook::h2*>::const_iterator
186 ExG4HbookAnalysisManager::BeginConstH2() const
187 {
188  return fH2Manager->BeginConstH2();
189 }
190 
191 //_____________________________________________________________________________
192 inline
193 std::vector<tools::hbook::h2*>::const_iterator
194 ExG4HbookAnalysisManager::EndConstH2() const
195 {
196  return fH2Manager->EndConstH2();
197 }
198 
199 //_____________________________________________________________________________
200 inline
201 std::vector<tools::hbook::p1*>::iterator ExG4HbookAnalysisManager::BeginP1()
202 {
203  return fP1Manager->BeginP1();
204 }
205 
206 //_____________________________________________________________________________
207 inline
208 std::vector<tools::hbook::p1*>::iterator ExG4HbookAnalysisManager::EndP1()
209 {
210  return fP1Manager->EndP1();
211 }
212 
213 //_____________________________________________________________________________
214 inline
215 std::vector<tools::hbook::p1*>::const_iterator
216 ExG4HbookAnalysisManager::BeginConstP1() const
217 {
218  return fP1Manager->BeginConstP1();
219 }
220 
221 //_____________________________________________________________________________
222 inline
223 std::vector<tools::hbook::p1*>::const_iterator
224 ExG4HbookAnalysisManager::EndConstP1() const
225 {
226  return fP1Manager->EndConstP1();
227 }
228 
229 //_____________________________________________________________________________
230 inline
231 std::vector<tools::hbook::wntuple*>::iterator ExG4HbookAnalysisManager::BeginNtuple()
232 {
233  return fNtupleManager->BeginNtuple();
234 }
235 
236 //_____________________________________________________________________________
237 inline
238 std::vector<tools::hbook::wntuple*>::iterator ExG4HbookAnalysisManager::EndNtuple()
239 {
240  return fNtupleManager->EndNtuple();
241 }
242 
243 //_____________________________________________________________________________
244 inline
245 std::vector<tools::hbook::wntuple*>::const_iterator
246 ExG4HbookAnalysisManager::BeginConstNtuple() const
247 {
248  return fNtupleManager->BeginConstNtuple();
249 }
250 
251 //_____________________________________________________________________________
252 inline
253 std::vector<tools::hbook::wntuple*>::const_iterator
254 ExG4HbookAnalysisManager::EndConstNtuple() const
255 {
256  return fNtupleManager->EndConstNtuple();
257 }