Geant4  10.01.p03
G4H1ToolsManager Class Reference

#include <G4H1ToolsManager.hh>

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

Public Member Functions

 G4H1ToolsManager (const G4AnalysisManagerState &state)
 
virtual ~G4H1ToolsManager ()
 
G4int AddH1 (const G4String &name, tools::histo::h1d *h1d)
 
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
 
std::vector< tools::histo::h1d * >
::iterator 
BeginH1 ()
 
std::vector< tools::histo::h1d * >
::iterator 
EndH1 ()
 
std::vector< tools::histo::h1d * >
::const_iterator 
BeginConstH1 () const
 
std::vector< tools::histo::h1d * >
::const_iterator 
EndConstH1 () 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)
 
G4int GetFirstId () const
 

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

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

G4BaseToolsManager fBaseToolsManager
 
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 52 of file G4H1ToolsManager.hh.

Constructor & Destructor Documentation

G4H1ToolsManager::G4H1ToolsManager ( const G4AnalysisManagerState state)

Definition at line 47 of file G4H1ToolsManager.cc.

G4H1ToolsManager::~G4H1ToolsManager ( )
virtual

Definition at line 56 of file G4H1ToolsManager.cc.

References fH1Vector.

Member Function Documentation

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

Definition at line 554 of file G4H1ToolsManager.cc.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 224 of file G4H1ToolsManager.cc.

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

Referenced by AddH1(), and 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 577 of file G4H1ToolsManager.cc.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector< tools::histo::h1d * >::const_iterator G4H1ToolsManager::BeginConstH1 ( ) const
inline

Definition at line 171 of file G4H1ToolsManager.hh.

References fH1Vector.

std::vector< tools::histo::h1d * >::iterator G4H1ToolsManager::BeginH1 ( )
inline

Definition at line 164 of file G4H1ToolsManager.hh.

References fH1Vector.

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 251 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 283 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:

std::vector< tools::histo::h1d * >::const_iterator G4H1ToolsManager::EndConstH1 ( ) const
inline

Definition at line 175 of file G4H1ToolsManager.hh.

References fH1Vector.

std::vector< tools::histo::h1d * >::iterator G4H1ToolsManager::EndH1 ( )
inline

Definition at line 167 of file G4H1ToolsManager.hh.

References fH1Vector.

G4bool G4H1ToolsManager::FillH1 ( G4int  id,
G4double  value,
G4double  weight = 1.0 
)
protectedvirtual
tools::histo::h1d * G4H1ToolsManager::GetH1 ( G4int  id,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const

Definition at line 618 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 408 of file G4H1ToolsManager.cc.

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

+ 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 199 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 424 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4String G4H1ToolsManager::GetH1Title ( G4int  id) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 489 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Definition at line 178 of file G4H1ToolsManager.hh.

References fH1Vector.

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

+ Here is the caller graph for this function:

G4double G4H1ToolsManager::GetH1Width ( G4int  id) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 453 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4String G4H1ToolsManager::GetH1XAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 499 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4double G4H1ToolsManager::GetH1Xmax ( G4int  id) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 444 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4double G4H1ToolsManager::GetH1Xmin ( G4int  id) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 433 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4String G4H1ToolsManager::GetH1YAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VH1Manager.

Definition at line 508 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Definition at line 181 of file G4H1ToolsManager.hh.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4H1ToolsManager::IsEmpty ( ) const

Definition at line 612 of file G4H1ToolsManager.cc.

References fH1Vector.

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

+ Here is the caller graph for this function:

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

Definition at line 235 of file G4H1ToolsManager.cc.

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

Referenced by AddH1(), and CreateH1().

+ Here is the caller graph for this function:

G4bool G4H1ToolsManager::Reset ( )

Definition at line 596 of file G4H1ToolsManager.cc.

References fH1Vector.

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

+ Here is the caller graph for this function:

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

Implements G4VH1Manager.

Definition at line 373 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 311 of file G4H1ToolsManager.cc.

References G4VH1Manager::fHnManager, G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), GetH1InFunction(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), 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 342 of file G4H1ToolsManager.cc.

References G4VH1Manager::fHnManager, G4BaseAnalysisManager::fState, GetH1InFunction(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), 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 462 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VH1Manager.

Definition at line 471 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VH1Manager.

Definition at line 480 of file G4H1ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VH1Manager.

Definition at line 517 of file G4H1ToolsManager.cc.

References G4BaseAnalysisManager::fFirstId, fH1Vector, G4VH1Manager::fHnManager, G4BaseAnalysisManager::fState, G4endl, G4HnInformation::GetAscii(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), 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 159 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: