Geant4  10.00.p02
G4H1ToolsManager Class Reference

#include <G4H1ToolsManager.hh>

+ Inheritance diagram for G4H1ToolsManager:
+ Collaboration diagram for G4H1ToolsManager:

Public Member Functions

 G4H1ToolsManager (const G4AnalysisManagerState &state)
 
virtual ~G4H1ToolsManager ()
 
void AddH1Vector (const std::vector< tools::histo::h1d * > &h1Vector)
 
G4bool Reset ()
 
G4bool IsEmpty () const
 
tools::histo::h1d * GetH1 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const
 
const std::vector
< tools::histo::h1d * > & 
GetH1Vector () 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 CreateH1 (const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binScheme="linear")
 
virtual G4int CreateH1 (const G4String &name, const G4String &title, const std::vector< G4double > &edges, const G4String &unitName="none", const G4String &fcnName="none")
 
virtual G4bool SetH1 (G4int id, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
 
virtual G4bool SetH1 (G4int id, const std::vector< G4double > &edges, const G4String &unitName="none", const G4String &fcnName="none")
 
virtual G4bool ScaleH1 (G4int id, G4double factor)
 
virtual G4bool FillH1 (G4int id, G4double value, G4double weight=1.0)
 
virtual G4int GetH1Id (const G4String &name, G4bool warn=true) const
 
virtual G4int GetH1Nbins (G4int id) const
 
virtual G4double GetH1Xmin (G4int id) const
 
virtual G4double GetH1Xmax (G4int id) const
 
virtual G4double GetH1Width (G4int id) const
 
virtual G4bool SetH1Title (G4int id, const G4String &title)
 
virtual G4bool SetH1XAxisTitle (G4int id, const G4String &title)
 
virtual G4bool SetH1YAxisTitle (G4int id, const G4String &title)
 
virtual G4String GetH1Title (G4int id) const
 
virtual G4String GetH1XAxisTitle (G4int id) const
 
virtual G4String GetH1YAxisTitle (G4int id) const
 
virtual G4bool WriteOnAscii (std::ofstream &output)
 
- Protected Member Functions inherited from G4VH1Manager
 G4VH1Manager (const G4AnalysisManagerState &state)
 
virtual ~G4VH1Manager ()
 
- Protected Member Functions inherited from G4BaseAnalysisManager
void ExceptionForHistograms (const G4String &functionName) const
 

Private Member Functions

virtual tools::histo::h1d * GetH1InFunction (G4int id, G4String functionName, G4bool warn=true, G4bool onlyIfActive=true) const
 
void AddH1Information (const G4String &name, const G4String &unitName, const G4String &fcnName, G4BinScheme binScheme) const
 
G4int RegisterToolsH1 (tools::histo::h1d *h1d, const G4String &name)
 

Private Attributes

std::vector< tools::histo::h1d * > fH1Vector
 
std::map< G4String, G4intfH1NameIdMap
 

Additional Inherited Members

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

Detailed Description

Definition at line 51 of file G4H1ToolsManager.hh.

Constructor & Destructor Documentation

G4H1ToolsManager::G4H1ToolsManager ( const G4AnalysisManagerState state)

Definition at line 46 of file G4H1ToolsManager.cc.

G4H1ToolsManager::~G4H1ToolsManager ( )
virtual

Definition at line 54 of file G4H1ToolsManager.cc.

References fH1Vector.

Member Function Documentation

void G4H1ToolsManager::AddH1Information ( const G4String name,
const G4String unitName,
const G4String fcnName,
G4BinScheme  binScheme 
) const
private

Definition at line 217 of file G4H1ToolsManager.cc.

References G4HnManager::AddH1Information(), G4VH1Manager::fHnManager, G4Analysis::GetFunction(), and G4Analysis::GetUnitValue().

Referenced by CreateH1().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4H1ToolsManager::AddH1Vector ( const std::vector< tools::histo::h1d * > &  h1Vector)

Definition at line 573 of file G4H1ToolsManager.cc.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4H1ToolsManager::CreateH1 ( const G4String name,
const G4String title,
G4int  nbins,
G4double  xmin,
G4double  xmax,
const G4String unitName = "none",
const G4String fcnName = "none",
const G4String binScheme = "linear" 
)
protectedvirtual

Implements G4VH1Manager.

Definition at line 244 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4int G4H1ToolsManager::CreateH1 ( const G4String name,
const G4String title,
const std::vector< G4double > &  edges,
const G4String unitName = "none",
const G4String fcnName = "none" 
)
protectedvirtual

Implements G4VH1Manager.

Definition at line 274 of file G4H1ToolsManager.cc.

References AddH1Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsH1().

+ Here is the call graph for this function:

G4bool G4H1ToolsManager::FillH1 ( G4int  id,
G4double  value,
G4double  weight = 1.0 
)
protectedvirtual

Implements G4VH1Manager.

Definition at line 373 of file G4H1ToolsManager.cc.

References G4VH1Manager::fHnManager, G4BaseAnalysisManager::fState, G4HnInformation::fXFcn, G4HnInformation::fXUnit, G4HnManager::GetActivation(), GetH1InFunction(), G4HnManager::GetHnInformation(), G4AnalysisManagerState::GetIsActivation(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().

+ Here is the call graph for this function:

tools::histo::h1d * G4H1ToolsManager::GetH1 ( G4int  id,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const

Definition at line 614 of file G4H1ToolsManager.cc.

References GetH1InFunction().

+ Here is the call graph for this function:

G4int G4H1ToolsManager::GetH1Id ( const G4String name,
G4bool  warn = true 
) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 396 of file G4H1ToolsManager.cc.

References fH1NameIdMap, G4Exception(), and JustWarning.

+ Here is the call graph for this function:

tools::histo::h1d * G4H1ToolsManager::GetH1InFunction ( G4int  id,
G4String  functionName,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const
privatevirtual

Definition at line 192 of file G4H1ToolsManager.cc.

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

Referenced by FillH1(), GetH1(), GetH1Nbins(), GetH1Title(), GetH1Width(), GetH1XAxisTitle(), GetH1Xmax(), GetH1Xmin(), GetH1YAxisTitle(), ScaleH1(), SetH1(), SetH1Title(), SetH1XAxisTitle(), and SetH1YAxisTitle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4H1ToolsManager::GetH1Nbins ( G4int  id) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 412 of file G4H1ToolsManager.cc.

References GetH1InFunction().

+ Here is the call graph for this function:

G4String G4H1ToolsManager::GetH1Title ( G4int  id) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 488 of file G4H1ToolsManager.cc.

References GetH1InFunction().

+ Here is the call graph for this function:

const std::vector< tools::histo::h1d * > & G4H1ToolsManager::GetH1Vector ( ) const
inline

Definition at line 153 of file G4H1ToolsManager.hh.

References fH1Vector.

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

+ Here is the caller graph for this function:

G4double G4H1ToolsManager::GetH1Width ( G4int  id) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 441 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4String G4H1ToolsManager::GetH1XAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 498 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4double G4H1ToolsManager::GetH1Xmax ( G4int  id) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 432 of file G4H1ToolsManager.cc.

References GetH1InFunction().

+ Here is the call graph for this function:

G4double G4H1ToolsManager::GetH1Xmin ( G4int  id) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 421 of file G4H1ToolsManager.cc.

References GetH1InFunction().

+ Here is the call graph for this function:

G4String G4H1ToolsManager::GetH1YAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 517 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Definition at line 156 of file G4H1ToolsManager.hh.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4H1ToolsManager::IsEmpty ( ) const

Definition at line 608 of file G4H1ToolsManager.cc.

References fH1Vector.

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

+ Here is the caller graph for this function:

G4int G4H1ToolsManager::RegisterToolsH1 ( tools::histo::h1d *  h1d,
const G4String name 
)
private

Definition at line 228 of file G4H1ToolsManager.cc.

References G4BaseAnalysisManager::fFirstId, fH1NameIdMap, fH1Vector, G4BaseAnalysisManager::fLockFirstId, and name.

Referenced by CreateH1().

+ Here is the caller graph for this function:

G4bool G4H1ToolsManager::Reset ( )

Definition at line 592 of file G4H1ToolsManager.cc.

References fH1Vector.

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

+ Here is the caller graph for this function:

G4bool G4H1ToolsManager::ScaleH1 ( G4int  id,
G4double  factor 
)
protectedvirtual

Implements G4VH1Manager.

Definition at line 364 of file G4H1ToolsManager.cc.

References GetH1InFunction().

+ Here is the call graph for this function:

G4bool G4H1ToolsManager::SetH1 ( G4int  id,
G4int  nbins,
G4double  xmin,
G4double  xmax,
const G4String unitName = "none",
const G4String fcnName = "none",
const G4String binSchemeName = "linear" 
)
protectedvirtual

Implements G4VH1Manager.

Definition at line 302 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4bool G4H1ToolsManager::SetH1 ( G4int  id,
const std::vector< G4double > &  edges,
const G4String unitName = "none",
const G4String fcnName = "none" 
)
protectedvirtual

Implements G4VH1Manager.

Definition at line 333 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4bool G4H1ToolsManager::SetH1Title ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VH1Manager.

Definition at line 459 of file G4H1ToolsManager.cc.

References GetH1InFunction().

+ Here is the call graph for this function:

G4bool G4H1ToolsManager::SetH1XAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VH1Manager.

Definition at line 468 of file G4H1ToolsManager.cc.

References GetH1InFunction().

+ Here is the call graph for this function:

G4bool G4H1ToolsManager::SetH1YAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VH1Manager.

Definition at line 478 of file G4H1ToolsManager.cc.

References GetH1InFunction().

+ Here is the call graph for this function:

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

Implements G4VH1Manager.

Definition at line 536 of file G4H1ToolsManager.cc.

References G4HnInformation::fAscii, G4BaseAnalysisManager::fFirstId, fH1Vector, G4VH1Manager::fHnManager, G4HnInformation::fName, G4BaseAnalysisManager::fState, G4endl, G4HnManager::GetHnInformation(), G4AnalysisManagerState::GetVerboseL3(), and G4AnalysisVerbose::Message().

+ Here is the call graph for this function:

Member Data Documentation

std::map<G4String, G4int> G4H1ToolsManager::fH1NameIdMap
private

Definition at line 148 of file G4H1ToolsManager.hh.

Referenced by GetH1Id(), and RegisterToolsH1().

std::vector<tools::histo::h1d*> G4H1ToolsManager::fH1Vector
private

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