Geant4  10.00.p03
G4H2ToolsManager Class Reference

#include <G4H2ToolsManager.hh>

+ Inheritance diagram for G4H2ToolsManager:
+ Collaboration diagram for G4H2ToolsManager:

Public Member Functions

 G4H2ToolsManager (const G4AnalysisManagerState &state)
 
virtual ~G4H2ToolsManager ()
 
void AddH2Vector (const std::vector< tools::histo::h2d * > &h2Vector)
 
G4bool Reset ()
 
G4bool IsEmpty () const
 
tools::histo::h2d * GetH2 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
const std::vector
< tools::histo::h2d * > & 
GetH2Vector () const
 
const std::vector
< G4HnInformation * > & 
GetHnVector () const
 
- Public Member Functions inherited from G4BaseAnalysisManager
 G4BaseAnalysisManager (const G4AnalysisManagerState &state)
 
virtual ~G4BaseAnalysisManager ()
 
G4bool SetFirstId (G4int firstId)
 

Protected Member Functions

virtual G4int CreateH2 (const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinScheme="linear", const G4String &ybinScheme="linear")
 
virtual G4int CreateH2 (const G4String &name, const G4String &title, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none")
 
virtual G4bool SetH2 (G4int id, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinScheme="linear", const G4String &ybinScheme="linear")
 
virtual G4bool SetH2 (G4int id, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none")
 
virtual G4bool ScaleH2 (G4int id, G4double factor)
 
virtual G4bool FillH2 (G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)
 
virtual G4int GetH2Id (const G4String &name, G4bool warn=true) const
 
virtual G4int GetH2Nxbins (G4int id) const
 
virtual G4double GetH2Xmin (G4int id) const
 
virtual G4double GetH2Xmax (G4int id) const
 
virtual G4double GetH2XWidth (G4int id) const
 
virtual G4int GetH2Nybins (G4int id) const
 
virtual G4double GetH2Ymin (G4int id) const
 
virtual G4double GetH2Ymax (G4int id) const
 
virtual G4double GetH2YWidth (G4int id) const
 
virtual G4bool SetH2Title (G4int id, const G4String &title)
 
virtual G4bool SetH2XAxisTitle (G4int id, const G4String &title)
 
virtual G4bool SetH2YAxisTitle (G4int id, const G4String &title)
 
virtual G4bool SetH2ZAxisTitle (G4int id, const G4String &title)
 
virtual G4String GetH2Title (G4int id) const
 
virtual G4String GetH2XAxisTitle (G4int id) const
 
virtual G4String GetH2YAxisTitle (G4int id) const
 
virtual G4String GetH2ZAxisTitle (G4int id) const
 
virtual G4bool WriteOnAscii (std::ofstream &output)
 
- Protected Member Functions inherited from G4VH2Manager
 G4VH2Manager (const G4AnalysisManagerState &state)
 
virtual ~G4VH2Manager ()
 
- Protected Member Functions inherited from G4BaseAnalysisManager
void ExceptionForHistograms (const G4String &functionName) const
 

Private Member Functions

virtual tools::histo::h2d * GetH2InFunction (G4int id, G4String function, G4bool warn=true, G4bool onlyIfActive=true) const
 
void AddH2Information (const G4String &name, const G4String &xunitName, const G4String &yunitName, const G4String &xfcnName, const G4String &yfcnName, G4BinScheme xbinScheme, G4BinScheme ybinScheme) const
 
G4int RegisterToolsH2 (tools::histo::h2d *h2d, const G4String &name)
 

Private Attributes

std::vector< tools::histo::h2d * > fH2Vector
 
std::map< G4String, G4intfH2NameIdMap
 

Additional Inherited Members

- Protected Attributes inherited from G4VH2Manager
G4HnManagerfHnManager
 
- Protected Attributes inherited from G4BaseAnalysisManager
const G4AnalysisManagerStatefState
 
G4int fFirstId
 
G4bool fLockFirstId
 

Detailed Description

Definition at line 50 of file G4H2ToolsManager.hh.

Constructor & Destructor Documentation

G4H2ToolsManager::G4H2ToolsManager ( const G4AnalysisManagerState state)

Definition at line 42 of file G4H2ToolsManager.cc.

G4H2ToolsManager::~G4H2ToolsManager ( )
virtual

Definition at line 50 of file G4H2ToolsManager.cc.

References fH2Vector.

Member Function Documentation

void G4H2ToolsManager::AddH2Information ( const G4String name,
const G4String xunitName,
const G4String yunitName,
const G4String xfcnName,
const G4String yfcnName,
G4BinScheme  xbinScheme,
G4BinScheme  ybinScheme 
) const
private

Definition at line 275 of file G4H2ToolsManager.cc.

References G4HnManager::AddH2Information(), G4VH2Manager::fHnManager, G4Analysis::GetFunction(), and G4Analysis::GetUnitValue().

Referenced by CreateH2().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4H2ToolsManager::AddH2Vector ( const std::vector< tools::histo::h2d * > &  h2Vector)

Definition at line 718 of file G4H2ToolsManager.cc.

References fH2Vector, G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().

Referenced by G4XmlAnalysisManager::WriteH2(), and G4RootAnalysisManager::WriteH2().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4H2ToolsManager::CreateH2 ( const G4String name,
const G4String title,
G4int  nxbins,
G4double  xmin,
G4double  xmax,
G4int  nybins,
G4double  ymin,
G4double  ymax,
const G4String xunitName = "none",
const G4String yunitName = "none",
const G4String xfcnName = "none",
const G4String yfcnName = "none",
const G4String xbinScheme = "linear",
const G4String ybinScheme = "linear" 
)
protectedvirtual

Implements G4VH2Manager.

Definition at line 310 of file G4H2ToolsManager.cc.

References AddH2Information(), G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and RegisterToolsH2().

+ Here is the call graph for this function:

G4int G4H2ToolsManager::CreateH2 ( const G4String name,
const G4String title,
const std::vector< G4double > &  xedges,
const std::vector< G4double > &  yedges,
const G4String xunitName = "none",
const G4String yunitName = "none",
const G4String xfcnName = "none",
const G4String yfcnName = "none" 
)
protectedvirtual

Implements G4VH2Manager.

Definition at line 349 of file G4H2ToolsManager.cc.

References AddH2Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsH2().

+ Here is the call graph for this function:

G4bool G4H2ToolsManager::FillH2 ( G4int  id,
G4double  xvalue,
G4double  yvalue,
G4double  weight = 1.0 
)
protectedvirtual
tools::histo::h2d * G4H2ToolsManager::GetH2 ( G4int  id,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const

Definition at line 759 of file G4H2ToolsManager.cc.

References GetH2InFunction().

+ Here is the call graph for this function:

G4int G4H2ToolsManager::GetH2Id ( const G4String name,
G4bool  warn = true 
) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 488 of file G4H2ToolsManager.cc.

References fH2NameIdMap, G4Exception(), and JustWarning.

+ Here is the call graph for this function:

tools::histo::h2d * G4H2ToolsManager::GetH2InFunction ( G4int  id,
G4String  function,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const
privatevirtual

Definition at line 248 of file G4H2ToolsManager.cc.

References G4BaseAnalysisManager::fFirstId, fH2Vector, G4VH2Manager::fHnManager, G4BaseAnalysisManager::fState, G4Exception(), G4HnManager::GetActivation(), G4AnalysisManagerState::GetIsActivation(), and JustWarning.

Referenced by FillH2(), GetH2(), GetH2Nxbins(), GetH2Nybins(), GetH2Title(), GetH2XAxisTitle(), GetH2Xmax(), GetH2Xmin(), GetH2XWidth(), GetH2YAxisTitle(), GetH2Ymax(), GetH2Ymin(), GetH2YWidth(), GetH2ZAxisTitle(), ScaleH2(), SetH2(), SetH2Title(), SetH2XAxisTitle(), SetH2YAxisTitle(), and SetH2ZAxisTitle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4H2ToolsManager::GetH2Nxbins ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 504 of file G4H2ToolsManager.cc.

References GetH2InFunction().

+ Here is the call graph for this function:

G4int G4H2ToolsManager::GetH2Nybins ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 551 of file G4H2ToolsManager.cc.

References GetH2InFunction().

+ Here is the call graph for this function:

G4String G4H2ToolsManager::GetH2Title ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 637 of file G4H2ToolsManager.cc.

References GetH2InFunction().

+ Here is the call graph for this function:

const std::vector< tools::histo::h2d * > & G4H2ToolsManager::GetH2Vector ( ) const
inline

Definition at line 176 of file G4H2ToolsManager.hh.

References fH2Vector.

Referenced by G4XmlAnalysisManager::WriteH2(), and G4RootAnalysisManager::WriteH2().

+ Here is the caller graph for this function:

G4String G4H2ToolsManager::GetH2XAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 646 of file G4H2ToolsManager.cc.

References G4Exception(), GetH2InFunction(), and JustWarning.

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2Xmax ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 524 of file G4H2ToolsManager.cc.

References GetH2InFunction().

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2Xmin ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 513 of file G4H2ToolsManager.cc.

References GetH2InFunction().

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2XWidth ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 533 of file G4H2ToolsManager.cc.

References G4Exception(), GetH2InFunction(), and JustWarning.

+ Here is the call graph for this function:

G4String G4H2ToolsManager::GetH2YAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 665 of file G4H2ToolsManager.cc.

References G4Exception(), GetH2InFunction(), and JustWarning.

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2Ymax ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 571 of file G4H2ToolsManager.cc.

References GetH2InFunction().

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2Ymin ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 560 of file G4H2ToolsManager.cc.

References GetH2InFunction().

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2YWidth ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 580 of file G4H2ToolsManager.cc.

References G4Exception(), GetH2InFunction(), and JustWarning.

+ Here is the call graph for this function:

G4String G4H2ToolsManager::GetH2ZAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 684 of file G4H2ToolsManager.cc.

References G4Exception(), GetH2InFunction(), and JustWarning.

+ Here is the call graph for this function:

const std::vector< G4HnInformation * > & G4H2ToolsManager::GetHnVector ( ) const
inline

Definition at line 179 of file G4H2ToolsManager.hh.

References G4VH2Manager::fHnManager, and G4HnManager::GetHnVector().

Referenced by G4XmlAnalysisManager::WriteH2(), and G4RootAnalysisManager::WriteH2().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4H2ToolsManager::IsEmpty ( ) const

Definition at line 753 of file G4H2ToolsManager.cc.

References fH2Vector.

Referenced by G4XmlAnalysisManager::CloseFileImpl(), G4RootAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::WriteImpl(), and G4RootAnalysisManager::WriteImpl().

+ Here is the caller graph for this function:

G4int G4H2ToolsManager::RegisterToolsH2 ( tools::histo::h2d *  h2d,
const G4String name 
)
private

Definition at line 294 of file G4H2ToolsManager.cc.

References G4BaseAnalysisManager::fFirstId, fH2NameIdMap, fH2Vector, G4BaseAnalysisManager::fLockFirstId, and name.

Referenced by CreateH2().

+ Here is the caller graph for this function:

G4bool G4H2ToolsManager::Reset ( )

Definition at line 737 of file G4H2ToolsManager.cc.

References fH2Vector.

Referenced by G4RootAnalysisManager::Reset(), and G4XmlAnalysisManager::Reset().

+ Here is the caller graph for this function:

G4bool G4H2ToolsManager::ScaleH2 ( G4int  id,
G4double  factor 
)
protectedvirtual

Implements G4VH2Manager.

Definition at line 453 of file G4H2ToolsManager.cc.

References GetH2InFunction().

+ Here is the call graph for this function:

G4bool G4H2ToolsManager::SetH2 ( G4int  id,
G4int  nxbins,
G4double  xmin,
G4double  xmax,
G4int  nybins,
G4double  ymin,
G4double  ymax,
const G4String xunitName = "none",
const G4String yunitName = "none",
const G4String xfcnName = "none",
const G4String yfcnName = "none",
const G4String xbinScheme = "linear",
const G4String ybinScheme = "linear" 
)
protectedvirtual

Implements G4VH2Manager.

Definition at line 383 of file G4H2ToolsManager.cc.

References G4VH2Manager::fHnManager, G4HnInformation::fName, G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), GetH2InFunction(), G4HnManager::GetHnInformation(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().

+ Here is the call graph for this function:

G4bool G4H2ToolsManager::SetH2 ( G4int  id,
const std::vector< G4double > &  xedges,
const std::vector< G4double > &  yedges,
const G4String xunitName = "none",
const G4String yunitName = "none",
const G4String xfcnName = "none",
const G4String yfcnName = "none" 
)
protectedvirtual

Implements G4VH2Manager.

Definition at line 421 of file G4H2ToolsManager.cc.

References G4VH2Manager::fHnManager, G4HnInformation::fName, G4BaseAnalysisManager::fState, GetH2InFunction(), G4HnManager::GetHnInformation(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().

+ Here is the call graph for this function:

G4bool G4H2ToolsManager::SetH2Title ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VH2Manager.

Definition at line 598 of file G4H2ToolsManager.cc.

References GetH2InFunction().

+ Here is the call graph for this function:

G4bool G4H2ToolsManager::SetH2XAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VH2Manager.

Definition at line 607 of file G4H2ToolsManager.cc.

References GetH2InFunction().

+ Here is the call graph for this function:

G4bool G4H2ToolsManager::SetH2YAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VH2Manager.

Definition at line 617 of file G4H2ToolsManager.cc.

References GetH2InFunction().

+ Here is the call graph for this function:

G4bool G4H2ToolsManager::SetH2ZAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VH2Manager.

Definition at line 627 of file G4H2ToolsManager.cc.

References GetH2InFunction().

+ Here is the call graph for this function:

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

Implements G4VH2Manager.

Definition at line 703 of file G4H2ToolsManager.cc.

References G4VH2Manager::fHnManager, and G4HnManager::IsAscii().

+ Here is the call graph for this function:

Member Data Documentation

std::map<G4String, G4int> G4H2ToolsManager::fH2NameIdMap
private

Definition at line 172 of file G4H2ToolsManager.hh.

Referenced by GetH2Id(), and RegisterToolsH2().

std::vector<tools::histo::h2d*> G4H2ToolsManager::fH2Vector
private

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