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 "ExG4HbookNtupleManager.hh"
36 //_____________________________________________________________________________
38 G4bool ExG4HbookAnalysisManager::SetH1HbookIdOffset(G4int offset)
40 return fH1Manager->SetH1HbookIdOffset(offset);
43 //_____________________________________________________________________________
45 G4int ExG4HbookAnalysisManager::GetH1HbookIdOffset() const
47 return fH1Manager->GetH1HbookIdOffset();
50 //_____________________________________________________________________________
52 G4bool ExG4HbookAnalysisManager::SetH2HbookIdOffset(G4int offset)
54 return fH2Manager->SetH2HbookIdOffset(offset);
57 //_____________________________________________________________________________
59 G4int ExG4HbookAnalysisManager::GetH2HbookIdOffset() const
61 return fH2Manager->GetH2HbookIdOffset();
64 //_____________________________________________________________________________
66 G4bool ExG4HbookAnalysisManager::SetNtupleHbookIdOffset(G4int offset)
68 return fNtupleManager->SetNtupleHbookIdOffset(offset);
71 //_____________________________________________________________________________
73 G4int ExG4HbookAnalysisManager::GetNtupleHbookIdOffset() const
75 return fNtupleManager->GetNtupleHbookIdOffset();
78 //_____________________________________________________________________________
80 tools::hbook::h1* ExG4HbookAnalysisManager::GetH1(G4int id, G4bool warn,
81 G4bool onlyIfActive) const
83 return fH1Manager->GetH1(id, warn, onlyIfActive);
86 //_____________________________________________________________________________
88 tools::hbook::h2* ExG4HbookAnalysisManager::GetH2(G4int id, G4bool warn,
89 G4bool onlyIfActive) const
91 return fH2Manager->GetH2(id, warn, onlyIfActive);
94 //_____________________________________________________________________________
96 tools::hbook::wntuple* ExG4HbookAnalysisManager::GetNtuple() const
98 return fNtupleManager->GetNtuple();
101 //_____________________________________________________________________________
103 tools::hbook::wntuple* ExG4HbookAnalysisManager::GetNtuple(G4int ntupleId) const
105 return fNtupleManager->GetNtuple(ntupleId);
108 //_____________________________________________________________________________
110 std::vector<tools::hbook::h1*>::iterator ExG4HbookAnalysisManager::BeginH1()
112 return fH1Manager->BeginH1();
115 //_____________________________________________________________________________
117 std::vector<tools::hbook::h1*>::iterator ExG4HbookAnalysisManager::EndH1()
119 return fH1Manager->EndH1();
122 //_____________________________________________________________________________
124 std::vector<tools::hbook::h1*>::const_iterator
125 ExG4HbookAnalysisManager::BeginConstH1() const
127 return fH1Manager->BeginConstH1();
130 //_____________________________________________________________________________
132 std::vector<tools::hbook::h1*>::const_iterator
133 ExG4HbookAnalysisManager::EndConstH1() const
135 return fH1Manager->EndConstH1();
138 //_____________________________________________________________________________
140 std::vector<tools::hbook::h2*>::iterator ExG4HbookAnalysisManager::BeginH2()
142 return fH2Manager->BeginH2();
145 //_____________________________________________________________________________
147 std::vector<tools::hbook::h2*>::iterator ExG4HbookAnalysisManager::EndH2()
149 return fH2Manager->EndH2();
152 //_____________________________________________________________________________
154 std::vector<tools::hbook::h2*>::const_iterator
155 ExG4HbookAnalysisManager::BeginConstH2() const
157 return fH2Manager->BeginConstH2();
160 //_____________________________________________________________________________
162 std::vector<tools::hbook::h2*>::const_iterator
163 ExG4HbookAnalysisManager::EndConstH2() const
165 return fH2Manager->EndConstH2();
168 //_____________________________________________________________________________
170 std::vector<tools::hbook::wntuple*>::iterator ExG4HbookAnalysisManager::BeginNtuple()
172 return fNtupleManager->BeginNtuple();
175 //_____________________________________________________________________________
177 std::vector<tools::hbook::wntuple*>::iterator ExG4HbookAnalysisManager::EndNtuple()
179 return fNtupleManager->EndNtuple();
182 //_____________________________________________________________________________
184 std::vector<tools::hbook::wntuple*>::const_iterator
185 ExG4HbookAnalysisManager::BeginConstNtuple() const
187 return fNtupleManager->BeginConstNtuple();
190 //_____________________________________________________________________________
192 std::vector<tools::hbook::wntuple*>::const_iterator
193 ExG4HbookAnalysisManager::EndConstNtuple() const
195 return fNtupleManager->EndConstNtuple();