Geant4  10.02
ExG4HbookP2DummyManager.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  : G4VP2Manager(),
40  G4THnManager<G4int>(state, "H3"),
41  fWarn(true)
42 {
43 }
44 
45 //_____________________________________________________________________________
47 {
48 }
49 
50 //
51 // private methods
52 //
53 
54 //_____________________________________________________________________________
56  const G4String& functionName)
57 {
58  if ( ! fWarn ) return;
59 
60  ExceptionForProfilesConst(functionName);
61  fWarn = false;
62 }
63 
64 //_____________________________________________________________________________
66  const G4String& functionName) const
67 {
68  G4String inFunction = "G4";
69  inFunction += fState.GetType();
70  inFunction += "AnalysisManager::";
71  inFunction += functionName;
72 
73  G4ExceptionDescription description;
74  description << " "
75  << "Profiles are not supported." ;
76 
77  G4Exception(inFunction, "Analysis_W011", JustWarning, description);
78 }
79 
80 //
81 // protected methods
82 //
83 
84 //_____________________________________________________________________________
86  const G4String& /*title*/,
87  G4int /*nxbins*/,
88  G4double /*xmin*/, G4double /*xmax*/,
89  G4int /*nybins*/,
90  G4double /*ymin*/, G4double /*ymax*/,
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 {
101  ExceptionForProfiles("CreateP2");
102  return 0;
103 }
104 
105 //_____________________________________________________________________________
107  const G4String& /*title*/,
108  const std::vector<G4double>& /*xedges*/,
109  const std::vector<G4double>& /*yedges*/,
110  G4double /*zmin*/, G4double /*zmax*/,
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  ExceptionForProfiles("CreateP2");
120  return 0;
121 }
122 
123 //_____________________________________________________________________________
125  G4int /*nxbins*/,
126  G4double /*xmin*/, G4double /*xmax*/,
127  G4int /*nybins*/,
128  G4double /*ymin*/, G4double /*ymax*/,
129  G4double /*zmin*/, G4double /*zmax*/,
130  const G4String& /*xunitName*/,
131  const G4String& /*yunitName*/,
132  const G4String& /*zunitName*/,
133  const G4String& /*xfcnName*/,
134  const G4String& /*yfcnName*/,
135  const G4String& /*zfcnName*/,
136  const G4String& /*xbinScheme*/,
137  const G4String& /*ybinScheme*/)
138 {
139  ExceptionForProfiles("SetP2");
140  return false;
141 }
142 
143 //_____________________________________________________________________________
145  const std::vector<G4double>& /*xedges*/,
146  const std::vector<G4double>& /*yedges*/,
147  G4double /*zmin*/, G4double /*zmax*/,
148  const G4String& /*xunitName*/,
149  const G4String& /*yunitName*/,
150  const G4String& /*zunitName*/,
151  const G4String& /*xfcnName*/,
152  const G4String& /*yfcnName*/,
153  const G4String& /*zfcnName*/)
154 {
155  ExceptionForProfiles("SetP2");
156  return false;
157 }
158 
159 //_____________________________________________________________________________
161 {
162  ExceptionForProfiles("ScaleP2");
163  return false;
164 }
165 
166 //_____________________________________________________________________________
168  G4double /*xvalue*/, G4double /*yvalue*/,
169  G4double /*zvalue*/,
170  G4double /*weight*/)
171 {
172  ExceptionForProfiles("FillP2");
173  return false;
174 }
175 
176 //_____________________________________________________________________________
177 G4int ExG4HbookP2DummyManager::GetP2Id(const G4String& /*name*/, G4bool /*warn*/) const
178 {
179  ExceptionForProfilesConst("GetP2Id");
180  return 0;
181 }
182 
183 //_____________________________________________________________________________
185 {
186  ExceptionForProfilesConst("GetP2Nxbins");
187  return 0;
188 }
189 
190 //_____________________________________________________________________________
192 {
193  ExceptionForProfilesConst("GetP2Xmin");
194  return 0;
195 }
196 
197 //_____________________________________________________________________________
199 {
200  ExceptionForProfilesConst("GetP2Xmax");
201  return 0;
202 }
203 
204 //_____________________________________________________________________________
206 {
207  ExceptionForProfilesConst("GetP2XWidth");
208  return 0;
209 }
210 
211 //_____________________________________________________________________________
213 {
214  ExceptionForProfilesConst("GetP2Nybins");
215  return 0;
216 }
217 
218 //_____________________________________________________________________________
220 {
222  return 0;
223 }
224 
225 //_____________________________________________________________________________
227 {
228  ExceptionForProfilesConst("GetP2Ymax");
229  return 0;
230 }
231 
232 //_____________________________________________________________________________
234 {
235  ExceptionForProfilesConst("GetP2YWidth");
236  return 0;
237 }
238 
239 //_____________________________________________________________________________
241 {
242  ExceptionForProfilesConst("GetP2Zmin");
243  return 0;
244 }
245 
246 //_____________________________________________________________________________
248 {
249  ExceptionForProfilesConst("GetP2Zmax");
250  return 0;
251 }
252 
253 //_____________________________________________________________________________
255 {
256  ExceptionForProfiles("SetP2Title");
257  return false;
258 }
259 
260 //_____________________________________________________________________________
262 {
263  ExceptionForProfiles("SetP2XAxisTitle");
264  return false;
265 }
266 
267 //_____________________________________________________________________________
269 {
270  ExceptionForProfiles("SetP2YAxisTitle");
271  return false;
272 }
273 
274 //_____________________________________________________________________________
276 {
277  ExceptionForProfiles("SetP2ZAxisTitle");
278  return false;
279 }
280 
281 //_____________________________________________________________________________
283 {
284  ExceptionForProfilesConst("GetP2Title");
285  return "";
286 }
287 
288 //_____________________________________________________________________________
290 {
291  ExceptionForProfilesConst("GetP2XAxisTitle");
292  return "";
293 }
294 
295 //_____________________________________________________________________________
297 {
298  ExceptionForProfilesConst("GetP2YAxisTitle");
299  return "";
300 }
301 
302 //_____________________________________________________________________________
304 {
305  ExceptionForProfilesConst("GetP2ZAxisTitle");
306  return "";
307 }
308 
309 //_____________________________________________________________________________
311 {
312  ExceptionForProfiles("WriteOnAscii");
313  return false;
314 }
315 
virtual G4String GetP2ZAxisTitle(G4int id) const
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
virtual G4int CreateP2(const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4double zmin=0, G4double zmax=0, 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")
virtual G4String GetP2Title(G4int id) const
virtual G4double GetP2Xmax(G4int id) const
virtual G4bool SetP2ZAxisTitle(G4int id, const G4String &title)
virtual G4String GetP2XAxisTitle(G4int id) const
virtual G4String GetP2YAxisTitle(G4int id) const
void ExceptionForProfiles(const G4String &functionName)
int G4int
Definition: G4Types.hh:78
virtual G4bool SetP2XAxisTitle(G4int id, const G4String &title)
void ExceptionForProfilesConst(const G4String &functionName) const
const G4AnalysisManagerState & fState
Definition: G4THnManager.hh:80
virtual G4double GetP2Ymax(G4int id) const
virtual G4int GetP2Nxbins(G4int id) const
virtual G4bool ScaleP2(G4int id, G4double factor)
bool G4bool
Definition: G4Types.hh:79
ExG4HbookP2DummyManager(const G4AnalysisManagerState &state)
virtual G4double GetP2YWidth(G4int id) const
virtual G4double GetP2Xmin(G4int id) const
virtual G4double GetP2XWidth(G4int id) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
virtual G4bool SetP2Title(G4int id, const G4String &title)
virtual G4bool WriteOnAscii(std::ofstream &output)
virtual G4int GetP2Nybins(G4int id) const
virtual G4bool SetP2(G4int id, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4double zmin=0, G4double zmax=0, 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")
virtual G4int GetP2Id(const G4String &name, G4bool warn=true) const
virtual G4double GetP2Zmax(G4int id) const
virtual G4bool SetP2YAxisTitle(G4int id, const G4String &title)
double G4double
Definition: G4Types.hh:76
virtual G4bool FillP2(G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0)
virtual G4double GetP2Zmin(G4int id) const
Definition of the ExG4HbookP2DummyManager class.
virtual G4double GetP2Ymin(G4int id) const