Geant4  10.00.p01
G4H2DummyManager.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: G4H2DummyManager.cc 70604 2013-06-03 11:27:06Z ihrivnac $
27 
28 // Author: Ivana Hrivnacova, 18/06/2013 (ivana@ipno.in2p3.fr)
29 
30 #include "G4H2DummyManager.hh"
31 
32 //_____________________________________________________________________________
34  : G4VH2Manager(state)
35 {
36 }
37 
38 //_____________________________________________________________________________
40 {
41 }
42 
43 //
44 // protected methods
45 //
46 
47 //_____________________________________________________________________________
49  const G4String& /*title*/,
50  G4int /*nxbins*/,
51  G4double /*xmin*/, G4double /*xmax*/,
52  G4int /*nybins*/,
53  G4double /*ymin*/, G4double /*ymax*/,
54  const G4String& /*xunitName*/,
55  const G4String& /*yunitName*/,
56  const G4String& /*xfcnName*/,
57  const G4String& /*yfcnName*/,
58  const G4String& /*xbinScheme*/,
59  const G4String& /*ybinScheme*/)
60 {
61  ExceptionForHistograms("CreateH2");
62  return 0;
63 }
64 
65 //_____________________________________________________________________________
67  const G4String& /*title*/,
68  const std::vector<G4double>& /*xedges*/,
69  const std::vector<G4double>& /*yedges*/,
70  const G4String& /*xunitName*/,
71  const G4String& /*yunitName*/,
72  const G4String& /*xfcnName*/,
73  const G4String& /*yfcnName*/)
74 {
75  ExceptionForHistograms("CreateH2");
76  return 0;
77 }
78 
79 //_____________________________________________________________________________
81  G4int /*nxbins*/,
82  G4double /*xmin*/, G4double /*xmax*/,
83  G4int /*nybins*/,
84  G4double /*ymin*/, G4double /*ymax*/,
85  const G4String& /*xunitName*/,
86  const G4String& /*yunitName*/,
87  const G4String& /*xfcnName*/,
88  const G4String& /*yfcnName*/,
89  const G4String& /*xbinScheme*/,
90  const G4String& /*ybinScheme*/)
91 {
92  ExceptionForHistograms("SetH2");
93  return false;
94 }
95 
96 //_____________________________________________________________________________
98  const std::vector<G4double>& /*xedges*/,
99  const std::vector<G4double>& /*yedges*/,
100  const G4String& /*xunitName*/,
101  const G4String& /*yunitName*/,
102  const G4String& /*xfcnName*/,
103  const G4String& /*yfcnName*/)
104 {
105  ExceptionForHistograms("SetH2");
106  return false;
107 }
108 
109 //_____________________________________________________________________________
111 {
112  ExceptionForHistograms("ScaleH2");
113  return false;
114 }
115 
116 //_____________________________________________________________________________
118  G4double /*xvalue*/, G4double /*yvalue*/,
119  G4double /*weight*/)
120 {
121  G4ExceptionDescription description;
122  description << " "
123  << "Histograms are not supported." ;
124  G4Exception("G4H2DummyManager::FillH2()",
125  "Analysis_W007", JustWarning, description);
126  return false;
127 }
128 
129 //_____________________________________________________________________________
131 {
132  ExceptionForHistograms("GetNofH2s");
133  return 0;
134 }
135 
136 //_____________________________________________________________________________
137 G4int G4H2DummyManager::GetH2Id(const G4String& /*name*/, G4bool /*warn*/) const
138 {
139  ExceptionForHistograms("GetH2Id");
140  return 0;
141 }
142 
143 
144 //_____________________________________________________________________________
146 {
147  ExceptionForHistograms("GetH2NXbins");
148  return 0;
149 }
150 
151 //_____________________________________________________________________________
153 {
154  ExceptionForHistograms("GetH2Xmin");
155  return 0;
156 }
157 
158 //_____________________________________________________________________________
160 {
161  ExceptionForHistograms("GetH2Xmin");
162  return 0;
163 }
164 
165 //_____________________________________________________________________________
167 {
168  ExceptionForHistograms("GetH2XWidth");
169  return 0;
170 }
171 
172 //_____________________________________________________________________________
174 {
175  ExceptionForHistograms("GetH2NYbins");
176  return 0;
177 }
178 
179 //_____________________________________________________________________________
181 {
182  ExceptionForHistograms("GetH2Ymin");
183  return 0;
184 }
185 
186 //_____________________________________________________________________________
188 {
189  ExceptionForHistograms("GetH2Ymax");
190  return 0;
191 }
192 
193 //_____________________________________________________________________________
195 {
196  ExceptionForHistograms("GetH2YWidth");
197  return 0;
198 }
199 
200 //_____________________________________________________________________________
202  const G4String& /*title*/)
203 {
204  ExceptionForHistograms("SetH2Title");
205  return false;
206 }
207 
208 //_____________________________________________________________________________
210  const G4String& /*title*/)
211 {
212  ExceptionForHistograms("SetH2XAxisTitle");
213  return false;
214 }
215 
216 //_____________________________________________________________________________
218  const G4String& /*title*/)
219 {
220  ExceptionForHistograms("SetH2YAxisTitle");
221  return false;
222 }
223 
224 //_____________________________________________________________________________
226  const G4String& /*title*/)
227 {
228  ExceptionForHistograms("SetH2ZAxisTitle");
229  return false;
230 }
231 
232 //_____________________________________________________________________________
234 {
235  ExceptionForHistograms("GetH2Title");
236  return "";
237 }
238 
239 //_____________________________________________________________________________
241 {
242  ExceptionForHistograms("GetH2XAxisTitle");
243  return "";
244 }
245 
246 //_____________________________________________________________________________
248 {
249  ExceptionForHistograms("GetH2YAxisTitle");
250  return "";
251 }
252 
253 //_____________________________________________________________________________
255 {
256  ExceptionForHistograms("GetH2ZAxisTitle");
257  return "";
258 }
259 
260 //_____________________________________________________________________________
261 G4bool G4H2DummyManager::WriteOnAscii(std::ofstream& /*output*/)
262 {
263  ExceptionForHistograms("WriteOnAscii");
264  return false;
265 }
virtual G4double GetH2XWidth(G4int id) const
virtual G4int GetH2Id(const G4String &name, G4bool warn=true) const
void ExceptionForHistograms(const G4String &functionName) const
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
virtual G4bool SetH2Title(G4int id, const G4String &title)
virtual G4double GetH2Xmin(G4int id) const
virtual G4String GetH2XAxisTitle(G4int id) const
G4H2DummyManager(const G4AnalysisManagerState &state)
int G4int
Definition: G4Types.hh:78
virtual G4double GetH2YWidth(G4int id) const
virtual G4double GetH2Ymax(G4int id) const
bool G4bool
Definition: G4Types.hh:79
virtual G4bool ScaleH2(G4int id, G4double factor)
virtual G4int GetH2Nybins(G4int id) const
virtual G4String GetH2Title(G4int id) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
virtual ~G4H2DummyManager()
virtual G4bool SetH2XAxisTitle(G4int id, const G4String &title)
virtual G4String GetH2ZAxisTitle(G4int id) const
virtual G4int CreateH2(const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinScheme="linear", const G4String &ybinScheme="linear")
virtual G4double GetH2Xmax(G4int id) const
virtual G4String GetH2YAxisTitle(G4int id) const
virtual G4bool WriteOnAscii(std::ofstream &output)
virtual G4double GetH2Ymin(G4int id) const
virtual G4bool SetH2ZAxisTitle(G4int id, const G4String &title)
double G4double
Definition: G4Types.hh:76
virtual G4bool FillH2(G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)
virtual G4bool SetH2YAxisTitle(G4int id, const G4String &title)
virtual G4int GetNofH2s() const
virtual G4int GetH2Nxbins(G4int id) const
virtual G4bool SetH2(G4int id, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinScheme="linear", const G4String &ybinScheme="linear")