Geant4  10.01.p03
G4H2ToolsManager Class Reference

#include <G4H2ToolsManager.hh>

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

Public Member Functions

 G4H2ToolsManager (const G4AnalysisManagerState &state)
 
virtual ~G4H2ToolsManager ()
 
G4int AddH2 (const G4String &name, tools::histo::h2d *h2d)
 
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
 
std::vector< tools::histo::h2d * >
::iterator 
BeginH2 ()
 
std::vector< tools::histo::h2d * >
::iterator 
EndH2 ()
 
std::vector< tools::histo::h2d * >
::const_iterator 
BeginConstH2 () const
 
std::vector< tools::histo::h2d * >
::const_iterator 
EndConstH2 () 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)
 
G4int GetFirstId () const
 

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 ()
 

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

G4BaseToolsManager fBaseToolsManager
 
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 51 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 51 of file G4H2ToolsManager.cc.

References fH2Vector.

Member Function Documentation

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

Definition at line 682 of file G4H2ToolsManager.cc.

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

Referenced by G4CsvAnalysisReader::ReadH2Impl(), G4XmlAnalysisReader::ReadH2Impl(), and G4RootAnalysisReader::ReadH2Impl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 282 of file G4H2ToolsManager.cc.

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

Referenced by AddH2(), and 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 706 of file G4H2ToolsManager.cc.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector< tools::histo::h2d * >::const_iterator G4H2ToolsManager::BeginConstH2 ( ) const
inline

Definition at line 193 of file G4H2ToolsManager.hh.

References fH2Vector.

std::vector< tools::histo::h2d * >::iterator G4H2ToolsManager::BeginH2 ( )
inline

Definition at line 186 of file G4H2ToolsManager.hh.

References fH2Vector.

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 317 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 356 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:

std::vector< tools::histo::h2d * >::const_iterator G4H2ToolsManager::EndConstH2 ( ) const
inline

Definition at line 197 of file G4H2ToolsManager.hh.

References fH2Vector.

std::vector< tools::histo::h2d * >::iterator G4H2ToolsManager::EndH2 ( )
inline

Definition at line 189 of file G4H2ToolsManager.hh.

References fH2Vector.

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 747 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 503 of file G4H2ToolsManager.cc.

References fH2NameIdMap, G4Exception(), JustWarning, and G4Analysis::kInvalidId.

+ 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 255 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 519 of file G4H2ToolsManager.cc.

References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetNbins(), and G4BaseToolsManager::kX.

+ Here is the call graph for this function:

G4int G4H2ToolsManager::GetH2Nybins ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 557 of file G4H2ToolsManager.cc.

References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetNbins(), and G4BaseToolsManager::kY.

+ Here is the call graph for this function:

G4String G4H2ToolsManager::GetH2Title ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 631 of file G4H2ToolsManager.cc.

References fBaseToolsManager, GetH2InFunction(), and G4BaseToolsManager::GetTitle().

+ Here is the call graph for this function:

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

Definition at line 200 of file G4H2ToolsManager.hh.

References fH2Vector.

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

+ Here is the caller graph for this function:

G4String G4H2ToolsManager::GetH2XAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 640 of file G4H2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetH2InFunction(), and G4BaseToolsManager::kX.

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2Xmax ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 539 of file G4H2ToolsManager.cc.

References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetMax(), and G4BaseToolsManager::kX.

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2Xmin ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 528 of file G4H2ToolsManager.cc.

References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetMin(), and G4BaseToolsManager::kX.

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2XWidth ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 548 of file G4H2ToolsManager.cc.

References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetWidth(), and G4BaseToolsManager::kX.

+ Here is the call graph for this function:

G4String G4H2ToolsManager::GetH2YAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 649 of file G4H2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetH2InFunction(), and G4BaseToolsManager::kY.

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2Ymax ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 577 of file G4H2ToolsManager.cc.

References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetMax(), and G4BaseToolsManager::kY.

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2Ymin ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 566 of file G4H2ToolsManager.cc.

References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetMin(), and G4BaseToolsManager::kY.

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2YWidth ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 586 of file G4H2ToolsManager.cc.

References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetWidth(), and G4BaseToolsManager::kY.

+ Here is the call graph for this function:

G4String G4H2ToolsManager::GetH2ZAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH2Manager.

Definition at line 658 of file G4H2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetH2InFunction(), and G4BaseToolsManager::kZ.

+ Here is the call graph for this function:

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

Definition at line 203 of file G4H2ToolsManager.hh.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4H2ToolsManager::IsEmpty ( ) const

Definition at line 741 of file G4H2ToolsManager.cc.

References fH2Vector.

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

+ Here is the caller graph for this function:

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

Definition at line 301 of file G4H2ToolsManager.cc.

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

Referenced by AddH2(), and CreateH2().

+ Here is the caller graph for this function:

G4bool G4H2ToolsManager::Reset ( )

Definition at line 725 of file G4H2ToolsManager.cc.

References fH2Vector.

Referenced by G4CsvAnalysisReader::Reset(), G4RootAnalysisReader::Reset(), G4XmlAnalysisReader::Reset(), G4RootAnalysisManager::Reset(), G4XmlAnalysisManager::Reset(), and G4CsvAnalysisManager::Reset().

+ Here is the caller graph for this function:

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

Implements G4VH2Manager.

Definition at line 460 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 390 of file G4H2ToolsManager.cc.

References G4VH2Manager::fHnManager, G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), GetH2InFunction(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), 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 428 of file G4H2ToolsManager.cc.

References G4VH2Manager::fHnManager, G4BaseAnalysisManager::fState, GetH2InFunction(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), 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 595 of file G4H2ToolsManager.cc.

References fBaseToolsManager, GetH2InFunction(), and G4BaseToolsManager::SetTitle().

+ Here is the call graph for this function:

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

Implements G4VH2Manager.

Definition at line 604 of file G4H2ToolsManager.cc.

References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::kX, and G4BaseToolsManager::SetAxisTitle().

+ Here is the call graph for this function:

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

Implements G4VH2Manager.

Definition at line 613 of file G4H2ToolsManager.cc.

References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::kY, and G4BaseToolsManager::SetAxisTitle().

+ Here is the call graph for this function:

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

Implements G4VH2Manager.

Definition at line 622 of file G4H2ToolsManager.cc.

References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::kZ, and G4BaseToolsManager::SetAxisTitle().

+ Here is the call graph for this function:

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

Implements G4VH2Manager.

Definition at line 667 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 182 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: