Geant4
10.00.p01
|
#include <G4H1ToolsManager.hh>
Public Member Functions | |
G4H1ToolsManager (const G4AnalysisManagerState &state) | |
virtual | ~G4H1ToolsManager () |
void | AddH1Vector (const std::vector< tools::histo::h1d * > &h1Vector) |
G4bool | Reset () |
G4bool | IsEmpty () const |
tools::histo::h1d * | GetH1 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const |
const std::vector < tools::histo::h1d * > & | GetH1Vector () 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 | 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") |
virtual G4int | CreateH1 (const G4String &name, const G4String &title, const std::vector< G4double > &edges, const G4String &unitName="none", const G4String &fcnName="none") |
virtual G4bool | SetH1 (G4int id, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear") |
virtual G4bool | SetH1 (G4int id, const std::vector< G4double > &edges, const G4String &unitName="none", const G4String &fcnName="none") |
virtual G4bool | ScaleH1 (G4int id, G4double factor) |
virtual G4bool | FillH1 (G4int id, G4double value, G4double weight=1.0) |
virtual G4int | GetH1Id (const G4String &name, G4bool warn=true) const |
virtual G4int | GetH1Nbins (G4int id) const |
virtual G4double | GetH1Xmin (G4int id) const |
virtual G4double | GetH1Xmax (G4int id) const |
virtual G4double | GetH1Width (G4int id) const |
virtual G4bool | SetH1Title (G4int id, const G4String &title) |
virtual G4bool | SetH1XAxisTitle (G4int id, const G4String &title) |
virtual G4bool | SetH1YAxisTitle (G4int id, const G4String &title) |
virtual G4String | GetH1Title (G4int id) const |
virtual G4String | GetH1XAxisTitle (G4int id) const |
virtual G4String | GetH1YAxisTitle (G4int id) const |
virtual G4bool | WriteOnAscii (std::ofstream &output) |
Protected Member Functions inherited from G4VH1Manager | |
G4VH1Manager (const G4AnalysisManagerState &state) | |
virtual | ~G4VH1Manager () |
Protected Member Functions inherited from G4BaseAnalysisManager | |
void | ExceptionForHistograms (const G4String &functionName) const |
Private Member Functions | |
virtual tools::histo::h1d * | GetH1InFunction (G4int id, G4String functionName, G4bool warn=true, G4bool onlyIfActive=true) const |
void | AddH1Information (const G4String &name, const G4String &unitName, const G4String &fcnName, G4BinScheme binScheme) const |
G4int | RegisterToolsH1 (tools::histo::h1d *h1d, const G4String &name) |
Private Attributes | |
std::vector< tools::histo::h1d * > | fH1Vector |
std::map< G4String, G4int > | fH1NameIdMap |
Additional Inherited Members | |
Protected Attributes inherited from G4VH1Manager | |
G4HnManager * | fHnManager |
Protected Attributes inherited from G4BaseAnalysisManager | |
const G4AnalysisManagerState & | fState |
G4int | fFirstId |
G4bool | fLockFirstId |
Definition at line 51 of file G4H1ToolsManager.hh.
G4H1ToolsManager::G4H1ToolsManager | ( | const G4AnalysisManagerState & | state | ) |
Definition at line 46 of file G4H1ToolsManager.cc.
|
virtual |
Definition at line 54 of file G4H1ToolsManager.cc.
References fH1Vector.
|
private |
Definition at line 217 of file G4H1ToolsManager.cc.
References G4HnManager::AddH1Information(), G4VH1Manager::fHnManager, G4Analysis::GetFunction(), and G4Analysis::GetUnitValue().
Referenced by CreateH1().
void G4H1ToolsManager::AddH1Vector | ( | const std::vector< tools::histo::h1d * > & | h1Vector | ) |
Definition at line 577 of file G4H1ToolsManager.cc.
References fH1Vector, G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().
Referenced by G4XmlAnalysisManager::WriteH1(), and G4RootAnalysisManager::WriteH1().
|
protectedvirtual |
Implements G4VH1Manager.
Definition at line 244 of file G4H1ToolsManager.cc.
References AddH1Information(), G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and RegisterToolsH1().
|
protectedvirtual |
Implements G4VH1Manager.
Definition at line 274 of file G4H1ToolsManager.cc.
References AddH1Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsH1().
|
protectedvirtual |
Implements G4VH1Manager.
Definition at line 373 of file G4H1ToolsManager.cc.
References G4VH1Manager::fHnManager, G4BaseAnalysisManager::fState, G4HnInformation::fXFcn, G4HnInformation::fXUnit, G4HnManager::GetActivation(), GetH1InFunction(), G4HnManager::GetHnInformation(), G4AnalysisManagerState::GetIsActivation(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().
tools::histo::h1d * G4H1ToolsManager::GetH1 | ( | G4int | id, |
G4bool | warn = true , |
||
G4bool | onlyIfActive = true |
||
) | const |
Definition at line 618 of file G4H1ToolsManager.cc.
References GetH1InFunction().
|
protectedvirtual |
Implements G4VH1Manager.
Definition at line 396 of file G4H1ToolsManager.cc.
References fH1NameIdMap, G4Exception(), and JustWarning.
|
privatevirtual |
Definition at line 192 of file G4H1ToolsManager.cc.
References G4BaseAnalysisManager::fFirstId, fH1Vector, G4VH1Manager::fHnManager, G4BaseAnalysisManager::fState, G4Exception(), G4HnManager::GetActivation(), G4AnalysisManagerState::GetIsActivation(), and JustWarning.
Referenced by FillH1(), GetH1(), GetH1Nbins(), GetH1Title(), GetH1Width(), GetH1XAxisTitle(), GetH1Xmax(), GetH1Xmin(), GetH1YAxisTitle(), ScaleH1(), SetH1(), SetH1Title(), SetH1XAxisTitle(), and SetH1YAxisTitle().
Implements G4VH1Manager.
Definition at line 412 of file G4H1ToolsManager.cc.
References GetH1InFunction().
Implements G4VH1Manager.
Definition at line 492 of file G4H1ToolsManager.cc.
References GetH1InFunction().
|
inline |
Definition at line 153 of file G4H1ToolsManager.hh.
References fH1Vector.
Referenced by G4XmlAnalysisManager::WriteH1(), and G4RootAnalysisManager::WriteH1().
Implements G4VH1Manager.
Definition at line 443 of file G4H1ToolsManager.cc.
References G4VH1Manager::fHnManager, G4HnInformation::fXFcn, G4HnInformation::fXUnit, G4Exception(), GetH1InFunction(), G4HnManager::GetHnInformation(), and JustWarning.
Implements G4VH1Manager.
Definition at line 502 of file G4H1ToolsManager.cc.
References G4Exception(), GetH1InFunction(), and JustWarning.
Implements G4VH1Manager.
Definition at line 433 of file G4H1ToolsManager.cc.
References G4VH1Manager::fHnManager, G4HnInformation::fXFcn, G4HnInformation::fXUnit, GetH1InFunction(), and G4HnManager::GetHnInformation().
Implements G4VH1Manager.
Definition at line 421 of file G4H1ToolsManager.cc.
References G4VH1Manager::fHnManager, G4HnInformation::fXFcn, G4HnInformation::fXUnit, GetH1InFunction(), and G4HnManager::GetHnInformation().
Implements G4VH1Manager.
Definition at line 521 of file G4H1ToolsManager.cc.
References G4Exception(), GetH1InFunction(), and JustWarning.
|
inline |
Definition at line 156 of file G4H1ToolsManager.hh.
References G4VH1Manager::fHnManager, and G4HnManager::GetHnVector().
Referenced by G4XmlAnalysisManager::WriteH1(), and G4RootAnalysisManager::WriteH1().
G4bool G4H1ToolsManager::IsEmpty | ( | ) | const |
Definition at line 612 of file G4H1ToolsManager.cc.
References fH1Vector.
Referenced by G4XmlAnalysisManager::CloseFileImpl(), G4RootAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::WriteImpl(), and G4RootAnalysisManager::WriteImpl().
Definition at line 228 of file G4H1ToolsManager.cc.
References G4BaseAnalysisManager::fFirstId, fH1NameIdMap, fH1Vector, G4BaseAnalysisManager::fLockFirstId, and name.
Referenced by CreateH1().
G4bool G4H1ToolsManager::Reset | ( | ) |
Definition at line 596 of file G4H1ToolsManager.cc.
References fH1Vector.
Referenced by G4RootAnalysisManager::Reset(), and G4XmlAnalysisManager::Reset().
Implements G4VH1Manager.
Definition at line 364 of file G4H1ToolsManager.cc.
References GetH1InFunction().
|
protectedvirtual |
Implements G4VH1Manager.
Definition at line 302 of file G4H1ToolsManager.cc.
References G4VH1Manager::fHnManager, G4HnInformation::fName, G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), GetH1InFunction(), G4HnManager::GetHnInformation(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
|
protectedvirtual |
Implements G4VH1Manager.
Definition at line 333 of file G4H1ToolsManager.cc.
References G4VH1Manager::fHnManager, G4HnInformation::fName, G4BaseAnalysisManager::fState, GetH1InFunction(), G4HnManager::GetHnInformation(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
Implements G4VH1Manager.
Definition at line 463 of file G4H1ToolsManager.cc.
References GetH1InFunction().
Implements G4VH1Manager.
Definition at line 472 of file G4H1ToolsManager.cc.
References GetH1InFunction().
Implements G4VH1Manager.
Definition at line 482 of file G4H1ToolsManager.cc.
References GetH1InFunction().
|
protectedvirtual |
Implements G4VH1Manager.
Definition at line 540 of file G4H1ToolsManager.cc.
References G4HnInformation::fAscii, G4BaseAnalysisManager::fFirstId, fH1Vector, G4VH1Manager::fHnManager, G4HnInformation::fName, G4BaseAnalysisManager::fState, G4endl, G4HnManager::GetHnInformation(), G4AnalysisManagerState::GetVerboseL3(), and G4AnalysisVerbose::Message().
Definition at line 148 of file G4H1ToolsManager.hh.
Referenced by GetH1Id(), and RegisterToolsH1().
|
private |
Definition at line 147 of file G4H1ToolsManager.hh.
Referenced by AddH1Vector(), GetH1InFunction(), GetH1Vector(), IsEmpty(), RegisterToolsH1(), Reset(), WriteOnAscii(), and ~G4H1ToolsManager().