Geant4  10.02.p01
ExG4HbookH3DummyManager Class Reference

Manager class for H3 with dummy implementation. More...

#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
< G4HnManager
GetHnManager ()
 
- 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 ( const G4AnalysisManagerState state)

Definition at line 37 of file ExG4HbookH3DummyManager.cc.

ExG4HbookH3DummyManager::~ExG4HbookH3DummyManager ( )
virtual

Definition at line 45 of file ExG4HbookH3DummyManager.cc.

Member Function Documentation

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.

References ExceptionForHistograms().

+ Here is the call graph for this function:

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.

References ExceptionForHistograms().

+ Here is the call graph for this function:

void ExG4HbookH3DummyManager::ExceptionForHistograms ( const G4String functionName)
private

Definition at line 54 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst(), and fWarn.

Referenced by CreateH3(), FillH3(), ScaleH3(), SetH3(), SetH3Title(), SetH3XAxisTitle(), SetH3YAxisTitle(), SetH3ZAxisTitle(), and WriteOnAscii().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 64 of file ExG4HbookH3DummyManager.cc.

References G4THnManager< G4int >::fState, G4Exception(), G4AnalysisManagerState::GetType(), and JustWarning.

Referenced by ExceptionForHistograms(), GetH3Id(), GetH3Nxbins(), GetH3Nybins(), GetH3Nzbins(), GetH3Title(), GetH3XAxisTitle(), GetH3Xmax(), GetH3Xmin(), GetH3XWidth(), GetH3YAxisTitle(), GetH3Ymax(), GetH3Ymin(), GetH3YWidth(), GetH3ZAxisTitle(), GetH3Zmax(), GetH3Zmin(), and GetH3ZWidth().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

References ExceptionForHistograms().

+ Here is the call graph for this function:

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

Implements G4VH3Manager.

Definition at line 180 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4int ExG4HbookH3DummyManager::GetH3Nxbins ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 187 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4int ExG4HbookH3DummyManager::GetH3Nybins ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 215 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4int ExG4HbookH3DummyManager::GetH3Nzbins ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 243 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4String ExG4HbookH3DummyManager::GetH3Title ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 299 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4String ExG4HbookH3DummyManager::GetH3XAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 306 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4double ExG4HbookH3DummyManager::GetH3Xmax ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 201 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4double ExG4HbookH3DummyManager::GetH3Xmin ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 194 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4double ExG4HbookH3DummyManager::GetH3XWidth ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 208 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4String ExG4HbookH3DummyManager::GetH3YAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 313 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4double ExG4HbookH3DummyManager::GetH3Ymax ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 229 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4double ExG4HbookH3DummyManager::GetH3Ymin ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 222 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4double ExG4HbookH3DummyManager::GetH3YWidth ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 236 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4String ExG4HbookH3DummyManager::GetH3ZAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 320 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4double ExG4HbookH3DummyManager::GetH3Zmax ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 257 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4double ExG4HbookH3DummyManager::GetH3Zmin ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 250 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

G4double ExG4HbookH3DummyManager::GetH3ZWidth ( G4int  id) const
protectedvirtual

Implements G4VH3Manager.

Definition at line 264 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistogramsConst().

+ Here is the call graph for this function:

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

Implements G4VH3Manager.

Definition at line 175 of file ExG4HbookH3DummyManager.hh.

References G4THnManager< G4int >::fHnManager.

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

Implements G4VH3Manager.

Definition at line 163 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistograms().

+ Here is the call graph for this function:

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.

References ExceptionForHistograms().

+ Here is the call graph for this function:

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.

References ExceptionForHistograms().

+ Here is the call graph for this function:

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

Implements G4VH3Manager.

Definition at line 271 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistograms().

+ Here is the call graph for this function:

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

Implements G4VH3Manager.

Definition at line 278 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistograms().

+ Here is the call graph for this function:

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

Implements G4VH3Manager.

Definition at line 285 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistograms().

+ Here is the call graph for this function:

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

Implements G4VH3Manager.

Definition at line 292 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistograms().

+ Here is the call graph for this function:

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

Implements G4VH3Manager.

Definition at line 327 of file ExG4HbookH3DummyManager.cc.

References ExceptionForHistograms().

+ Here is the call graph for this function:

Member Data Documentation

G4bool ExG4HbookH3DummyManager::fWarn
private

Definition at line 170 of file ExG4HbookH3DummyManager.hh.

Referenced by ExceptionForHistograms().


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