Geant4  10.02.p03
ExG4HbookH3DummyManager Class Reference

#include <ExG4HbookH3DummyManager.hh>

Inheritance diagram for ExG4HbookH3DummyManager:
Collaboration diagram for ExG4HbookH3DummyManager:

Public Member Functions

 ExG4HbookH3DummyManager (const G4AnalysisManagerState &state)
 
virtual ~ExG4HbookH3DummyManager ()
 
- Public Member Functions inherited from G4VH3Manager
 G4VH3Manager ()
 
virtual ~G4VH3Manager ()
 
 G4VH3Manager (const G4VH3Manager &rhs)=delete
 
G4VH3Manageroperator= (const G4VH3Manager &rhs)=delete
 
- Public Member Functions inherited from G4THnManager< G4int >
 G4THnManager (const G4AnalysisManagerState &state, const G4String &hnType)
 
virtual ~G4THnManager ()
 
G4bool Reset ()
 
G4bool IsEmpty () const
 

Protected Member Functions

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 G4int CreateH3 (const G4String &name, const G4String &title, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, const std::vector< G4double > &zedges, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none")
 
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 SetH3 (G4int id, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, const std::vector< G4double > &zedges, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none")
 
virtual G4bool ScaleH3 (G4int id, G4double factor)
 
virtual G4bool FillH3 (G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0)
 
virtual G4int GetH3Id (const G4String &name, G4bool warn=true) const
 
virtual G4int GetH3Nxbins (G4int id) const
 
virtual G4double GetH3Xmin (G4int id) const
 
virtual G4double GetH3Xmax (G4int id) const
 
virtual G4double GetH3XWidth (G4int id) const
 
virtual G4int GetH3Nybins (G4int id) const
 
virtual G4double GetH3Ymin (G4int id) const
 
virtual G4double GetH3Ymax (G4int id) const
 
virtual G4double GetH3YWidth (G4int id) const
 
virtual G4int GetH3Nzbins (G4int id) const
 
virtual G4double GetH3Zmin (G4int id) const
 
virtual G4double GetH3Zmax (G4int id) const
 
virtual G4double GetH3ZWidth (G4int id) const
 
virtual G4bool SetH3Title (G4int id, const G4String &title)
 
virtual G4bool SetH3XAxisTitle (G4int id, const G4String &title)
 
virtual G4bool SetH3YAxisTitle (G4int id, const G4String &title)
 
virtual G4bool SetH3ZAxisTitle (G4int id, const G4String &title)
 
virtual G4String GetH3Title (G4int id) const
 
virtual G4String GetH3XAxisTitle (G4int id) const
 
virtual G4String GetH3YAxisTitle (G4int id) const
 
virtual G4String GetH3ZAxisTitle (G4int id) const
 
virtual G4bool WriteOnAscii (std::ofstream &output)
 
virtual std::shared_ptr< G4HnManagerGetHnManager ()
 
- Protected Member Functions inherited from G4THnManager< G4int >
void AddTVector (const std::vector< G4int * > &tVector)
 
std::vector< G4int *>::iterator BeginT ()
 
std::vector< G4int *>::iterator EndT ()
 
std::vector< G4int *>::const_iterator BeginConstT () const
 
std::vector< G4int *>::const_iterator EndConstT () const
 
G4intGetTInFunction (G4int id, G4String functionName, G4bool warn=true, G4bool onlyIfActive=true) const
 
G4int RegisterT (G4int *t, const G4String &name)
 
G4int GetTId (const G4String &name, G4bool warn=true) const
 

Private Member Functions

void ExceptionForHistograms (const G4String &functionName)
 
void ExceptionForHistogramsConst (const G4String &functionName) const
 

Private Attributes

G4bool fWarn
 

Additional Inherited Members

- Protected Attributes inherited from G4THnManager< G4int >
const G4AnalysisManagerStatefState
 
std::vector< G4int *> fTVector
 
std::map< G4String, G4intfNameIdMap
 
std::shared_ptr< G4HnManagerfHnManager
 

Detailed Description

Manager class for H3 with dummy implementation.

It will just issue warnings.

Definition at line 54 of file ExG4HbookH3DummyManager.hh.

Constructor & Destructor Documentation

◆ ExG4HbookH3DummyManager()

ExG4HbookH3DummyManager::ExG4HbookH3DummyManager ( const G4AnalysisManagerState state)

Definition at line 37 of file ExG4HbookH3DummyManager.cc.

39  : G4VH3Manager(),
40  G4THnManager<G4int>(state, "H3")
41 {
42 }

◆ ~ExG4HbookH3DummyManager()

ExG4HbookH3DummyManager::~ExG4HbookH3DummyManager ( )
virtual

Definition at line 45 of file ExG4HbookH3DummyManager.cc.

46 {
47 }

Member Function Documentation

◆ CreateH3() [1/2]

G4int ExG4HbookH3DummyManager::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" 
)
protectedvirtual

Implements G4VH3Manager.

Definition at line 84 of file ExG4HbookH3DummyManager.cc.

101 {
102  ExceptionForHistograms("CreateH3");
103  return 0;
104 }
void ExceptionForHistograms(const G4String &functionName)
Here is the call graph for this function:

◆ CreateH3() [2/2]

G4int ExG4HbookH3DummyManager::CreateH3 ( const G4String name,
const G4String title,
const std::vector< G4double > &  xedges,
const std::vector< G4double > &  yedges,
const std::vector< G4double > &  zedges,
const G4String xunitName = "none",
const G4String yunitName = "none",
const G4String zunitName = "none",
const G4String xfcnName = "none",
const G4String yfcnName = "none",
const G4String zfcnName = "none" 
)
protectedvirtual

Implements G4VH3Manager.

Definition at line 107 of file ExG4HbookH3DummyManager.cc.

119 {
120  ExceptionForHistograms("CreateH3");
121  return 0;
122 }
void ExceptionForHistograms(const G4String &functionName)
Here is the call graph for this function:

◆ ExceptionForHistograms()

void ExG4HbookH3DummyManager::ExceptionForHistograms ( const G4String functionName)
private

Definition at line 54 of file ExG4HbookH3DummyManager.cc.

56 {
57  if ( ! fWarn ) return;
58 
59  ExceptionForHistogramsConst(functionName);
60  fWarn = false;
61 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExceptionForHistogramsConst()

void ExG4HbookH3DummyManager::ExceptionForHistogramsConst ( const G4String functionName) const
private

Definition at line 64 of file ExG4HbookH3DummyManager.cc.

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 }
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
const G4AnalysisManagerState & fState
Definition: G4THnManager.hh:80
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillH3()

G4bool ExG4HbookH3DummyManager::FillH3 ( G4int  id,
G4double  xvalue,
G4double  yvalue,
G4double  zvalue,
G4double  weight = 1.0 
)
protectedvirtual

Implements G4VH3Manager.

Definition at line 170 of file ExG4HbookH3DummyManager.cc.

174 {
175  ExceptionForHistograms("FillH3");
176  return false;
177 }
void ExceptionForHistograms(const G4String &functionName)
Here is the call graph for this function:

◆ GetH3Id()

G4int ExG4HbookH3DummyManager::GetH3Id ( const G4String name,
G4bool  warn = true 
) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 180 of file ExG4HbookH3DummyManager.cc.

181 {
182  ExceptionForHistogramsConst("GetH3Id");
183  return 0;
184 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3Nxbins()

G4int ExG4HbookH3DummyManager::GetH3Nxbins ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 187 of file ExG4HbookH3DummyManager.cc.

188 {
189  ExceptionForHistogramsConst("GetH3Nxbins");
190  return 0;
191 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3Nybins()

G4int ExG4HbookH3DummyManager::GetH3Nybins ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 215 of file ExG4HbookH3DummyManager.cc.

216 {
217  ExceptionForHistogramsConst("GetH3Nybins");
218  return 0;
219 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3Nzbins()

G4int ExG4HbookH3DummyManager::GetH3Nzbins ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 243 of file ExG4HbookH3DummyManager.cc.

244 {
245  ExceptionForHistogramsConst("GetH3Nzbins");
246  return 0;
247 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3Title()

G4String ExG4HbookH3DummyManager::GetH3Title ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 299 of file ExG4HbookH3DummyManager.cc.

300 {
301  ExceptionForHistogramsConst("GetH3Title");
302  return "";
303 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3XAxisTitle()

G4String ExG4HbookH3DummyManager::GetH3XAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 306 of file ExG4HbookH3DummyManager.cc.

307 {
308  ExceptionForHistogramsConst("GetH3XAxisTitle");
309  return "";
310 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3Xmax()

G4double ExG4HbookH3DummyManager::GetH3Xmax ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 201 of file ExG4HbookH3DummyManager.cc.

202 {
203  ExceptionForHistogramsConst("GetH3Xmax");
204  return 0;
205 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3Xmin()

G4double ExG4HbookH3DummyManager::GetH3Xmin ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 194 of file ExG4HbookH3DummyManager.cc.

195 {
196  ExceptionForHistogramsConst("GetH3Xmin");
197  return 0;
198 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3XWidth()

G4double ExG4HbookH3DummyManager::GetH3XWidth ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 208 of file ExG4HbookH3DummyManager.cc.

209 {
210  ExceptionForHistogramsConst("GetH3XWidth");
211  return 0;
212 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3YAxisTitle()

G4String ExG4HbookH3DummyManager::GetH3YAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 313 of file ExG4HbookH3DummyManager.cc.

314 {
315  ExceptionForHistogramsConst("GetH3YAxisTitle");
316  return "";
317 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3Ymax()

G4double ExG4HbookH3DummyManager::GetH3Ymax ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 229 of file ExG4HbookH3DummyManager.cc.

230 {
231  ExceptionForHistogramsConst("GetH3Ymax");
232  return 0;
233 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3Ymin()

G4double ExG4HbookH3DummyManager::GetH3Ymin ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 222 of file ExG4HbookH3DummyManager.cc.

223 {
225  return 0;
226 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3YWidth()

G4double ExG4HbookH3DummyManager::GetH3YWidth ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 236 of file ExG4HbookH3DummyManager.cc.

237 {
238  ExceptionForHistogramsConst("GetH3YWidth");
239  return 0;
240 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3ZAxisTitle()

G4String ExG4HbookH3DummyManager::GetH3ZAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 320 of file ExG4HbookH3DummyManager.cc.

321 {
322  ExceptionForHistogramsConst("GetH3ZAxisTitle");
323  return "";
324 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3Zmax()

G4double ExG4HbookH3DummyManager::GetH3Zmax ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 257 of file ExG4HbookH3DummyManager.cc.

258 {
259  ExceptionForHistogramsConst("GetH3Zmax");
260  return 0;
261 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3Zmin()

G4double ExG4HbookH3DummyManager::GetH3Zmin ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 250 of file ExG4HbookH3DummyManager.cc.

251 {
252  ExceptionForHistogramsConst("GetH3Zmin");
253  return 0;
254 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetH3ZWidth()

G4double ExG4HbookH3DummyManager::GetH3ZWidth ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 264 of file ExG4HbookH3DummyManager.cc.

265 {
266  ExceptionForHistogramsConst("GetH3ZWidth");
267  return 0;
268 }
void ExceptionForHistogramsConst(const G4String &functionName) const
Here is the call graph for this function:

◆ GetHnManager()

std::shared_ptr< G4HnManager > ExG4HbookH3DummyManager::GetHnManager ( )
inlineprotectedvirtual

Implements G4VH3Manager.

Definition at line 175 of file ExG4HbookH3DummyManager.hh.

176 { return std::shared_ptr<G4HnManager>(fHnManager); }
std::shared_ptr< G4HnManager > fHnManager
Definition: G4THnManager.hh:83

◆ ScaleH3()

G4bool ExG4HbookH3DummyManager::ScaleH3 ( G4int  id,
G4double  factor 
)
protectedvirtual

Implements G4VH3Manager.

Definition at line 163 of file ExG4HbookH3DummyManager.cc.

164 {
165  ExceptionForHistograms("ScaleH3");
166  return false;
167 }
void ExceptionForHistograms(const G4String &functionName)
Here is the call graph for this function:

◆ SetH3() [1/2]

G4bool ExG4HbookH3DummyManager::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" 
)
protectedvirtual

Implements G4VH3Manager.

Definition at line 125 of file ExG4HbookH3DummyManager.cc.

141 {
142  ExceptionForHistograms("SetH3");
143  return false;
144 }
void ExceptionForHistograms(const G4String &functionName)
Here is the call graph for this function:

◆ SetH3() [2/2]

G4bool ExG4HbookH3DummyManager::SetH3 ( G4int  id,
const std::vector< G4double > &  xedges,
const std::vector< G4double > &  yedges,
const std::vector< G4double > &  zedges,
const G4String xunitName = "none",
const G4String yunitName = "none",
const G4String zunitName = "none",
const G4String xfcnName = "none",
const G4String yfcnName = "none",
const G4String zfcnName = "none" 
)
protectedvirtual

Implements G4VH3Manager.

Definition at line 147 of file ExG4HbookH3DummyManager.cc.

157 {
158  ExceptionForHistograms("SetH3");
159  return false;
160 }
void ExceptionForHistograms(const G4String &functionName)
Here is the call graph for this function:

◆ SetH3Title()

G4bool ExG4HbookH3DummyManager::SetH3Title ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VH3Manager.

Definition at line 271 of file ExG4HbookH3DummyManager.cc.

272 {
273  ExceptionForHistograms("SetH3Title");
274  return false;
275 }
void ExceptionForHistograms(const G4String &functionName)
Here is the call graph for this function:

◆ SetH3XAxisTitle()

G4bool ExG4HbookH3DummyManager::SetH3XAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VH3Manager.

Definition at line 278 of file ExG4HbookH3DummyManager.cc.

279 {
280  ExceptionForHistograms("SetH3XAxisTitle");
281  return false;
282 }
void ExceptionForHistograms(const G4String &functionName)
Here is the call graph for this function:

◆ SetH3YAxisTitle()

G4bool ExG4HbookH3DummyManager::SetH3YAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VH3Manager.

Definition at line 285 of file ExG4HbookH3DummyManager.cc.

286 {
287  ExceptionForHistograms("SetH3YAxisTitle");
288  return false;
289 }
void ExceptionForHistograms(const G4String &functionName)
Here is the call graph for this function:

◆ SetH3ZAxisTitle()

G4bool ExG4HbookH3DummyManager::SetH3ZAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VH3Manager.

Definition at line 292 of file ExG4HbookH3DummyManager.cc.

293 {
294  ExceptionForHistograms("SetH3ZAxisTitle");
295  return false;
296 }
void ExceptionForHistograms(const G4String &functionName)
Here is the call graph for this function:

◆ WriteOnAscii()

G4bool ExG4HbookH3DummyManager::WriteOnAscii ( std::ofstream &  output)
protectedvirtual

Implements G4VH3Manager.

Definition at line 327 of file ExG4HbookH3DummyManager.cc.

328 {
329  ExceptionForHistograms("WriteOnAscii");
330  return false;
331 }
void ExceptionForHistograms(const G4String &functionName)
Here is the call graph for this function:

Member Data Documentation

◆ fWarn

G4bool ExG4HbookH3DummyManager::fWarn
private

Definition at line 170 of file ExG4HbookH3DummyManager.hh.


The documentation for this class was generated from the following files: