Geant4  10.02.p01
ExG4HbookP2DummyManager Class Reference

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

#include <ExG4HbookP2DummyManager.hh>

+ Inheritance diagram for ExG4HbookP2DummyManager:
+ Collaboration diagram for ExG4HbookP2DummyManager:

Public Member Functions

 ExG4HbookP2DummyManager (const G4AnalysisManagerState &state)
 
virtual ~ExG4HbookP2DummyManager ()
 
- Public Member Functions inherited from G4VP2Manager
 G4VP2Manager ()
 
virtual ~G4VP2Manager ()
 
 G4VP2Manager (const G4VP2Manager &rhs)=delete
 
G4VP2Manageroperator= (const G4VP2Manager &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 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 G4int CreateP2 (const G4String &name, const G4String &title, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, 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")
 
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 G4bool SetP2 (G4int id, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, 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")
 
virtual G4bool ScaleP2 (G4int id, G4double factor)
 
virtual G4bool FillP2 (G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0)
 
virtual G4int GetP2Id (const G4String &name, G4bool warn=true) const
 
virtual G4int GetP2Nxbins (G4int id) const
 
virtual G4double GetP2Xmin (G4int id) const
 
virtual G4double GetP2Xmax (G4int id) const
 
virtual G4double GetP2XWidth (G4int id) const
 
virtual G4int GetP2Nybins (G4int id) const
 
virtual G4double GetP2Ymin (G4int id) const
 
virtual G4double GetP2Ymax (G4int id) const
 
virtual G4double GetP2YWidth (G4int id) const
 
virtual G4double GetP2Zmin (G4int id) const
 
virtual G4double GetP2Zmax (G4int id) const
 
virtual G4bool SetP2Title (G4int id, const G4String &title)
 
virtual G4bool SetP2XAxisTitle (G4int id, const G4String &title)
 
virtual G4bool SetP2YAxisTitle (G4int id, const G4String &title)
 
virtual G4bool SetP2ZAxisTitle (G4int id, const G4String &title)
 
virtual G4String GetP2Title (G4int id) const
 
virtual G4String GetP2XAxisTitle (G4int id) const
 
virtual G4String GetP2YAxisTitle (G4int id) const
 
virtual G4String GetP2ZAxisTitle (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 ExceptionForProfiles (const G4String &functionName)
 
void ExceptionForProfilesConst (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 P2 with dummy implementation.

It will just issue warnings.

Definition at line 50 of file ExG4HbookP2DummyManager.hh.

Constructor & Destructor Documentation

ExG4HbookP2DummyManager::ExG4HbookP2DummyManager ( const G4AnalysisManagerState state)

Definition at line 37 of file ExG4HbookP2DummyManager.cc.

ExG4HbookP2DummyManager::~ExG4HbookP2DummyManager ( )
virtual

Definition at line 46 of file ExG4HbookP2DummyManager.cc.

Member Function Documentation

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

Implements G4VP2Manager.

Definition at line 85 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfiles().

+ Here is the call graph for this function:

G4int ExG4HbookP2DummyManager::CreateP2 ( const G4String name,
const G4String title,
const std::vector< G4double > &  xedges,
const std::vector< G4double > &  yedges,
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" 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 106 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfiles().

+ Here is the call graph for this function:

void ExG4HbookP2DummyManager::ExceptionForProfiles ( const G4String functionName)
private

Definition at line 55 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst(), and fWarn.

Referenced by CreateP2(), FillP2(), ScaleP2(), SetP2(), SetP2Title(), SetP2XAxisTitle(), SetP2YAxisTitle(), SetP2ZAxisTitle(), and WriteOnAscii().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ExG4HbookP2DummyManager::ExceptionForProfilesConst ( const G4String functionName) const
private

Definition at line 65 of file ExG4HbookP2DummyManager.cc.

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

Referenced by ExceptionForProfiles(), GetP2Id(), GetP2Nxbins(), GetP2Nybins(), GetP2Title(), GetP2XAxisTitle(), GetP2Xmax(), GetP2Xmin(), GetP2XWidth(), GetP2YAxisTitle(), GetP2Ymax(), GetP2Ymin(), GetP2YWidth(), GetP2ZAxisTitle(), GetP2Zmax(), and GetP2Zmin().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool ExG4HbookP2DummyManager::FillP2 ( G4int  id,
G4double  xvalue,
G4double  yvalue,
G4double  zvalue,
G4double  weight = 1.0 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 167 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfiles().

+ Here is the call graph for this function:

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

Implements G4VP2Manager.

Definition at line 166 of file ExG4HbookP2DummyManager.hh.

References G4THnManager< G4int >::fHnManager.

G4int ExG4HbookP2DummyManager::GetP2Id ( const G4String name,
G4bool  warn = true 
) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 177 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4int ExG4HbookP2DummyManager::GetP2Nxbins ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 184 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4int ExG4HbookP2DummyManager::GetP2Nybins ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 212 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4String ExG4HbookP2DummyManager::GetP2Title ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 282 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4String ExG4HbookP2DummyManager::GetP2XAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 289 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4double ExG4HbookP2DummyManager::GetP2Xmax ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 198 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4double ExG4HbookP2DummyManager::GetP2Xmin ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 191 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4double ExG4HbookP2DummyManager::GetP2XWidth ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 205 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4String ExG4HbookP2DummyManager::GetP2YAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 296 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4double ExG4HbookP2DummyManager::GetP2Ymax ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 226 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4double ExG4HbookP2DummyManager::GetP2Ymin ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 219 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4double ExG4HbookP2DummyManager::GetP2YWidth ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 233 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4String ExG4HbookP2DummyManager::GetP2ZAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 303 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4double ExG4HbookP2DummyManager::GetP2Zmax ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 247 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4double ExG4HbookP2DummyManager::GetP2Zmin ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 240 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfilesConst().

+ Here is the call graph for this function:

G4bool ExG4HbookP2DummyManager::ScaleP2 ( G4int  id,
G4double  factor 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 160 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfiles().

+ Here is the call graph for this function:

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

Implements G4VP2Manager.

Definition at line 124 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfiles().

+ Here is the call graph for this function:

G4bool ExG4HbookP2DummyManager::SetP2 ( G4int  id,
const std::vector< G4double > &  xedges,
const std::vector< G4double > &  yedges,
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" 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 144 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfiles().

+ Here is the call graph for this function:

G4bool ExG4HbookP2DummyManager::SetP2Title ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 254 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfiles().

+ Here is the call graph for this function:

G4bool ExG4HbookP2DummyManager::SetP2XAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 261 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfiles().

+ Here is the call graph for this function:

G4bool ExG4HbookP2DummyManager::SetP2YAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 268 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfiles().

+ Here is the call graph for this function:

G4bool ExG4HbookP2DummyManager::SetP2ZAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 275 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfiles().

+ Here is the call graph for this function:

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

Implements G4VP2Manager.

Definition at line 310 of file ExG4HbookP2DummyManager.cc.

References ExceptionForProfiles().

+ Here is the call graph for this function:

Member Data Documentation

G4bool ExG4HbookP2DummyManager::fWarn
private

Definition at line 162 of file ExG4HbookP2DummyManager.hh.

Referenced by ExceptionForProfiles().


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