Geant4
10.01.p02
|
#include <G4H3ToolsManager.hh>
Public Member Functions | |
G4H3ToolsManager (const G4AnalysisManagerState &state) | |
virtual | ~G4H3ToolsManager () |
G4int | AddH3 (const G4String &name, tools::histo::h3d *h3d) |
void | AddH3Vector (const std::vector< tools::histo::h3d * > &h3Vector) |
G4bool | Reset () |
G4bool | IsEmpty () const |
tools::histo::h3d * | GetH3 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const |
std::vector< tools::histo::h3d * > ::iterator | BeginH3 () |
std::vector< tools::histo::h3d * > ::iterator | EndH3 () |
std::vector< tools::histo::h3d * > ::const_iterator | BeginConstH3 () const |
std::vector< tools::histo::h3d * > ::const_iterator | EndConstH3 () const |
const std::vector < tools::histo::h3d * > & | GetH3Vector () 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 | CreateH3 (const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4int nzbins, G4double zmin, G4double zmax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none", const G4String &xbinScheme="linear", const G4String &ybinScheme="linear", const G4String &zbinScheme="linear") |
virtual G4int | CreateH3 (const G4String &name, const G4String &title, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, const std::vector< G4double > &zedges, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none") |
virtual G4bool | SetH3 (G4int id, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4int nzbins, G4double zmin, G4double zmax, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none", const G4String &xbinScheme="linear", const G4String &ybinScheme="linear", const G4String &zbinScheme="linear") |
virtual G4bool | SetH3 (G4int id, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, const std::vector< G4double > &zedges, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none") |
virtual G4bool | ScaleH3 (G4int id, G4double factor) |
virtual G4bool | FillH3 (G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0) |
virtual G4int | GetH3Id (const G4String &name, G4bool warn=true) const |
virtual G4int | GetH3Nxbins (G4int id) const |
virtual G4double | GetH3Xmin (G4int id) const |
virtual G4double | GetH3Xmax (G4int id) const |
virtual G4double | GetH3XWidth (G4int id) const |
virtual G4int | GetH3Nybins (G4int id) const |
virtual G4double | GetH3Ymin (G4int id) const |
virtual G4double | GetH3Ymax (G4int id) const |
virtual G4double | GetH3YWidth (G4int id) const |
virtual G4int | GetH3Nzbins (G4int id) const |
virtual G4double | GetH3Zmin (G4int id) const |
virtual G4double | GetH3Zmax (G4int id) const |
virtual G4double | GetH3ZWidth (G4int id) const |
virtual G4bool | SetH3Title (G4int id, const G4String &title) |
virtual G4bool | SetH3XAxisTitle (G4int id, const G4String &title) |
virtual G4bool | SetH3YAxisTitle (G4int id, const G4String &title) |
virtual G4bool | SetH3ZAxisTitle (G4int id, const G4String &title) |
virtual G4String | GetH3Title (G4int id) const |
virtual G4String | GetH3XAxisTitle (G4int id) const |
virtual G4String | GetH3YAxisTitle (G4int id) const |
virtual G4String | GetH3ZAxisTitle (G4int id) const |
virtual G4bool | WriteOnAscii (std::ofstream &output) |
Protected Member Functions inherited from G4VH3Manager | |
G4VH3Manager (const G4AnalysisManagerState &state) | |
virtual | ~G4VH3Manager () |
Private Member Functions | |
virtual tools::histo::h3d * | GetH3InFunction (G4int id, G4String function, G4bool warn=true, G4bool onlyIfActive=true) const |
void | AddH3Information (const G4String &name, const G4String &xunitName, const G4String &yunitName, const G4String &zunitName, const G4String &xfcnName, const G4String &yfcnName, const G4String &zfcnName, G4BinScheme xbinScheme, G4BinScheme ybinScheme, G4BinScheme zbinScheme) const |
G4int | RegisterToolsH3 (tools::histo::h3d *h3d, const G4String &name) |
Private Attributes | |
G4BaseToolsManager | fBaseToolsManager |
std::vector< tools::histo::h3d * > | fH3Vector |
std::map< G4String, G4int > | fH3NameIdMap |
Additional Inherited Members | |
Protected Attributes inherited from G4VH3Manager | |
G4HnManager * | fHnManager |
Protected Attributes inherited from G4BaseAnalysisManager | |
const G4AnalysisManagerState & | fState |
G4int | fFirstId |
G4bool | fLockFirstId |
Definition at line 51 of file G4H3ToolsManager.hh.
G4H3ToolsManager::G4H3ToolsManager | ( | const G4AnalysisManagerState & | state | ) |
Definition at line 42 of file G4H3ToolsManager.cc.
|
virtual |
Definition at line 51 of file G4H3ToolsManager.cc.
References fH3Vector.
Definition at line 812 of file G4H3ToolsManager.cc.
References AddH3Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kLinearBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsH3().
Referenced by G4CsvAnalysisReader::ReadH3Impl(), G4XmlAnalysisReader::ReadH3Impl(), and G4RootAnalysisReader::ReadH3Impl().
|
private |
Definition at line 335 of file G4H3ToolsManager.cc.
References G4HnManager::AddH3Information(), G4VH3Manager::fHnManager, G4Analysis::GetFunction(), and G4Analysis::GetUnitValue().
Referenced by AddH3(), and CreateH3().
void G4H3ToolsManager::AddH3Vector | ( | const std::vector< tools::histo::h3d * > & | h3Vector | ) |
Definition at line 836 of file G4H3ToolsManager.cc.
References fH3Vector, G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().
Referenced by G4RootAnalysisManager::WriteH3(), G4XmlAnalysisManager::WriteH3(), and G4CsvAnalysisManager::WriteH3().
|
inline |
Definition at line 215 of file G4H3ToolsManager.hh.
References fH3Vector.
|
inline |
Definition at line 208 of file G4H3ToolsManager.hh.
References fH3Vector.
|
protectedvirtual |
Implements G4VH3Manager.
Definition at line 376 of file G4H3ToolsManager.cc.
References AddH3Information(), G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and RegisterToolsH3().
|
protectedvirtual |
Implements G4VH3Manager.
Definition at line 424 of file G4H3ToolsManager.cc.
References AddH3Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsH3().
|
inline |
Definition at line 219 of file G4H3ToolsManager.hh.
References fH3Vector.
|
inline |
Definition at line 211 of file G4H3ToolsManager.hh.
References fH3Vector.
|
protectedvirtual |
Implements G4VH3Manager.
Definition at line 556 of file G4H3ToolsManager.cc.
References G4HnDimensionInformation::fFcn, G4VH3Manager::fHnManager, G4BaseAnalysisManager::fState, G4HnDimensionInformation::fUnit, G4HnManager::GetActivation(), GetH3InFunction(), G4HnManager::GetHnDimensionInformation(), G4AnalysisManagerState::GetIsActivation(), G4AnalysisManagerState::GetVerboseL4(), G4HnInformation::kX, G4HnInformation::kY, G4HnInformation::kZ, and G4AnalysisVerbose::Message().
tools::histo::h3d * G4H3ToolsManager::GetH3 | ( | G4int | id, |
G4bool | warn = true , |
||
G4bool | onlyIfActive = true |
||
) | const |
Definition at line 877 of file G4H3ToolsManager.cc.
References GetH3InFunction().
|
protectedvirtual |
Implements G4VH3Manager.
Definition at line 595 of file G4H3ToolsManager.cc.
References fH3NameIdMap, G4Exception(), JustWarning, and G4Analysis::kInvalidId.
|
privatevirtual |
Definition at line 308 of file G4H3ToolsManager.cc.
References G4BaseAnalysisManager::fFirstId, fH3Vector, G4VH3Manager::fHnManager, G4BaseAnalysisManager::fState, G4Exception(), G4HnManager::GetActivation(), G4AnalysisManagerState::GetIsActivation(), and JustWarning.
Referenced by FillH3(), GetH3(), GetH3Nxbins(), GetH3Nybins(), GetH3Nzbins(), GetH3Title(), GetH3XAxisTitle(), GetH3Xmax(), GetH3Xmin(), GetH3XWidth(), GetH3YAxisTitle(), GetH3Ymax(), GetH3Ymin(), GetH3YWidth(), GetH3ZAxisTitle(), GetH3Zmax(), GetH3Zmin(), GetH3ZWidth(), ScaleH3(), SetH3(), SetH3Title(), SetH3XAxisTitle(), SetH3YAxisTitle(), and SetH3ZAxisTitle().
Implements G4VH3Manager.
Definition at line 611 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::GetNbins(), and G4BaseToolsManager::kX.
Implements G4VH3Manager.
Definition at line 649 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::GetNbins(), and G4BaseToolsManager::kY.
Implements G4VH3Manager.
Definition at line 687 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::GetNbins(), and G4BaseToolsManager::kZ.
Implements G4VH3Manager.
Definition at line 761 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), and G4BaseToolsManager::GetTitle().
|
inline |
Definition at line 222 of file G4H3ToolsManager.hh.
References fH3Vector.
Referenced by G4RootAnalysisManager::WriteH3(), G4XmlAnalysisManager::WriteH3(), and G4CsvAnalysisManager::WriteH3().
Implements G4VH3Manager.
Definition at line 770 of file G4H3ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetH3InFunction(), and G4BaseToolsManager::kX.
Implements G4VH3Manager.
Definition at line 631 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::GetMax(), and G4BaseToolsManager::kX.
Implements G4VH3Manager.
Definition at line 620 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::GetMin(), and G4BaseToolsManager::kX.
Implements G4VH3Manager.
Definition at line 640 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::GetWidth(), and G4BaseToolsManager::kX.
Implements G4VH3Manager.
Definition at line 779 of file G4H3ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetH3InFunction(), and G4BaseToolsManager::kY.
Implements G4VH3Manager.
Definition at line 669 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::GetMax(), and G4BaseToolsManager::kY.
Implements G4VH3Manager.
Definition at line 658 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::GetMin(), and G4BaseToolsManager::kY.
Implements G4VH3Manager.
Definition at line 678 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::GetWidth(), and G4BaseToolsManager::kY.
Implements G4VH3Manager.
Definition at line 788 of file G4H3ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetH3InFunction(), and G4BaseToolsManager::kZ.
Implements G4VH3Manager.
Definition at line 707 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::GetMax(), and G4BaseToolsManager::kZ.
Implements G4VH3Manager.
Definition at line 696 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::GetMin(), and G4BaseToolsManager::kZ.
Implements G4VH3Manager.
Definition at line 716 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::GetWidth(), and G4BaseToolsManager::kZ.
|
inline |
Definition at line 225 of file G4H3ToolsManager.hh.
References G4VH3Manager::fHnManager, and G4HnManager::GetHnVector().
Referenced by G4RootAnalysisManager::WriteH3(), G4XmlAnalysisManager::WriteH3(), and G4CsvAnalysisManager::WriteH3().
G4bool G4H3ToolsManager::IsEmpty | ( | ) | const |
Definition at line 871 of file G4H3ToolsManager.cc.
References fH3Vector.
Referenced by G4RootAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::WriteImpl(), G4RootAnalysisManager::WriteImpl(), and G4CsvAnalysisManager::WriteImpl().
Definition at line 360 of file G4H3ToolsManager.cc.
References G4BaseAnalysisManager::fFirstId, fH3NameIdMap, fH3Vector, G4BaseAnalysisManager::fLockFirstId, and name.
Referenced by AddH3(), and CreateH3().
G4bool G4H3ToolsManager::Reset | ( | ) |
Definition at line 855 of file G4H3ToolsManager.cc.
References fH3Vector.
Referenced by G4RootAnalysisReader::Reset(), G4RootAnalysisManager::Reset(), G4XmlAnalysisManager::Reset(), and G4CsvAnalysisManager::Reset().
Implements G4VH3Manager.
Definition at line 547 of file G4H3ToolsManager.cc.
References GetH3InFunction().
|
protectedvirtual |
Implements G4VH3Manager.
Definition at line 463 of file G4H3ToolsManager.cc.
References G4VH3Manager::fHnManager, G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), GetH3InFunction(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
|
protectedvirtual |
Implements G4VH3Manager.
Definition at line 509 of file G4H3ToolsManager.cc.
References G4VH3Manager::fHnManager, G4BaseAnalysisManager::fState, GetH3InFunction(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
Implements G4VH3Manager.
Definition at line 725 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), and G4BaseToolsManager::SetTitle().
Implements G4VH3Manager.
Definition at line 734 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::kX, and G4BaseToolsManager::SetAxisTitle().
Implements G4VH3Manager.
Definition at line 743 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::kY, and G4BaseToolsManager::SetAxisTitle().
Implements G4VH3Manager.
Definition at line 752 of file G4H3ToolsManager.cc.
References fBaseToolsManager, GetH3InFunction(), G4BaseToolsManager::kZ, and G4BaseToolsManager::SetAxisTitle().
|
protectedvirtual |
Implements G4VH3Manager.
Definition at line 797 of file G4H3ToolsManager.cc.
References G4VH3Manager::fHnManager, and G4HnManager::IsAscii().
|
private |
Definition at line 202 of file G4H3ToolsManager.hh.
Referenced by GetH3Nxbins(), GetH3Nybins(), GetH3Nzbins(), GetH3Title(), GetH3XAxisTitle(), GetH3Xmax(), GetH3Xmin(), GetH3XWidth(), GetH3YAxisTitle(), GetH3Ymax(), GetH3Ymin(), GetH3YWidth(), GetH3ZAxisTitle(), GetH3Zmax(), GetH3Zmin(), GetH3ZWidth(), SetH3Title(), SetH3XAxisTitle(), SetH3YAxisTitle(), and SetH3ZAxisTitle().
Definition at line 204 of file G4H3ToolsManager.hh.
Referenced by GetH3Id(), and RegisterToolsH3().
|
private |
Definition at line 203 of file G4H3ToolsManager.hh.
Referenced by AddH3Vector(), BeginConstH3(), BeginH3(), EndConstH3(), EndH3(), GetH3InFunction(), GetH3Vector(), IsEmpty(), RegisterToolsH3(), Reset(), and ~G4H3ToolsManager().