Geant4
10.01.p03
|
#include <G4H2ToolsManager.hh>
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) |
G4bool | Reset () |
G4bool | IsEmpty () const |
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 G4BaseAnalysisManager | |
G4BaseAnalysisManager (const G4AnalysisManagerState &state) | |
virtual | ~G4BaseAnalysisManager () |
G4bool | SetFirstId (G4int firstId) |
G4int | GetFirstId () 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") |
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") |
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") |
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") |
virtual G4bool | ScaleH2 (G4int id, G4double factor) |
virtual G4bool | FillH2 (G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0) |
virtual G4int | GetH2Id (const G4String &name, G4bool warn=true) const |
virtual G4int | GetH2Nxbins (G4int id) const |
virtual G4double | GetH2Xmin (G4int id) const |
virtual G4double | GetH2Xmax (G4int id) const |
virtual G4double | GetH2XWidth (G4int id) const |
virtual G4int | GetH2Nybins (G4int id) const |
virtual G4double | GetH2Ymin (G4int id) const |
virtual G4double | GetH2Ymax (G4int id) const |
virtual G4double | GetH2YWidth (G4int id) const |
virtual G4bool | SetH2Title (G4int id, const G4String &title) |
virtual G4bool | SetH2XAxisTitle (G4int id, const G4String &title) |
virtual G4bool | SetH2YAxisTitle (G4int id, const G4String &title) |
virtual G4bool | SetH2ZAxisTitle (G4int id, const G4String &title) |
virtual G4String | GetH2Title (G4int id) const |
virtual G4String | GetH2XAxisTitle (G4int id) const |
virtual G4String | GetH2YAxisTitle (G4int id) const |
virtual G4String | GetH2ZAxisTitle (G4int id) const |
virtual G4bool | WriteOnAscii (std::ofstream &output) |
Protected Member Functions inherited from G4VH2Manager | |
G4VH2Manager (const G4AnalysisManagerState &state) | |
virtual | ~G4VH2Manager () |
Private Member Functions | |
virtual tools::histo::h2d * | GetH2InFunction (G4int id, G4String function, G4bool warn=true, G4bool onlyIfActive=true) const |
void | AddH2Information (const G4String &name, const G4String &xunitName, const G4String &yunitName, const G4String &xfcnName, const G4String &yfcnName, G4BinScheme xbinScheme, G4BinScheme ybinScheme) const |
G4int | RegisterToolsH2 (tools::histo::h2d *h2d, const G4String &name) |
Private Attributes | |
G4BaseToolsManager | fBaseToolsManager |
std::vector< tools::histo::h2d * > | fH2Vector |
std::map< G4String, G4int > | fH2NameIdMap |
Additional Inherited Members | |
Protected Attributes inherited from G4VH2Manager | |
G4HnManager * | fHnManager |
Protected Attributes inherited from G4BaseAnalysisManager | |
const G4AnalysisManagerState & | fState |
G4int | fFirstId |
G4bool | fLockFirstId |
Definition at line 51 of file G4H2ToolsManager.hh.
G4H2ToolsManager::G4H2ToolsManager | ( | const G4AnalysisManagerState & | state | ) |
Definition at line 42 of file G4H2ToolsManager.cc.
|
virtual |
Definition at line 51 of file G4H2ToolsManager.cc.
References fH2Vector.
Definition at line 682 of file G4H2ToolsManager.cc.
References AddH2Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kLinearBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsH2().
Referenced by G4CsvAnalysisReader::ReadH2Impl(), G4XmlAnalysisReader::ReadH2Impl(), and G4RootAnalysisReader::ReadH2Impl().
|
private |
Definition at line 282 of file G4H2ToolsManager.cc.
References G4HnManager::AddH2Information(), G4VH2Manager::fHnManager, G4Analysis::GetFunction(), and G4Analysis::GetUnitValue().
Referenced by AddH2(), and CreateH2().
void G4H2ToolsManager::AddH2Vector | ( | const std::vector< tools::histo::h2d * > & | h2Vector | ) |
Definition at line 706 of file G4H2ToolsManager.cc.
References fH2Vector, G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().
Referenced by G4RootAnalysisManager::WriteH2(), G4XmlAnalysisManager::WriteH2(), and G4CsvAnalysisManager::WriteH2().
|
inline |
Definition at line 193 of file G4H2ToolsManager.hh.
References fH2Vector.
|
inline |
Definition at line 186 of file G4H2ToolsManager.hh.
References fH2Vector.
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 317 of file G4H2ToolsManager.cc.
References AddH2Information(), G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and RegisterToolsH2().
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 356 of file G4H2ToolsManager.cc.
References AddH2Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsH2().
|
inline |
Definition at line 197 of file G4H2ToolsManager.hh.
References fH2Vector.
|
inline |
Definition at line 189 of file G4H2ToolsManager.hh.
References fH2Vector.
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 469 of file G4H2ToolsManager.cc.
References G4HnDimensionInformation::fFcn, G4VH2Manager::fHnManager, G4BaseAnalysisManager::fState, G4HnDimensionInformation::fUnit, G4HnManager::GetActivation(), GetH2InFunction(), G4HnManager::GetHnDimensionInformation(), G4AnalysisManagerState::GetIsActivation(), G4AnalysisManagerState::GetVerboseL4(), G4HnInformation::kX, G4HnInformation::kY, and G4AnalysisVerbose::Message().
tools::histo::h2d * G4H2ToolsManager::GetH2 | ( | G4int | id, |
G4bool | warn = true , |
||
G4bool | onlyIfActive = true |
||
) | const |
Definition at line 747 of file G4H2ToolsManager.cc.
References GetH2InFunction().
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 503 of file G4H2ToolsManager.cc.
References fH2NameIdMap, G4Exception(), JustWarning, and G4Analysis::kInvalidId.
|
privatevirtual |
Definition at line 255 of file G4H2ToolsManager.cc.
References G4BaseAnalysisManager::fFirstId, fH2Vector, G4VH2Manager::fHnManager, G4BaseAnalysisManager::fState, G4Exception(), G4HnManager::GetActivation(), G4AnalysisManagerState::GetIsActivation(), and JustWarning.
Referenced by FillH2(), GetH2(), GetH2Nxbins(), GetH2Nybins(), GetH2Title(), GetH2XAxisTitle(), GetH2Xmax(), GetH2Xmin(), GetH2XWidth(), GetH2YAxisTitle(), GetH2Ymax(), GetH2Ymin(), GetH2YWidth(), GetH2ZAxisTitle(), ScaleH2(), SetH2(), SetH2Title(), SetH2XAxisTitle(), SetH2YAxisTitle(), and SetH2ZAxisTitle().
Implements G4VH2Manager.
Definition at line 519 of file G4H2ToolsManager.cc.
References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetNbins(), and G4BaseToolsManager::kX.
Implements G4VH2Manager.
Definition at line 557 of file G4H2ToolsManager.cc.
References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetNbins(), and G4BaseToolsManager::kY.
Implements G4VH2Manager.
Definition at line 631 of file G4H2ToolsManager.cc.
References fBaseToolsManager, GetH2InFunction(), and G4BaseToolsManager::GetTitle().
|
inline |
Definition at line 200 of file G4H2ToolsManager.hh.
References fH2Vector.
Referenced by G4RootAnalysisManager::WriteH2(), G4XmlAnalysisManager::WriteH2(), and G4CsvAnalysisManager::WriteH2().
Implements G4VH2Manager.
Definition at line 640 of file G4H2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetH2InFunction(), and G4BaseToolsManager::kX.
Implements G4VH2Manager.
Definition at line 539 of file G4H2ToolsManager.cc.
References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetMax(), and G4BaseToolsManager::kX.
Implements G4VH2Manager.
Definition at line 528 of file G4H2ToolsManager.cc.
References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetMin(), and G4BaseToolsManager::kX.
Implements G4VH2Manager.
Definition at line 548 of file G4H2ToolsManager.cc.
References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetWidth(), and G4BaseToolsManager::kX.
Implements G4VH2Manager.
Definition at line 649 of file G4H2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetH2InFunction(), and G4BaseToolsManager::kY.
Implements G4VH2Manager.
Definition at line 577 of file G4H2ToolsManager.cc.
References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetMax(), and G4BaseToolsManager::kY.
Implements G4VH2Manager.
Definition at line 566 of file G4H2ToolsManager.cc.
References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetMin(), and G4BaseToolsManager::kY.
Implements G4VH2Manager.
Definition at line 586 of file G4H2ToolsManager.cc.
References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::GetWidth(), and G4BaseToolsManager::kY.
Implements G4VH2Manager.
Definition at line 658 of file G4H2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetH2InFunction(), and G4BaseToolsManager::kZ.
|
inline |
Definition at line 203 of file G4H2ToolsManager.hh.
References G4VH2Manager::fHnManager, and G4HnManager::GetHnVector().
Referenced by G4RootAnalysisManager::WriteH2(), G4XmlAnalysisManager::WriteH2(), and G4CsvAnalysisManager::WriteH2().
G4bool G4H2ToolsManager::IsEmpty | ( | ) | const |
Definition at line 741 of file G4H2ToolsManager.cc.
References fH2Vector.
Referenced by G4RootAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::WriteImpl(), G4RootAnalysisManager::WriteImpl(), and G4CsvAnalysisManager::WriteImpl().
Definition at line 301 of file G4H2ToolsManager.cc.
References G4BaseAnalysisManager::fFirstId, fH2NameIdMap, fH2Vector, G4BaseAnalysisManager::fLockFirstId, and name.
Referenced by AddH2(), and CreateH2().
G4bool G4H2ToolsManager::Reset | ( | ) |
Definition at line 725 of file G4H2ToolsManager.cc.
References fH2Vector.
Referenced by G4CsvAnalysisReader::Reset(), G4RootAnalysisReader::Reset(), G4XmlAnalysisReader::Reset(), G4RootAnalysisManager::Reset(), G4XmlAnalysisManager::Reset(), and G4CsvAnalysisManager::Reset().
Implements G4VH2Manager.
Definition at line 460 of file G4H2ToolsManager.cc.
References GetH2InFunction().
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 390 of file G4H2ToolsManager.cc.
References G4VH2Manager::fHnManager, G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), GetH2InFunction(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 428 of file G4H2ToolsManager.cc.
References G4VH2Manager::fHnManager, G4BaseAnalysisManager::fState, GetH2InFunction(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
Implements G4VH2Manager.
Definition at line 595 of file G4H2ToolsManager.cc.
References fBaseToolsManager, GetH2InFunction(), and G4BaseToolsManager::SetTitle().
Implements G4VH2Manager.
Definition at line 604 of file G4H2ToolsManager.cc.
References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::kX, and G4BaseToolsManager::SetAxisTitle().
Implements G4VH2Manager.
Definition at line 613 of file G4H2ToolsManager.cc.
References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::kY, and G4BaseToolsManager::SetAxisTitle().
Implements G4VH2Manager.
Definition at line 622 of file G4H2ToolsManager.cc.
References fBaseToolsManager, GetH2InFunction(), G4BaseToolsManager::kZ, and G4BaseToolsManager::SetAxisTitle().
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 667 of file G4H2ToolsManager.cc.
References G4VH2Manager::fHnManager, and G4HnManager::IsAscii().
|
private |
Definition at line 180 of file G4H2ToolsManager.hh.
Referenced by GetH2Nxbins(), GetH2Nybins(), GetH2Title(), GetH2XAxisTitle(), GetH2Xmax(), GetH2Xmin(), GetH2XWidth(), GetH2YAxisTitle(), GetH2Ymax(), GetH2Ymin(), GetH2YWidth(), GetH2ZAxisTitle(), SetH2Title(), SetH2XAxisTitle(), SetH2YAxisTitle(), and SetH2ZAxisTitle().
Definition at line 182 of file G4H2ToolsManager.hh.
Referenced by GetH2Id(), and RegisterToolsH2().
|
private |
Definition at line 181 of file G4H2ToolsManager.hh.
Referenced by AddH2Vector(), BeginConstH2(), BeginH2(), EndConstH2(), EndH2(), GetH2InFunction(), GetH2Vector(), IsEmpty(), RegisterToolsH2(), Reset(), and ~G4H2ToolsManager().