Geant4
10.00.p02
|
#include <G4H2ToolsManager.hh>
Public Member Functions | |
G4H2ToolsManager (const G4AnalysisManagerState &state) | |
virtual | ~G4H2ToolsManager () |
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 |
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) |
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 () |
Protected Member Functions inherited from G4BaseAnalysisManager | |
void | ExceptionForHistograms (const G4String &functionName) const |
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 | |
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 50 of file G4H2ToolsManager.hh.
G4H2ToolsManager::G4H2ToolsManager | ( | const G4AnalysisManagerState & | state | ) |
Definition at line 42 of file G4H2ToolsManager.cc.
|
virtual |
Definition at line 50 of file G4H2ToolsManager.cc.
References fH2Vector.
|
private |
Definition at line 259 of file G4H2ToolsManager.cc.
References G4HnManager::AddH2Information(), G4VH2Manager::fHnManager, G4Analysis::GetFunction(), and G4Analysis::GetUnitValue().
Referenced by CreateH2().
void G4H2ToolsManager::AddH2Vector | ( | const std::vector< tools::histo::h2d * > & | h2Vector | ) |
Definition at line 700 of file G4H2ToolsManager.cc.
References fH2Vector, G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().
Referenced by G4XmlAnalysisManager::WriteH2(), and G4RootAnalysisManager::WriteH2().
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 294 of file G4H2ToolsManager.cc.
References AddH2Information(), G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and RegisterToolsH2().
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 332 of file G4H2ToolsManager.cc.
References AddH2Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsH2().
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 444 of file G4H2ToolsManager.cc.
References G4VH2Manager::fHnManager, G4BaseAnalysisManager::fState, G4HnInformation::fXFcn, G4HnInformation::fXUnit, G4HnInformation::fYFcn, G4HnInformation::fYUnit, G4HnManager::GetActivation(), GetH2InFunction(), G4HnManager::GetHnInformation(), G4AnalysisManagerState::GetIsActivation(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().
tools::histo::h2d * G4H2ToolsManager::GetH2 | ( | G4int | id, |
G4bool | warn = true , |
||
G4bool | onlyIfActive = true |
||
) | const |
Definition at line 741 of file G4H2ToolsManager.cc.
References GetH2InFunction().
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 470 of file G4H2ToolsManager.cc.
References fH2NameIdMap, G4Exception(), and JustWarning.
|
privatevirtual |
Definition at line 232 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 486 of file G4H2ToolsManager.cc.
References GetH2InFunction().
Implements G4VH2Manager.
Definition at line 533 of file G4H2ToolsManager.cc.
References GetH2InFunction().
Implements G4VH2Manager.
Definition at line 619 of file G4H2ToolsManager.cc.
References GetH2InFunction().
|
inline |
Definition at line 176 of file G4H2ToolsManager.hh.
References fH2Vector.
Referenced by G4XmlAnalysisManager::WriteH2(), and G4RootAnalysisManager::WriteH2().
Implements G4VH2Manager.
Definition at line 628 of file G4H2ToolsManager.cc.
References G4Exception(), GetH2InFunction(), and JustWarning.
Implements G4VH2Manager.
Definition at line 506 of file G4H2ToolsManager.cc.
References GetH2InFunction().
Implements G4VH2Manager.
Definition at line 495 of file G4H2ToolsManager.cc.
References GetH2InFunction().
Implements G4VH2Manager.
Definition at line 515 of file G4H2ToolsManager.cc.
References G4Exception(), GetH2InFunction(), and JustWarning.
Implements G4VH2Manager.
Definition at line 647 of file G4H2ToolsManager.cc.
References G4Exception(), GetH2InFunction(), and JustWarning.
Implements G4VH2Manager.
Definition at line 553 of file G4H2ToolsManager.cc.
References GetH2InFunction().
Implements G4VH2Manager.
Definition at line 542 of file G4H2ToolsManager.cc.
References GetH2InFunction().
Implements G4VH2Manager.
Definition at line 562 of file G4H2ToolsManager.cc.
References G4Exception(), GetH2InFunction(), and JustWarning.
Implements G4VH2Manager.
Definition at line 666 of file G4H2ToolsManager.cc.
References G4Exception(), GetH2InFunction(), and JustWarning.
|
inline |
Definition at line 179 of file G4H2ToolsManager.hh.
References G4VH2Manager::fHnManager, and G4HnManager::GetHnVector().
Referenced by G4XmlAnalysisManager::WriteH2(), and G4RootAnalysisManager::WriteH2().
G4bool G4H2ToolsManager::IsEmpty | ( | ) | const |
Definition at line 735 of file G4H2ToolsManager.cc.
References fH2Vector.
Referenced by G4XmlAnalysisManager::CloseFileImpl(), G4RootAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::WriteImpl(), and G4RootAnalysisManager::WriteImpl().
Definition at line 278 of file G4H2ToolsManager.cc.
References G4BaseAnalysisManager::fFirstId, fH2NameIdMap, fH2Vector, G4BaseAnalysisManager::fLockFirstId, and name.
Referenced by CreateH2().
G4bool G4H2ToolsManager::Reset | ( | ) |
Definition at line 719 of file G4H2ToolsManager.cc.
References fH2Vector.
Referenced by G4RootAnalysisManager::Reset(), and G4XmlAnalysisManager::Reset().
Implements G4VH2Manager.
Definition at line 435 of file G4H2ToolsManager.cc.
References GetH2InFunction().
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 365 of file G4H2ToolsManager.cc.
References G4VH2Manager::fHnManager, G4HnInformation::fName, G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), GetH2InFunction(), G4HnManager::GetHnInformation(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 403 of file G4H2ToolsManager.cc.
References G4VH2Manager::fHnManager, G4HnInformation::fName, G4BaseAnalysisManager::fState, GetH2InFunction(), G4HnManager::GetHnInformation(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
Implements G4VH2Manager.
Definition at line 580 of file G4H2ToolsManager.cc.
References GetH2InFunction().
Implements G4VH2Manager.
Definition at line 589 of file G4H2ToolsManager.cc.
References GetH2InFunction().
Implements G4VH2Manager.
Definition at line 599 of file G4H2ToolsManager.cc.
References GetH2InFunction().
Implements G4VH2Manager.
Definition at line 609 of file G4H2ToolsManager.cc.
References GetH2InFunction().
|
protectedvirtual |
Implements G4VH2Manager.
Definition at line 685 of file G4H2ToolsManager.cc.
References G4VH2Manager::fHnManager, and G4HnManager::IsAscii().
Definition at line 172 of file G4H2ToolsManager.hh.
Referenced by GetH2Id(), and RegisterToolsH2().
|
private |
Definition at line 171 of file G4H2ToolsManager.hh.
Referenced by AddH2Vector(), GetH2InFunction(), GetH2Vector(), IsEmpty(), RegisterToolsH2(), Reset(), and ~G4H2ToolsManager().