Geant4  10.00.p01
G4H1DummyManager.cc
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: G4H1DummyManager.cc 70604 2013-06-03 11:27:06Z ihrivnac $
27 
28 // Author: Ivana Hrivnacova, 18/06/2013 (ivana@ipno.in2p3.fr)
29 
30 #include "G4H1DummyManager.hh"
31 
32 //_____________________________________________________________________________
34  : G4VH1Manager(state)
35 {
36 }
37 
38 //_____________________________________________________________________________
40 {
41 }
42 
43 //
44 // protected methods
45 //
46 
47 //_____________________________________________________________________________
49  const G4String& /*title*/,
50  G4int /*nbins*/,
51  G4double /*xmin*/, G4double /*xmax*/,
52  const G4String& /*unitName*/,
53  const G4String& /*fcnName*/,
54  const G4String& /*binScheme*/)
55 {
56  ExceptionForHistograms("CreateH1");
57  return 0;
58 }
59 
60 //_____________________________________________________________________________
62  const G4String& /*title*/,
63  const std::vector<G4double>& /*edges*/,
64  const G4String& /*unitName*/,
65  const G4String& /*fcnName*/)
66 {
67  ExceptionForHistograms("CreateH1");
68  return 0;
69 }
70 
71 //_____________________________________________________________________________
73  G4int /*nbins*/,
74  G4double /*xmin*/, G4double /*xmax*/,
75  const G4String& /*unitName*/,
76  const G4String& /*fcnName*/,
77  const G4String& /*binScheme*/)
78 {
79  ExceptionForHistograms("SetH1");
80  return false;
81 }
82 
83 //_____________________________________________________________________________
85  const std::vector<G4double>& /*edges*/,
86  const G4String& /*unitName*/,
87  const G4String& /*fcnName*/)
88 {
89  ExceptionForHistograms("SetH1");
90  return false;
91 }
92 
93 //_____________________________________________________________________________
95 {
96  ExceptionForHistograms("ScaleH1");
97  return false;
98 }
99 
100 //_____________________________________________________________________________
102  G4double /*value*/, G4double /*weight*/)
103 {
104  G4ExceptionDescription description;
105  description << " "
106  << "Histograms are not supported." ;
107  G4Exception("G4H1DummyManager::FillH1()",
108  "Analysis_W007", JustWarning, description);
109  return false;
110 }
111 
112 //_____________________________________________________________________________
114 {
115  ExceptionForHistograms("GetNofH1s");
116  return 0;
117 }
118 
119 //_____________________________________________________________________________
120 G4int G4H1DummyManager::GetH1Id(const G4String& /*name*/, G4bool /*warn*/) const
121 {
122  ExceptionForHistograms("GetH1Id");
123  return 0;
124 }
125 
126 
127 //_____________________________________________________________________________
129 {
130  ExceptionForHistograms("GetH1Nbins");
131  return 0;
132 }
133 
134 //_____________________________________________________________________________
136 {
137  ExceptionForHistograms("GetH1Xmin");
138  return 0;
139 }
140 
141 //_____________________________________________________________________________
143 {
144  ExceptionForHistograms("GetH1Xmax");
145  return 0;
146 }
147 
148 //_____________________________________________________________________________
150 {
151  ExceptionForHistograms("GetH1Xwidth");
152  return 0;
153 }
154 
155 //_____________________________________________________________________________
157  const G4String& /*title*/)
158 {
159  ExceptionForHistograms("SetH1Title");
160  return false;
161 }
162 
163 //_____________________________________________________________________________
165  const G4String& /*title*/)
166 {
167  ExceptionForHistograms("SetH1XAxisTitle");
168  return false;
169 }
170 
171 //_____________________________________________________________________________
173  const G4String& /*title*/)
174 {
175  ExceptionForHistograms("SetH1YAxisTitle");
176  return false;
177 }
178 
179 //_____________________________________________________________________________
181 {
182  ExceptionForHistograms("GetH1XAxisTitle");
183  return "";
184 }
185 
186 //_____________________________________________________________________________
188 {
189  ExceptionForHistograms("GetH1Title");
190  return "";
191 }
192 
193 //_____________________________________________________________________________
195 {
196  ExceptionForHistograms("GetH1YAxisTitle");
197  return "";
198 }
199 
200 //_____________________________________________________________________________
201 G4bool G4H1DummyManager::WriteOnAscii(std::ofstream& /*output*/)
202 {
203  ExceptionForHistograms("GetH1YAxisTitle");
204  return false;
205 }
206 
virtual G4bool SetH1Title(G4int id, const G4String &title)
virtual G4int GetNofH1s() const
void ExceptionForHistograms(const G4String &functionName) const
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
virtual G4bool SetH1XAxisTitle(G4int id, const G4String &title)
virtual G4bool SetH1(G4int id, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
virtual G4double GetH1Width(G4int id) const
virtual G4double GetH1Xmax(G4int id) const
int G4int
Definition: G4Types.hh:78
G4H1DummyManager(const G4AnalysisManagerState &state)
virtual G4int GetH1Nbins(G4int id) const
virtual G4String GetH1YAxisTitle(G4int id) const
bool G4bool
Definition: G4Types.hh:79
virtual G4bool FillH1(G4int id, G4double value, G4double weight=1.0)
virtual G4String GetH1Title(G4int id) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
virtual ~G4H1DummyManager()
virtual G4bool SetH1YAxisTitle(G4int id, const G4String &title)
virtual G4bool WriteOnAscii(std::ofstream &output)
double G4double
Definition: G4Types.hh:76
virtual G4bool ScaleH1(G4int id, G4double factor)
virtual G4int CreateH1(const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binScheme="linear")
virtual G4int GetH1Id(const G4String &name, G4bool warn=true) const
virtual G4double GetH1Xmin(G4int id) const
virtual G4String GetH1XAxisTitle(G4int id) const