Geant4  10.02.p02
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)
 
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 G4VH2Manager
 G4VH2Manager ()
 
virtual ~G4VH2Manager ()
 
 G4VH2Manager (const G4VH2Manager &rhs)=delete
 
G4VH2Manageroperator= (const G4VH2Manager &rhs)=delete
 
- Public Member Functions inherited from G4THnManager< tools::histo::h2d >
 G4THnManager (const G4AnalysisManagerState &state, const G4String &hnType)
 
virtual ~G4THnManager ()
 
G4bool Reset ()
 
G4bool IsEmpty () 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") final
 
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") final
 
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") final
 
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") final
 
virtual G4bool ScaleH2 (G4int id, G4double factor) final
 
virtual G4bool FillH2 (G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0) final
 
virtual G4int GetH2Id (const G4String &name, G4bool warn=true) const final
 
virtual G4int GetH2Nxbins (G4int id) const final
 
virtual G4double GetH2Xmin (G4int id) const final
 
virtual G4double GetH2Xmax (G4int id) const final
 
virtual G4double GetH2XWidth (G4int id) const final
 
virtual G4int GetH2Nybins (G4int id) const final
 
virtual G4double GetH2Ymin (G4int id) const final
 
virtual G4double GetH2Ymax (G4int id) const final
 
virtual G4double GetH2YWidth (G4int id) const final
 
virtual G4bool SetH2Title (G4int id, const G4String &title) final
 
virtual G4bool SetH2XAxisTitle (G4int id, const G4String &title) final
 
virtual G4bool SetH2YAxisTitle (G4int id, const G4String &title) final
 
virtual G4bool SetH2ZAxisTitle (G4int id, const G4String &title) final
 
virtual G4String GetH2Title (G4int id) const final
 
virtual G4String GetH2XAxisTitle (G4int id) const final
 
virtual G4String GetH2YAxisTitle (G4int id) const final
 
