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: G4VAnalysisManager.hh 70604 2013-06-03 11:27:06Z ihrivnac $
28 #include "G4HnManager.hh"
29 #include "G4VH1Manager.hh"
30 #include "G4VH2Manager.hh"
31 #include "G4VNtupleManager.hh"
32 #include "G4VFileManager.hh"
34 //_____________________________________________________________________________
36 G4bool G4VAnalysisManager::FillH1(G4int id, G4double value, G4double weight)
38 return fVH1Manager->FillH1(id, value, weight);
41 //_____________________________________________________________________________
43 G4bool G4VAnalysisManager::FillH2(G4int id,
44 G4double xvalue, G4double yvalue,
47 return fVH2Manager->FillH2(id, xvalue, yvalue, weight);
50 //_____________________________________________________________________________
52 G4bool G4VAnalysisManager::FillNtupleIColumn(G4int columnId, G4int value)
54 return fVNtupleManager->FillNtupleIColumn(columnId, value);
57 //_____________________________________________________________________________
59 G4bool G4VAnalysisManager::FillNtupleFColumn(G4int columnId, G4float value)
61 return fVNtupleManager->FillNtupleFColumn(columnId, value);
64 //_____________________________________________________________________________
66 G4bool G4VAnalysisManager::FillNtupleDColumn(G4int columnId, G4double value)
68 return fVNtupleManager->FillNtupleDColumn(columnId, value);
71 //_____________________________________________________________________________
73 G4bool G4VAnalysisManager::AddNtupleRow()
75 return fVNtupleManager->AddNtupleRow();
78 //_____________________________________________________________________________
80 G4bool G4VAnalysisManager::FillNtupleIColumn(G4int ntupleId, G4int columnId,
83 return fVNtupleManager->FillNtupleIColumn(ntupleId, columnId, value);
85 //_____________________________________________________________________________
87 G4bool G4VAnalysisManager::FillNtupleFColumn(G4int ntupleId, G4int columnId,
90 return fVNtupleManager->FillNtupleFColumn(ntupleId, columnId, value);
93 //_____________________________________________________________________________
95 G4bool G4VAnalysisManager::FillNtupleDColumn(G4int ntupleId, G4int columnId,
98 return fVNtupleManager->FillNtupleDColumn(ntupleId, columnId, value);
101 //_____________________________________________________________________________
103 G4bool G4VAnalysisManager::AddNtupleRow(G4int ntupleId)
105 return fVNtupleManager->AddNtupleRow(ntupleId);
108 //_____________________________________________________________________________
110 G4bool G4VAnalysisManager::GetActivation() const
112 return fState.GetIsActivation();
115 //_____________________________________________________________________________
117 G4int G4VAnalysisManager::GetH1Id(const G4String& name, G4bool warn) const
119 return fVH1Manager->GetH1Id(name, warn);
122 //_____________________________________________________________________________
124 G4int G4VAnalysisManager::GetH2Id(const G4String& name, G4bool warn) const
126 return fVH2Manager->GetH2Id(name, warn);
129 //_____________________________________________________________________________
131 G4int G4VAnalysisManager::GetH1Nbins(G4int id) const
133 return fVH1Manager->GetH1Nbins(id);
136 //_____________________________________________________________________________
138 G4double G4VAnalysisManager::GetH1Xmin(G4int id) const
140 // Returns xmin value with applied unit and histogram function
142 return fVH1Manager->GetH1Xmin(id);
145 //_____________________________________________________________________________
147 G4double G4VAnalysisManager::GetH1Xmax(G4int id) const
149 return fVH1Manager->GetH1Xmax(id);
152 //_____________________________________________________________________________
154 G4double G4VAnalysisManager::GetH1Width(G4int id) const
156 return fVH1Manager->GetH1Width(id);
159 //_____________________________________________________________________________
161 G4int G4VAnalysisManager::GetH2Nxbins(G4int id) const
163 return fVH2Manager->GetH2Nxbins(id);
166 //_____________________________________________________________________________
168 G4double G4VAnalysisManager::GetH2Xmin(G4int id) const
170 // Returns xmin value with applied unit and histogram function
172 return fVH2Manager->GetH2Xmin(id);
175 //_____________________________________________________________________________
177 G4double G4VAnalysisManager::GetH2Xmax(G4int id) const
179 return fVH2Manager->GetH2Xmax(id);
182 //_____________________________________________________________________________
184 G4double G4VAnalysisManager::GetH2XWidth(G4int id) const
186 return fVH2Manager->GetH2XWidth(id);
189 //_____________________________________________________________________________
191 G4int G4VAnalysisManager::GetH2Nybins(G4int id) const
193 return fVH2Manager->GetH2Nybins(id);
196 //_____________________________________________________________________________
198 G4double G4VAnalysisManager::GetH2Ymin(G4int id) const
200 // Returns xmin value with applied unit and histogram function
202 return fVH2Manager->GetH2Ymin(id);
205 //_____________________________________________________________________________
207 G4double G4VAnalysisManager::GetH2Ymax(G4int id) const
209 return fVH2Manager->GetH2Ymax(id);
212 //_____________________________________________________________________________
214 G4double G4VAnalysisManager::GetH2YWidth(G4int id) const
216 return fVH2Manager->GetH2YWidth(id);
219 //_____________________________________________________________________________
221 G4String G4VAnalysisManager::GetH1Name(G4int id) const
223 return fH1HnManager->GetName(id);
226 //_____________________________________________________________________________
228 G4double G4VAnalysisManager::GetH1Unit(G4int id) const
230 return fH1HnManager->GetXUnit(id);
233 //_____________________________________________________________________________
235 G4bool G4VAnalysisManager::GetH1Activation(G4int id) const
237 return fH1HnManager->GetActivation(id);
240 //_____________________________________________________________________________
242 G4bool G4VAnalysisManager::GetH1Ascii(G4int id) const
244 return fH1HnManager->GetAscii(id);
247 //_____________________________________________________________________________
249 G4String G4VAnalysisManager::GetH2Name(G4int id) const
251 return fH2HnManager->GetName(id);
254 //_____________________________________________________________________________
256 G4double G4VAnalysisManager::GetH2XUnit(G4int id) const
258 return fH2HnManager->GetXUnit(id);
261 //_____________________________________________________________________________
263 G4double G4VAnalysisManager::GetH2YUnit(G4int id) const
265 return fH2HnManager->GetYUnit(id);
268 //_____________________________________________________________________________
270 G4bool G4VAnalysisManager::GetH2Activation(G4int id) const
272 return fH2HnManager->GetActivation(id);
275 //_____________________________________________________________________________
277 G4bool G4VAnalysisManager::GetH2Ascii(G4int id) const
279 return fH2HnManager->GetAscii(id);
283 //_____________________________________________________________________________
285 G4bool G4VAnalysisManager::SetH1Title(G4int id, const G4String& title)
287 return fVH1Manager->SetH1Title(id, title);
290 //_____________________________________________________________________________
292 G4bool G4VAnalysisManager::SetH1XAxisTitle(G4int id, const G4String& title)
294 return fVH1Manager->SetH1XAxisTitle(id, title);
297 //_____________________________________________________________________________
299 G4bool G4VAnalysisManager::SetH1YAxisTitle(G4int id, const G4String& title)
301 return fVH1Manager->SetH1YAxisTitle(id, title);
304 //_____________________________________________________________________________
306 G4bool G4VAnalysisManager::SetH2Title(G4int id, const G4String& title)
308 return fVH2Manager->SetH2Title(id, title);
311 //_____________________________________________________________________________
313 G4bool G4VAnalysisManager::SetH2XAxisTitle(G4int id, const G4String& title)
315 return fVH2Manager->SetH2XAxisTitle(id, title);
318 //_____________________________________________________________________________
320 G4bool G4VAnalysisManager::SetH2YAxisTitle(G4int id, const G4String& title)
322 return fVH2Manager->SetH2YAxisTitle(id, title);
325 //_____________________________________________________________________________
327 G4bool G4VAnalysisManager::SetH2ZAxisTitle(G4int id, const G4String& title)
329 return fVH2Manager->SetH2ZAxisTitle(id, title);
332 //_____________________________________________________________________________
334 G4String G4VAnalysisManager::GetH1Title(G4int id) const
336 return fVH1Manager->GetH1Title(id);
339 //_____________________________________________________________________________
341 G4String G4VAnalysisManager::GetH1XAxisTitle(G4int id) const
343 return fVH1Manager->GetH1XAxisTitle(id);
346 //_____________________________________________________________________________
348 G4String G4VAnalysisManager::GetH1YAxisTitle(G4int id) const
350 return fVH1Manager->GetH1YAxisTitle(id);
353 //_____________________________________________________________________________
355 G4String G4VAnalysisManager::GetH2Title(G4int id) const
357 return fVH2Manager->GetH2Title(id);
360 //_____________________________________________________________________________
362 G4String G4VAnalysisManager::GetH2XAxisTitle(G4int id) const
364 return fVH2Manager->GetH2XAxisTitle(id);
367 //_____________________________________________________________________________
369 G4String G4VAnalysisManager::GetH2YAxisTitle(G4int id) const
371 return fVH2Manager->GetH2YAxisTitle(id);
374 //_____________________________________________________________________________
376 G4String G4VAnalysisManager::GetH2ZAxisTitle(G4int id) const
378 return fVH2Manager->GetH2ZAxisTitle(id);
381 //_____________________________________________________________________________
383 G4int G4VAnalysisManager::GetVerboseLevel() const
385 return fState.GetVerboseLevel();
388 //_____________________________________________________________________________
390 G4String G4VAnalysisManager::GetType() const
392 return fState.GetType();
395 //_____________________________________________________________________________
397 G4String G4VAnalysisManager::GetFileType() const
399 return fVFileManager->GetFileType();