Geant4  10.01.p02
ExG4HbookH3DummyManager.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$
27 
30 
31 // Author: Ivana Hrivnacova, 03/11/2014 (ivana@ipno.in2p3.fr)
32 
35 
36 //_____________________________________________________________________________
38  const G4AnalysisManagerState& state)
39  : G4VH3Manager(state)
40 {
41 }
42 
43 //_____________________________________________________________________________
45 {
46 }
47 
48 //
49 // private methods
50 //
51 
52 //_____________________________________________________________________________
54  const G4String& functionName)
55 {
56  if ( ! fWarn ) return;
57 
58  ExceptionForHistogramsConst(functionName);
59  fWarn = false;
60 }
61 
62 //_____________________________________________________________________________
64  const G4String& functionName) const
65 {
66  G4String inFunction = "G4";
67  inFunction += fState.GetType();
68  inFunction += "AnalysisManager::";
69  inFunction += functionName;
70 
71  G4ExceptionDescription description;
72  description << " "
73  << "Histograms are not supported." ;
74 
75  G4Exception(inFunction, "Analysis_W011", JustWarning, description);
76 }
77 
78 //
79 // protected methods
80 //
81 
82 //_____________________________________________________________________________
84  const G4String& /*title*/,
85  G4int /*nxbins*/,
86  G4double /*xmin*/, G4double /*xmax*/,
87  G4int /*nybins*/,
88  G4double /*ymin*/, G4double /*ymax*/,
89  G4int /*nzbins*/,
90  G4double /*zmin*/, G4double /*zmax*/,
91  const G4String& /*xunitName*/,
92  const G4String& /*yunitName*/,
93  const G4String& /*zunitName*/,
94  const G4String& /*xfcnName*/,
95  const G4String& /*yfcnName*/,
96  const G4String& /*zfcnName*/,
97  const G4String& /*xbinScheme*/,
98  const G4String& /*ybinScheme*/,
99  const G4String& /*zbinScheme*/)
100 {
101  ExceptionForHistograms("CreateH3");
102  return 0;
103 }
104 
105 //_____________________________________________________________________________
107  const G4String& /*title*/,
108  const std::vector<G4double>& /*xedges*/,
109  const std::vector<G4double>& /*yedges*/,
110  const std::vector<G4double>& /*zedges*/,
111  const G4String& /*xunitName*/,
112  const G4String& /*yunitName*/,
113  const G4String& /*zunitName*/,
114  const G4String& /*xfcnName*/,
115  const G4String& /*yfcnName*/,
116  const G4String& /*zfcnName*/)
117 
118 {
119  ExceptionForHistograms("CreateH3");
120  return 0;
121 }
122 
123 //_____________________________________________________________________________
125  G4int /*nxbins*/,
126  G4double /*xmin*/, G4double /*xmax*/,
127  G4int /*nybins*/,
128  G4double /*ymin*/, G4double /*ymax*/,
129  G4int /*nzbins*/,
130  G4double /*zmin*/, G4double /*zmax*/,
131  const G4String& /*xunitName*/,
132  const G4String& /*yunitName*/,
133  const G4String& /*zunitName*/,
134  const G4String& /*xfcnName*/,
135  const G4String& /*yfcnName*/,
136  const G4String& /*zfcnName*/,
137  const G4String& /*xbinScheme*/,
138  const G4String& /*ybinScheme*/,
139  const G4String& /*zbinScheme*/)
140 {
141  ExceptionForHistograms("SetH3");
142  return false;
143 }
144 
145 //_____________________________________________________________________________
147  const std::vector<G4double>& /*xedges*/,
148  const std::vector<G4double>& /*yedges*/,
149  const std::vector<G4double>& /*zedges*/,
150  const G4String& /*xunitName*/,
151  const G4String& /*yunitName*/,
152  const G4String& /*zunitName*/,
153  const G4String& /*xfcnName*/,
154  const G4String& /*yfcnName*/,
155  const G4String& /*zfcnName*/)
156 {
157  ExceptionForHistograms("SetH3");
158  return false;
159 }
160 
161 //_____________________________________________________________________________
163 {
164  ExceptionForHistograms("ScaleH3");
165  return false;
166 }
167 
168 //_____________________________________________________________________________
170  G4double /*xvalue*/, G4double /*yvalue*/,
171  G4double /*zvalue*/,
172  G4double /*weight*/)
173 {
174  ExceptionForHistograms("FillH3");
175  return false;
176 }
177 
178 //_____________________________________________________________________________
179 G4int ExG4HbookH3DummyManager::GetH3Id(const G4String& /*name*/, G4bool /*warn*/) const
180 {
181  ExceptionForHistogramsConst("GetH3Id");
182  return 0;
183 }
184 
185 //_____________________________________________________________________________
187 {
188  ExceptionForHistogramsConst("GetH3Nxbins");
189  return 0;
190 }
191 
192 //_____________________________________________________________________________
194 {
195  ExceptionForHistogramsConst("GetH3Xmin");
196  return 0;
197 }
198 
199 //_____________________________________________________________________________
201 {
202  ExceptionForHistogramsConst("GetH3Xmax");
203  return 0;
204 }
205 
206 //_____________________________________________________________________________
208 {
209  ExceptionForHistogramsConst("GetH3XWidth");
210  return 0;
211 }
212 
213 //_____________________________________________________________________________
215 {
216  ExceptionForHistogramsConst("GetH3Nybins");
217  return 0;
218 }
219 
220 //_____________________________________________________________________________
222 {
224  return 0;
225 }
226 
227 //_____________________________________________________________________________
229 {
230  ExceptionForHistogramsConst("GetH3Ymax");
231  return 0;
232 }
233 
234 //_____________________________________________________________________________
236 {
237  ExceptionForHistogramsConst("GetH3YWidth");
238  return 0;
239 }
240 
241 //_____________________________________________________________________________
243 {
244  ExceptionForHistogramsConst("GetH3Nzbins");
245  return 0;
246 }
247 
248 //_____________________________________________________________________________
250 {
251  ExceptionForHistogramsConst("GetH3Zmin");
252  return 0;
253 }
254 
255 //_____________________________________________________________________________
257 {
258  ExceptionForHistogramsConst("GetH3Zmax");
259  return 0;
260 }
261 
262 //_____________________________________________________________________________
264 {
265  ExceptionForHistogramsConst("GetH3ZWidth");
266  return 0;
267 }
268 
269 //_____________________________________________________________________________
271 {
272  ExceptionForHistograms("SetH3Title");
273  return false;
274 }
275 
276 //_____________________________________________________________________________
278 {
279  ExceptionForHistograms("SetH3XAxisTitle");
280  return false;
281 }
282 
283 //_____________________________________________________________________________
285 {
286  ExceptionForHistograms("SetH3YAxisTitle");
287  return false;
288 }
289 
290 //_____________________________________________________________________________
292 {
293  ExceptionForHistograms("SetH3ZAxisTitle");
294  return false;
295 }
296 
297 //_____________________________________________________________________________
299 {
300  ExceptionForHistogramsConst("GetH3Title");
301  return "";
302 }
303 
304 //_____________________________________________________________________________
306 {
307  ExceptionForHistogramsConst("GetH3XAxisTitle");
308  return "";
309 }
310 
311 //_____________________________________________________________________________
313 {
314  ExceptionForHistogramsConst("GetH3YAxisTitle");
315  return "";
316 }
317 
318 //_____________________________________________________________________________
320 {
321  ExceptionForHistogramsConst("GetH3ZAxisTitle");
322  return "";
323 }
324 
325 //_____________________________________________________________________________
327 {
328  ExceptionForHistograms("WriteOnAscii");
329  return false;
330 }
331 
virtual G4bool SetH3(G4int id, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4int nzbins, G4double zmin, G4double zmax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none", const G4String &xbinScheme="linear", const G4String &ybinScheme="linear", const G4String &zbinScheme="linear")
virtual G4bool SetH3YAxisTitle(G4int id, const G4String &title)
virtual G4String GetH3YAxisTitle(G4int id) const
virtual G4double GetH3Ymax(G4int id) const
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
void ExceptionForHistogramsConst(const G4String &functionName) const
virtual G4bool FillH3(G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0)
virtual G4bool SetH3ZAxisTitle(G4int id, const G4String &title)
void ExceptionForHistograms(const G4String &functionName)
virtual G4int GetH3Nxbins(G4int id) const
virtual G4String GetH3XAxisTitle(G4int id) const
int G4int
Definition: G4Types.hh:78
Definition of the ExG4HbookH3DummyManager class.
virtual G4int CreateH3(const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4int nzbins, G4double zmin, G4double zmax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none", const G4String &xbinScheme="linear", const G4String &ybinScheme="linear", const G4String &zbinScheme="linear")
virtual G4double GetH3Zmin(G4int id) const
virtual G4String GetH3Title(G4int id) const
virtual G4double GetH3YWidth(G4int id) const
virtual G4int GetH3Nybins(G4int id) const
bool G4bool
Definition: G4Types.hh:79
virtual G4bool SetH3Title(G4int id, const G4String &title)
virtual G4double GetH3XWidth(G4int id) const
virtual G4double GetH3ZWidth(G4int id) const
virtual G4bool ScaleH3(G4int id, G4double factor)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
virtual G4int GetH3Nzbins(G4int id) const
virtual G4double GetH3Xmax(G4int id) const
virtual G4double GetH3Zmax(G4int id) const
ExG4HbookH3DummyManager(const G4AnalysisManagerState &state)
virtual G4bool SetH3XAxisTitle(G4int id, const G4String &title)
virtual G4String GetH3ZAxisTitle(G4int id) const
double G4double
Definition: G4Types.hh:76
virtual G4int GetH3Id(const G4String &name, G4bool warn=true) const
virtual G4double GetH3Xmin(G4int id) const
const G4AnalysisManagerState & fState
virtual G4bool WriteOnAscii(std::ofstream &output)
virtual G4double GetH3Ymin(G4int id) const