virtual G4String GetH2ZAxisTitle (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::h2d >
void AddTVector (const std::vector< tools::histo::h2d * > &tVector)
 
std::vector< tools::histo::h2d * >
::iterator 
BeginT ()
 
std::vector< tools::histo::h2d * >
::iterator 
EndT ()
 
std::vector< tools::histo::h2d * >
::const_iterator 
BeginConstT () const
 
std::vector< tools::histo::h2d * >
::const_iterator 
EndConstT () const
 
tools::histo::h2d * GetTInFunction (G4int id, G4String functionName, G4bool warn=true, G4bool onlyIfActive=true) const
 
G4int RegisterT (tools::histo::h2d *t, const G4String &name)
 
G4int GetTId (const G4String &name, G4bool warn=true) const
 

Private Member Functions

void AddH2Information (const G4String &name, const G4String &xunitName, const G4String &yunitName, const G4String &xfcnName, const G4String &yfcnName, G4BinScheme xbinScheme, G4BinScheme ybinScheme) const
 

Static Private Attributes

static const G4int kDimension = 2
 

Additional Inherited Members

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

Detailed Description

Definition at line 52 of file G4H2ToolsManager.hh.

Constructor & Destructor Documentation

G4H2ToolsManager::G4H2ToolsManager ( const G4AnalysisManagerState state)
explicit

Definition at line 45 of file G4H2ToolsManager.cc.

G4H2ToolsManager::~G4H2ToolsManager ( )
virtual

Definition at line 51 of file G4H2ToolsManager.cc.

Member Function Documentation

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

Definition at line 605 of file G4H2ToolsManager.cc.

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

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

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

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

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

Referenced by G4XmlAnalysisManager::WriteH2(), G4CsvAnalysisManager::WriteH2(), and G4RootAnalysisManager::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 185 of file G4H2ToolsManager.hh.

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

+ Here is the call graph for this function:

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

Definition at line 178 of file G4H2ToolsManager.hh.

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

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

Implements G4VH2Manager.

Definition at line 250 of file G4H2ToolsManager.cc.

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

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

Implements G4VH2Manager.

Definition at line 289 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Definition at line 189 of file G4H2ToolsManager.hh.

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

+ Here is the call graph for this function:

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

Definition at line 181 of file G4H2ToolsManager.hh.

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

+ Here is the call graph for this function:

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

Definition at line 635 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VH2Manager.

Definition at line 436 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

G4int G4H2ToolsManager::GetH2Nxbins ( G4int  id) const
finalprotectedvirtual

Implements G4VH2Manager.

Definition at line 442 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

G4int G4H2ToolsManager::GetH2Nybins ( G4int  id) const
finalprotectedvirtual

Implements G4VH2Manager.

Definition at line 480 of file G4H2ToolsManager.cc.

References G4Analysis::GetNbins(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kY.

+ Here is the call graph for this function:

G4String G4H2ToolsManager::GetH2Title ( G4int  id) const
finalprotectedvirtual

Implements G4VH2Manager.

Definition at line 554 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Definition at line 192 of file G4H2ToolsManager.hh.

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

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

+ Here is the caller graph for this function:

G4String G4H2ToolsManager::GetH2XAxisTitle ( G4int  id) const
finalprotectedvirtual

Implements G4VH2Manager.

Definition at line 563 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2Xmax ( G4int  id) const
finalprotectedvirtual

Implements G4VH2Manager.

Definition at line 462 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2Xmin ( G4int  id) const
finalprotectedvirtual

Implements G4VH2Manager.

Definition at line 451 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2XWidth ( G4int  id) const
finalprotectedvirtual

Implements G4VH2Manager.

Definition at line 471 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

G4String G4H2ToolsManager::GetH2YAxisTitle ( G4int  id) const
finalprotectedvirtual

Implements G4VH2Manager.

Definition at line 572 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2Ymax ( G4int  id) const
finalprotectedvirtual

Implements G4VH2Manager.

Definition at line 500 of file G4H2ToolsManager.cc.

References G4Analysis::GetMax(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kY.

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2Ymin ( G4int  id) const
finalprotectedvirtual

Implements G4VH2Manager.

Definition at line 489 of file G4H2ToolsManager.cc.

References G4Analysis::GetMin(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kY.

+ Here is the call graph for this function:

G4double G4H2ToolsManager::GetH2YWidth ( G4int  id) const
finalprotectedvirtual

Implements G4VH2Manager.

Definition at line 509 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

G4String G4H2ToolsManager::GetH2ZAxisTitle ( G4int  id) const
finalprotectedvirtual

Implements G4VH2Manager.

Definition at line 581 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VH2Manager.

Definition at line 198 of file G4H2ToolsManager.hh.

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

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

Definition at line 195 of file G4H2ToolsManager.hh.

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

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

+ Here is the caller graph for this function:

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

Implements G4VH2Manager.

Definition at line 393 of file G4H2ToolsManager.cc.

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

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

Implements G4VH2Manager.

Definition at line 323 of file G4H2ToolsManager.cc.

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

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

Implements G4VH2Manager.

Definition at line 361 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VH2Manager.

Definition at line 518 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VH2Manager.

Definition at line 527 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VH2Manager.

Definition at line 536 of file G4H2ToolsManager.cc.

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

+ Here is the call graph for this function:

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

Implements G4VH2Manager.

Definition at line 545 of file G4H2ToolsManager.cc.

References G4THnManager< tools::histo::h2d >::GetTInFunction(), G4Analysis::kZ, and G4Analysis::SetAxisTitle().

+ Here is the call graph for this function:

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

Implements G4VH2Manager.

Definition at line 590 of file G4H2ToolsManager.cc.

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

Member Data Documentation

const G4int G4H2ToolsManager::kDimension = 2
staticprivate

Definition at line 174 of file G4H2ToolsManager.hh.


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