Geant4  10.02.p02
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)
 
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 G4VH1Manager
 G4VH1Manager ()
 
virtual ~G4VH1Manager ()
 
 G4VH1Manager (const G4VH1Manager &rhs)=delete
 
G4VH1Manageroperator= (const G4VH1Manager &rhs)=delete
 
- Public Member Functions inherited from G4THnManager< tools::histo::h1d >
 G4THnManager (const G4AnalysisManagerState &state, const G4String &hnType)
 
virtual ~G4THnManager ()
 
G4bool Reset ()
 
G4bool IsEmpty () 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") final
 
virtual G4int CreateH1 (const G4String &name, const G4String &title, const std::vector< G4double > &edges, const G4String &unitName="none", const G4String &fcnName="none") final
 
virtual G4bool SetH1 (G4int id, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear") final
 
virtual G4bool SetH1 (G4int id, const std::vector< G4double > &edges, const G4String &unitName="none", const G4String &fcnName="none") final
 
virtual G4bool ScaleH1 (G4int id, G4double factor) final
 
virtual G4bool FillH1 (G4int id, G4double value, G4double weight=1.0) final
 
virtual G4int GetH1Id (const G4String &name, G4bool warn=true) const final
 
virtual G4int GetH1Nbins (G4int id) const final
 
virtual G4double GetH1Xmin (G4int id) const final
 
virtual G4double GetH1Xmax (G4int id) const final
 
virtual G4double GetH1Width (G4int id) const final
 
virtual G4bool SetH1Title (G4int id, const G4String &title) final
 
virtual G4bool SetH1XAxisTitle (G4int id, const G4String &title) final
 
virtual G4bool SetH1YAxisTitle (G4int id, const G4String &title) final
 
virtual G4String GetH1Title (G4int id) const final
 
virtual G4String GetH1XAxisTitle (G4int id) const final
 
virtual G4String GetH1YAxisTitle (G4int id) const final
 
virtual G4bool WriteOnAscii (std::ofstream &output) final
 
virtual std::shared_ptr
< G4HnManager
GetHnManager () final
 
- Protected Member Functions inherited from G4THnManager< tools::histo::h1d >
void AddTVector (const std::vector< tools::histo::h1d * > &tVector)
 
std::vector< tools::histo::h1d * >
::iterator 
BeginT ()
 
std::vector< tools::histo::h1d * >
::iterator 
EndT ()
 
std::vector< tools::histo::h1d * >
::const_iterator 
BeginConstT () const
 
std::vector< tools::histo::h1d * >
::const_iterator 
EndConstT () const
 
tools::histo::h1d * GetTInFunction (G4int id, G4String functionName, G4bool warn=true, G4bool onlyIfActive=true) const
 
G4int RegisterT (tools::histo::h1d *t, const G4String &name)
 
G4int GetTId (const G4String &name, G4bool warn=true) const
 

Private Member Functions

void AddH1Information (const G4String &name, const G4String &unitName, const G4String &fcnName, G4BinScheme binScheme) const
 

Static Private Attributes

static const G4int kDimension = 1
 

Additional Inherited Members

- Protected Attributes inherited from G4THnManager< tools::histo::h1d >
const G4AnalysisManagerStatefState
 
std::vector< tools::histo::h1d * > fTVector
 
std::map< G4String, G4intfNameIdMap
 
std::shared_ptr< G4HnManagerfHnManager
 

Detailed Description

Definition at line 52 of file G4H1ToolsManager.hh.

Constructor & Destructor Documentation

G4H1ToolsManager::G4H1ToolsManager ( const G4AnalysisManagerState state)
explicit

Definition at line 49 of file G4H1ToolsManager.cc.

G4H1ToolsManager::~G4H1ToolsManager ( )
virtual

Definition at line 55 of file G4H1ToolsManager.cc.

Member Function Documentation

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

Definition at line 493 of file G4H1ToolsManager.cc.

References AddH1Information(), G4THnManager< tools::histo::h1d >::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kLinear, G4AnalysisVerbose::Message(), and G4THnManager< tools::histo::h1d >::RegisterT().

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 186 of file G4H1ToolsManager.cc.

References G4HnInformation::AddDimension(), G4THnManager< tools::histo::h1d >::fHnManager, and kDimension.

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 517 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::AddTVector().

Referenced by G4XmlAnalysisManager::WriteH1(), G4CsvAnalysisManager::WriteH1(), and G4RootAnalysisManager::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 161 of file G4H1ToolsManager.hh.

References G4THnManager< tools::histo::h1d >::BeginConstT().

+ Here is the call graph for this function:

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

Definition at line 154 of file G4H1ToolsManager.hh.

References G4THnManager< tools::histo::h1d >::BeginT().

+ Here is the call 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" 
)
finalprotectedvirtual

Implements G4VH1Manager.

Definition at line 200 of file G4H1ToolsManager.cc.

References AddH1Information(), G4THnManager< tools::histo::h1d >::fState, G4Analysis::GetBinScheme(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and G4THnManager< tools::histo::h1d >::RegisterT().

+ 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" 
)
finalprotectedvirtual

Implements G4VH1Manager.

Definition at line 232 of file G4H1ToolsManager.cc.

References AddH1Information(), G4THnManager< tools::histo::h1d >::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUser, G4AnalysisVerbose::Message(), and G4THnManager< tools::histo::h1d >::RegisterT().

