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: ExG4HbookAnalysisManager.hh 70604 2013-06-03 11:27:06Z ihrivnac $
28 /// \file hbook/include/ExG4HbookAnalysisManager.icc
29 /// \brief Inline functions of the ExG4HbookAnalysisManager class
32 #include "ExG4HbookH1Manager.hh"
33 #include "ExG4HbookH2Manager.hh"
34 #include "ExG4HbookP1Manager.hh"
35 #include "ExG4HbookNtupleManager.hh"
36 #include "ExG4HbookFileManager.hh"
38 //_____________________________________________________________________________
40 G4bool ExG4HbookAnalysisManager::IsOpenFileImpl() const
42 return fFileManager->IsOpenFile();
45 //_____________________________________________________________________________
47 G4bool ExG4HbookAnalysisManager::SetH1HbookIdOffset(G4int offset)
49 return fH1Manager->SetH1HbookIdOffset(offset);
52 //_____________________________________________________________________________
54 G4int ExG4HbookAnalysisManager::GetH1HbookIdOffset() const
56 return fH1Manager->GetH1HbookIdOffset();
59 //_____________________________________________________________________________
61 G4bool ExG4HbookAnalysisManager::SetH2HbookIdOffset(G4int offset)
63 return fH2Manager->SetH2HbookIdOffset(offset);
66 //_____________________________________________________________________________
68 G4int ExG4HbookAnalysisManager::GetH2HbookIdOffset() const
70 return fH2Manager->GetH2HbookIdOffset();
73 //_____________________________________________________________________________
75 G4bool ExG4HbookAnalysisManager::SetP1HbookIdOffset(G4int offset)
77 return fP1Manager->SetP1HbookIdOffset(offset);
80 //_____________________________________________________________________________
82 G4int ExG4HbookAnalysisManager::GetP1HbookIdOffset() const
84 return fP1Manager->GetP1HbookIdOffset();
87 //_____________________________________________________________________________
89 G4bool ExG4HbookAnalysisManager::SetNtupleHbookIdOffset(G4int offset)
91 return fNtupleManager->SetNtupleHbookIdOffset(offset);
94 //_____________________________________________________________________________
96 G4int ExG4HbookAnalysisManager::GetNtupleHbookIdOffset() const
98 return fNtupleManager->GetNtupleHbookIdOffset();
101 //_____________________________________________________________________________
103 tools::hbook::h1* ExG4HbookAnalysisManager::GetH1(G4int id, G4bool warn,
104 G4bool onlyIfActive) const
106 return fH1Manager->GetH1(id, warn, onlyIfActive);
109 //_____________________________________________________________________________
111 tools::hbook::h2* ExG4HbookAnalysisManager::GetH2(G4int id, G4bool warn,
112 G4bool onlyIfActive) const
114 return fH2Manager->GetH2(id, warn, onlyIfActive);
117 //_____________________________________________________________________________
119 tools::hbook::p1* ExG4HbookAnalysisManager::GetP1(G4int id, G4bool warn,
120 G4bool onlyIfActive) const
122 return fP1Manager->GetP1(id, warn, onlyIfActive);
125 //_____________________________________________________________________________
127 tools::hbook::wntuple* ExG4HbookAnalysisManager::GetNtuple() const
129 return fNtupleManager->GetNtuple();
132 //_____________________________________________________________________________
134 tools::hbook::wntuple* ExG4HbookAnalysisManager::GetNtuple(G4int ntupleId) const
136 return fNtupleManager->GetNtuple(ntupleId);
139 //_____________________________________________________________________________
141 std::vector<tools::hbook::h1*>::iterator ExG4HbookAnalysisManager::BeginH1()
143 return fH1Manager->BeginH1();
146 //_____________________________________________________________________________
148 std::vector<tools::hbook::h1*>::iterator ExG4HbookAnalysisManager::EndH1()
150 return fH1Manager->EndH1();
153 //_____________________________________________________________________________
155 std::vector<tools::hbook::h1*>::const_iterator
156 ExG4HbookAnalysisManager::BeginConstH1() const
158 return fH1Manager->BeginConstH1();
161 //_____________________________________________________________________________
163 std::vector<tools::hbook::h1*>::const_iterator
164 ExG4HbookAnalysisManager::EndConstH1() const
166 return fH1Manager->EndConstH1();
169 //_____________________________________________________________________________
171 std::vector<tools::hbook::h2*>::iterator ExG4HbookAnalysisManager::BeginH2()
173 return fH2Manager->BeginH2();
176 //_____________________________________________________________________________
178 std::vector<tools::hbook::h2*>::iterator ExG4HbookAnalysisManager::EndH2()
180 return fH2Manager->EndH2();
183 //_____________________________________________________________________________
185 std::vector<tools::hbook::h2*>::const_iterator
186 ExG4HbookAnalysisManager::BeginConstH2() const
188 return fH2Manager->BeginConstH2();
191 //_____________________________________________________________________________
193 std::vector<tools::hbook::h2*>::const_iterator
194 ExG4HbookAnalysisManager::EndConstH2() const
196 return fH2Manager->EndConstH2();
199 //_____________________________________________________________________________
201 std::vector<tools::hbook::p1*>::iterator ExG4HbookAnalysisManager::BeginP1()
203 return fP1Manager->BeginP1();
206 //_____________________________________________________________________________
208 std::vector<tools::hbook::p1*>::iterator ExG4HbookAnalysisManager::EndP1()
210 return fP1Manager->EndP1();
213 //_____________________________________________________________________________
215 std::vector<tools::hbook::p1*>::const_iterator
216 ExG4HbookAnalysisManager::BeginConstP1() const
218 return fP1Manager->BeginConstP1();
221 //_____________________________________________________________________________
223 std::vector<tools::hbook::p1*>::const_iterator
224 ExG4HbookAnalysisManager::EndConstP1() const
226 return fP1Manager->EndConstP1();
229 //_____________________________________________________________________________
231 std::vector<tools::hbook::wntuple*>::iterator ExG4HbookAnalysisManager::BeginNtuple()
233 return fNtupleManager->BeginNtuple();
236 //_____________________________________________________________________________
238 std::vector<tools::hbook::wntuple*>::iterator ExG4HbookAnalysisManager::EndNtuple()
240 return fNtupleManager->EndNtuple();
243 //_____________________________________________________________________________
245 std::vector<tools::hbook::wntuple*>::const_iterator
246 ExG4HbookAnalysisManager::BeginConstNtuple() const
248 return fNtupleManager->BeginConstNtuple();
251 //_____________________________________________________________________________
253 std::vector<tools::hbook::wntuple*>::const_iterator
254 ExG4HbookAnalysisManager::EndConstNtuple() const
256 return fNtupleManager->EndConstNtuple();