Geant4  10.01.p02
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(state),
40  fWarn(true)
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  ExceptionForProfilesConst(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  << "Profiles 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  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 {
100  ExceptionForProfiles("CreateP2");
101  return 0;
102 }
103 
104 //_____________________________________________________________________________
106  const G4String& /*title*/,
107  const std::vector<G4double>& /*xedges*/,
108  const std::vector<G4double>& /*yedges*/,
109  G4double /*zmin*/, G4double /*zmax*/,
110  const G4String& /*xunitName*/,
111  const G4String& /*yunitName*/,
112  const G4String& /*zunitName*/,
113  const G4String& /*xfcnName*/,
114  const G4String& /*yfcnName*/,
115  const G4String& /*zfcnName*/)
116 
117 {
118  ExceptionForProfiles("CreateP2");
119  return 0;
120 }
121 
122 //_____________________________________________________________________________
124  G4int /*nxbins*/,
125  G4double /*xmin*/, G4double /*xmax*/,
126  G4int /*nybins*/,
127  G4double /*ymin*/, G4double /*ymax*/,
128  G4double /*zmin*/, G4double /*zmax*/,
129  const G4String& /*xunitName*/,
130  const G4String& /*yunitName*/,
131  const G4String& /*zunitName*/,
132  const G4String& /*xfcnName*/,
133  const G4String& /*yfcnName*/,
134  const G4String& /*zfcnName*/,
135  const G4String& /*xbinScheme*/,
136  const G4String& /*ybinScheme*/)
137 {
138  ExceptionForProfiles("SetP2");
139  return false;
140 }
141 
142 //_____________________________________________________________________________
144  const std::vector<G4double>& /*xedges*/,
145  const std::vector<G4double>& /*yedges*/,
146  G4double /*zmin*/, G4double /*zmax*/,
147  const G4String& /*xunitName*/,
148  const G4String& /*yunitName*/,
149  const G4String& /*zunitName*/,
150  const G4String& /*xfcnName*/,
151  const G4String& /*yfcnName*/,
152  const G4String& /*zfcnName*/)
153 {
154  ExceptionForProfiles("SetP2");
155  return false;
156 }
157 
158 //_____________________________________________________________________________
160 {
161  ExceptionForProfiles("ScaleP2");
162  return false;
163 }
164 
165 //_____________________________________________________________________________
167  G4double /*xvalue*/, G4double /*yvalue*/,
168  G4double /*zvalue*/,
169  G4double /*weight*/)
170 {
171  ExceptionForProfiles("FillP2");
172  return false;
173 }
174 
175 //_____________________________________________________________________________
176 G4int ExG4HbookP2DummyManager::GetP2Id(const G4String& /*name*/, G4bool /*warn*/) const
177 {
178  ExceptionForProfilesConst("GetP2Id");
179  return 0;
180 }
181 
182 //_____________________________________________________________________________
184 {
185  ExceptionForProfilesConst("GetP2Nxbins");
186  return 0;
187 }
188 
189 //_____________________________________________________________________________
191 {
192  ExceptionForProfilesConst("GetP2Xmin");
193  return 0;
194 }
195 
196 //_____________________________________________________________________________
198 {
199  ExceptionForProfilesConst("GetP2Xmax");
200  return 0;
201 }
202 
203 //_____________________________________________________________________________
205 {
206  ExceptionForProfilesConst("GetP2XWidth");
207  return 0;
208 }
209 
210 //_____________________________________________________________________________
212 {
213  ExceptionForProfilesConst("GetP2Nybins");
214  return 0;
215 }
216 
217 //_____________________________________________________________________________
219 {
221  return 0;
222 }
223 
224 //_____________________________________________________________________________
226 {
227  ExceptionForProfilesConst("GetP2Ymax");
228  return 0;
229 }
230 
231 //_____________________________________________________________________________
233 {
234  ExceptionForProfilesConst("GetP2YWidth");
235  return 0;
236 }
237 
238 //_____________________________________________________________________________
240 {
241  ExceptionForProfilesConst("GetP2Zmin");
242  return 0;
243 }
244 
245 //_____________________________________________________________________________
247 {
248  ExceptionForProfilesConst("GetP2Zmax");
249  return 0;
250 }
251 
252 //_____________________________________________________________________________
254 {
255  ExceptionForProfiles("SetP2Title");
256  return false;
257 }
258 
259 //_____________________________________________________________________________
261 {
262  ExceptionForProfiles("SetP2XAxisTitle");
263  return false;
264 }
265 
266 //_____________________________________________________________________________
268 {
269  ExceptionForProfiles("SetP2YAxisTitle");
270  return false;
271 }
272 
273 //_____________________________________________________________________________
275 {
276  ExceptionForProfiles("SetP2ZAxisTitle");
277  return false;
278 }
279 
280 //_____________________________________________________________________________
282 {
283  ExceptionForProfilesConst("GetP2Title");
284  return "";
285 }
286 
287 //_____________________________________________________________________________
289 {
290  ExceptionForProfilesConst("GetP2XAxisTitle");
291  return "";
292 }
293 
294 //_____________________________________________________________________________
296 {
297  ExceptionForProfilesConst("GetP2YAxisTitle");
298  return "";
299 }
300 
301 //_____________________________________________________________________________
303 {
304  ExceptionForProfilesConst("GetP2ZAxisTitle");
305  return "";
306 }
307 
308 //_____________________________________________________________________________
310 {
311  ExceptionForProfiles("WriteOnAscii");
312  return false;
313 }
314 
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
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.
const G4AnalysisManagerState & fState
virtual G4double GetP2Ymin(G4int id) const