+ Here is the call graph for this function:

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

Definition at line 165 of file G4H1ToolsManager.hh.

References G4THnManager< tools::histo::h1d >::EndConstT().

+ Here is the call graph for this function:

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

Definition at line 157 of file G4H1ToolsManager.hh.

References G4THnManager< tools::histo::h1d >::EndT().

+ Here is the call graph for this function:

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

Implements G4VH1Manager.

Definition at line 331 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::fHnManager, G4THnManager< tools::histo::h1d >::fState, G4AnalysisManagerState::GetIsActivation(), G4THnManager< tools::histo::h1d >::GetTInFunction(), G4AnalysisManagerState::GetVerboseL4(), G4Analysis::kX, 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 524 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::GetTInFunction().

+ Here is the call graph for this function:

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

Implements G4VH1Manager.

Definition at line 357 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::GetTId().

+ Here is the call graph for this function:

G4int G4H1ToolsManager::GetH1Nbins ( G4int  id) const
finalprotectedvirtual

Implements G4VH1Manager.

Definition at line 363 of file G4H1ToolsManager.cc.

References G4Analysis::GetNbins(), G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::kX.

+ Here is the call graph for this function:

G4String G4H1ToolsManager::GetH1Title ( G4int  id) const
finalprotectedvirtual

Implements G4VH1Manager.

Definition at line 428 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::GetTitle().

+ Here is the call graph for this function:

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

Definition at line 168 of file G4H1ToolsManager.hh.

References G4THnManager< tools::histo::h1d >::fTVector.

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

+ Here is the caller graph for this function:

G4double G4H1ToolsManager::GetH1Width ( G4int  id) const
finalprotectedvirtual

Implements G4VH1Manager.

Definition at line 392 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::fHnManager, G4THnManager< tools::histo::h1d >::GetTInFunction(), G4Analysis::GetWidth(), and G4Analysis::kX.

+ Here is the call graph for this function:

G4String G4H1ToolsManager::GetH1XAxisTitle ( G4int  id) const
finalprotectedvirtual

Implements G4VH1Manager.

Definition at line 438 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::fHnManager, G4Analysis::GetAxisTitle(), G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::kX.

+ Here is the call graph for this function:

G4double G4H1ToolsManager::GetH1Xmax ( G4int  id) const
finalprotectedvirtual

Implements G4VH1Manager.

Definition at line 383 of file G4H1ToolsManager.cc.

References G4Analysis::GetMax(), G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::kX.

+ Here is the call graph for this function:

G4double G4H1ToolsManager::GetH1Xmin ( G4int  id) const
finalprotectedvirtual

Implements G4VH1Manager.

Definition at line 372 of file G4H1ToolsManager.cc.

References G4Analysis::GetMin(), G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::kX.

+ Here is the call graph for this function:

G4String G4H1ToolsManager::GetH1YAxisTitle ( G4int  id) const
finalprotectedvirtual

Implements G4VH1Manager.

Definition at line 447 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::fHnManager, G4Analysis::GetAxisTitle(), G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::kY.

+ Here is the call graph for this function:

std::shared_ptr< G4HnManager > G4H1ToolsManager::GetHnManager ( )
inlinefinalprotectedvirtual

Implements G4VH1Manager.

Definition at line 174 of file G4H1ToolsManager.hh.

References G4THnManager< tools::histo::h1d >::fHnManager.

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

Definition at line 171 of file G4H1ToolsManager.hh.

References G4THnManager< tools::histo::h1d >::fHnManager.

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

+ Here is the caller graph for this function:

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

Implements G4VH1Manager.

Definition at line 322 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::GetTInFunction().

+ 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" 
)
finalprotectedvirtual

Implements G4VH1Manager.

Definition at line 260 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::fHnManager, G4THnManager< tools::histo::h1d >::fState, G4Analysis::GetBinScheme(), G4THnManager< tools::histo::h1d >::GetTInFunction(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().

+ 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" 
)
finalprotectedvirtual

Implements G4VH1Manager.

Definition at line 291 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::fHnManager, G4THnManager< tools::histo::h1d >::fState, G4THnManager< tools::histo::h1d >::GetTInFunction(), G4AnalysisManagerState::GetVerboseL4(), kUser, and G4AnalysisVerbose::Message().

+ Here is the call graph for this function:

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

Implements G4VH1Manager.

Definition at line 401 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::SetTitle().

+ Here is the call graph for this function:

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

Implements G4VH1Manager.

Definition at line 410 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::GetTInFunction(), G4Analysis::kX, and G4Analysis::SetAxisTitle().

+ Here is the call graph for this function:

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

Implements G4VH1Manager.

Definition at line 419 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::GetTInFunction(), G4Analysis::kY, and G4Analysis::SetAxisTitle().

+ Here is the call graph for this function:

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

Implements G4VH1Manager.

Definition at line 456 of file G4H1ToolsManager.cc.

References G4THnManager< tools::histo::h1d >::fHnManager, G4THnManager< tools::histo::h1d >::fState, G4THnManager< tools::histo::h1d >::fTVector, G4endl, G4AnalysisManagerState::GetVerboseL3(), and G4AnalysisVerbose::Message().

+ Here is the call graph for this function:

Member Data Documentation

const G4int G4H1ToolsManager::kDimension = 1
staticprivate

Definition at line 149 of file G4H1ToolsManager.hh.

Referenced by AddH1Information().


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