Geant4  10.02
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(),
40  G4THnManager<G4int>(state, "H3")
41 {
42 }
43 
44 //_____________________________________________________________________________
46 {
47 }
48 
49 //
50 // private methods
51 //
52 
53 //_____________________________________________________________________________
55  const G4String& functionName)
56 {
57  if ( ! fWarn ) return;
58 
59  ExceptionForHistogramsConst(functionName);
60  fWarn = false;
61 }
62 
63 //_____________________________________________________________________________
65  const G4String& functionName) const
66 {
67  G4String inFunction = "G4";
68  inFunction += fState.GetType();
69  inFunction += "AnalysisManager::";
70  inFunction += functionName;
71 
72  G4ExceptionDescription description;
73  description << " "
74  << "Histograms are not supported." ;
75 
76  G4Exception(inFunction, "Analysis_W011", JustWarning, description);
77 }
78 
79 //
80 // protected methods
81 //
82 
83 //_____________________________________________________________________________
85  const G4String& /*title*/,
86  G4int /*nxbins*/,
87  G4double /*xmin*/, G4double /*xmax*/,
88  G4int /*nybins*/,
89  G4double /*ymin*/, G4double /*ymax*/,
90  G4int /*nzbins*/,
91  G4double /*zmin*/, G4double /*zmax*/,
92  const G4String& /*xunitName*/,
93  const G4String& /*yunitName*/,
94  const G4String& /*zunitName*/,
95  const G4String& /*xfcnName*/,
96  const G4String& /*yfcnName*/,
97  const G4String& /*zfcnName*/,
98  const G4String& /*xbinScheme*/,
99  const G4String& /*ybinScheme*/,
100  const G4String& /*zbinScheme*/)
101 {
102  ExceptionForHistograms("CreateH3");
103  return 0;
104 }
105 
106 //_____________________________________________________________________________
108  const G4String& /*title*/,
109  const std::vector<G4double>& /*xedges*/,
110  const std::vector<G4double>& /*yedges*/,
111  const std::vector<G4double>& /*zedges*/,
112  const G4String& /*xunitName*/,
113  const G4String& /*yunitName*/,
114  const G4String& /*zunitName*/,
115  const G4String& /*xfcnName*/,
116  const G4String& /*yfcnName*/,
117  const G4String& /*zfcnName*/)
118 
119 {
120  ExceptionForHistograms("CreateH3");
121  return 0;
122 }
123 
124 //_____________________________________________________________________________
126  G4int /*nxbins*/,
127  G4double /*xmin*/, G4double /*xmax*/,
128  G4int /*nybins*/,
129  G4double /*ymin*/, G4double /*ymax*/,
130  G4int /*nzbins*/,
131  G4double /*zmin*/, G4double /*zmax*/,
132  const G4String& /*xunitName*/,
133  const G4String& /*yunitName*/,
134  const G4String& /*zunitName*/,
135  const G4String& /*xfcnName*/,
136  const G4String& /*yfcnName*/,
137  const G4String& /*zfcnName*/,
138  const G4String& /*xbinScheme*/,
139  const G4String& /*ybinScheme*/,
140  const G4String& /*zbinScheme*/)
141 {
142  ExceptionForHistograms("SetH3");
143  return false;
144 }
145 
146 //_____________________________________________________________________________
148  const std::vector<G4double>& /*xedges*/,
149  const std::vector<G4double>& /*yedges*/,
150  const std::vector<G4double>& /*zedges*/,
151  const G4String& /*xunitName*/,
152  const G4String& /*yunitName*/,
153  const G4String& /*zunitName*/,
154  const G4String& /*xfcnName*/,
155  const G4String& /*yfcnName*/,
156  const G4String& /*zfcnName*/)
157 {
158  ExceptionForHistograms("SetH3");
159  return false;
160 }
161 
162 //_____________________________________________________________________________
164 {
165  ExceptionForHistograms("ScaleH3");
166  return false;
167 }
168 
169 //_____________________________________________________________________________
171  G4double /*xvalue*/, G4double /*yvalue*/,
172  G4double /*zvalue*/,
173  G4double /*weight*/)
174 {
175  ExceptionForHistograms("FillH3");
176  return false;
177 }
178 
179 //_____________________________________________________________________________
180 G4int ExG4HbookH3DummyManager::GetH3Id(const G4String& /*name*/, G4bool /*warn*/) const
181 {
182  ExceptionForHistogramsConst("GetH3Id");
183  return 0;
184 }
185 
186 //_____________________________________________________________________________
188 {
189  ExceptionForHistogramsConst("GetH3Nxbins");
190  return 0;
191 }
192 
193 //_____________________________________________________________________________
195 {
196  ExceptionForHistogramsConst("GetH3Xmin");
197  return 0;
198 }
199 
200 //_____________________________________________________________________________
202 {
203  ExceptionForHistogramsConst("GetH3Xmax");
204  return 0;
205 }
206 
207 //_____________________________________________________________________________
209 {
210  ExceptionForHistogramsConst("GetH3XWidth");
211  return 0;
212 }
213 
214 //_____________________________________________________________________________
216 {
217  ExceptionForHistogramsConst("GetH3Nybins");
218  return 0;
219 }
220 
221 //_____________________________________________________________________________
223 {
225  return 0;
226 }
227 
228 //_____________________________________________________________________________
230 {
231  ExceptionForHistogramsConst("GetH3Ymax");
232  return 0;
233 }
234 
235 //_____________________________________________________________________________
237 {
238  ExceptionForHistogramsConst("GetH3YWidth");
239  return 0;
240 }
241 
242 //_____________________________________________________________________________
244 {
245  ExceptionForHistogramsConst("GetH3Nzbins");
246  return 0;
247 }
248 
249 //_____________________________________________________________________________
251 {
252  ExceptionForHistogramsConst("GetH3Zmin");
253  return 0;
254 }
255 
256 //_____________________________________________________________________________
258 {
259  ExceptionForHistogramsConst("GetH3Zmax");
260  return 0;
261 }
262 
263 //_____________________________________________________________________________
265 {
266  ExceptionForHistogramsConst("GetH3ZWidth");
267  return 0;
268 }
269 
270 //_____________________________________________________________________________
272 {
273  ExceptionForHistograms("SetH3Title");
274  return false;
275 }
276 
277 //_____________________________________________________________________________
279 {
280  ExceptionForHistograms("SetH3XAxisTitle");
281  return false;
282 }
283 
284 //_____________________________________________________________________________
286 {
287  ExceptionForHistograms("SetH3YAxisTitle");
288  return false;
289 }
290 
291 //_____________________________________________________________________________
293 {
294  ExceptionForHistograms("SetH3ZAxisTitle");
295  return false;
296 }
297 
298 //_____________________________________________________________________________
300 {
301  ExceptionForHistogramsConst("GetH3Title");
302  return "";
303 }
304 
305 //_____________________________________________________________________________
307 {
308  ExceptionForHistogramsConst("GetH3XAxisTitle");
309  return "";
310 }
311 
312 //_____________________________________________________________________________
314 {
315  ExceptionForHistogramsConst("GetH3YAxisTitle");
316  return "";
317 }
318 
319 //_____________________________________________________________________________
321 {
322  ExceptionForHistogramsConst("GetH3ZAxisTitle");
323  return "";
324 }
325 
326 //_____________________________________________________________________________
328 {
329  ExceptionForHistograms("WriteOnAscii");
330  return false;
331 }
332 
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
const G4AnalysisManagerState & fState
Definition: G4THnManager.hh:80
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
virtual G4bool WriteOnAscii(std::ofstream &output)
virtual G4double GetH3Ymin(G4int id) const