Geant4
10.01
|
#include <G4H1ToolsManager.hh>
Public Member Functions | |
G4H1ToolsManager (const G4AnalysisManagerState &state) | |
virtual | ~G4H1ToolsManager () |
G4int | AddH1 (const G4String &name, tools::histo::h1d *h1d) |
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 |
std::vector< tools::histo::h1d * > ::iterator | BeginH1 () |
std::vector< tools::histo::h1d * > ::iterator | EndH1 () |
std::vector< tools::histo::h1d * > ::const_iterator | BeginConstH1 () const |
std::vector< tools::histo::h1d * > ::const_iterator | EndConstH1 () 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) |
G4int | GetFirstId () const |
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 () |
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 | |
G4BaseToolsManager | fBaseToolsManager |
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 52 of file G4H1ToolsManager.hh.
G4H1ToolsManager::G4H1ToolsManager | ( | const G4AnalysisManagerState & | state | ) |
Definition at line 47 of file G4H1ToolsManager.cc.
|
virtual |
Definition at line 56 of file G4H1ToolsManager.cc.
References fH1Vector.
Definition at line 554 of file G4H1ToolsManager.cc.
References AddH1Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kLinearBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsH1().
Referenced by G4CsvAnalysisReader::ReadH1Impl(), G4XmlAnalysisReader::ReadH1Impl(), and G4RootAnalysisReader::ReadH1Impl().
|
private |
Definition at line 224 of file G4H1ToolsManager.cc.
References G4HnManager::AddH1Information(), G4VH1Manager::fHnManager, G4Analysis::GetFunction(), and G4Analysis::GetUnitValue().
Referenced by AddH1(), and 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 G4RootAnalysisManager::WriteH1(), G4XmlAnalysisManager::WriteH1(), and G4CsvAnalysisManager::WriteH1().
|
inline |
Definition at line 171 of file G4H1ToolsManager.hh.
References fH1Vector.
|
inline |
Definition at line 164 of file G4H1ToolsManager.hh.
References fH1Vector.
|
protectedvirtual |
Implements G4VH1Manager.
Definition at line 251 of file G4H1ToolsManager.cc.
References AddH1Information(), G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and RegisterToolsH1().
|
protectedvirtual |
Implements G4VH1Manager.
Definition at line 283 of file G4H1ToolsManager.cc.
References AddH1Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsH1().
|
inline |
Definition at line 175 of file G4H1ToolsManager.hh.
References fH1Vector.
|
inline |
Definition at line 167 of file G4H1ToolsManager.hh.
References fH1Vector.
|
protectedvirtual |
Implements G4VH1Manager.
Definition at line 382 of file G4H1ToolsManager.cc.
References G4HnDimensionInformation::fFcn, G4VH1Manager::fHnManager, G4BaseAnalysisManager::fState, G4HnDimensionInformation::fUnit, G4HnManager::GetActivation(), GetH1InFunction(), G4HnManager::GetHnDimensionInformation(), G4AnalysisManagerState::GetIsActivation(), G4AnalysisManagerState::GetVerboseL4(), G4HnInformation::kX, 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 408 of file G4H1ToolsManager.cc.
References fH1NameIdMap, G4Exception(), JustWarning, and G4Analysis::kInvalidId.
|
privatevirtual |
Definition at line 199 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 424 of file G4H1ToolsManager.cc.
References fBaseToolsManager, GetH1InFunction(), G4BaseToolsManager::GetNbins(), and G4BaseToolsManager::kX.
Implements G4VH1Manager.
Definition at line 489 of file G4H1ToolsManager.cc.
References fBaseToolsManager, GetH1InFunction(), and G4BaseToolsManager::GetTitle().
|
inline |
Definition at line 178 of file G4H1ToolsManager.hh.
References fH1Vector.
Referenced by G4RootAnalysisManager::WriteH1(), G4XmlAnalysisManager::WriteH1(), and G4CsvAnalysisManager::WriteH1().
Implements G4VH1Manager.
Definition at line 453 of file G4H1ToolsManager.cc.
References fBaseToolsManager, GetH1InFunction(), G4BaseToolsManager::GetWidth(), and G4BaseToolsManager::kX.
Implements G4VH1Manager.
Definition at line 499 of file G4H1ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetH1InFunction(), and G4BaseToolsManager::kX.
Implements G4VH1Manager.
Definition at line 444 of file G4H1ToolsManager.cc.
References fBaseToolsManager, GetH1InFunction(), G4BaseToolsManager::GetMax(), and G4BaseToolsManager::kX.
Implements G4VH1Manager.
Definition at line 433 of file G4H1ToolsManager.cc.
References fBaseToolsManager, GetH1InFunction(), G4BaseToolsManager::GetMin(), and G4BaseToolsManager::kX.
Implements G4VH1Manager.
Definition at line 508 of file G4H1ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetH1InFunction(), and G4BaseToolsManager::kY.
|
inline |
Definition at line 181 of file G4H1ToolsManager.hh.
References G4VH1Manager::fHnManager, and G4HnManager::GetHnVector().
Referenced by G4RootAnalysisManager::WriteH1(), G4XmlAnalysisManager::WriteH1(), and G4CsvAnalysisManager::WriteH1().
G4bool G4H1ToolsManager::IsEmpty | ( | ) | const |
Definition at line 612 of file G4H1ToolsManager.cc.
References fH1Vector.
Referenced by G4RootAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::WriteImpl(), G4RootAnalysisManager::WriteImpl(), and G4CsvAnalysisManager::WriteImpl().
Definition at line 235 of file G4H1ToolsManager.cc.
References G4BaseAnalysisManager::fFirstId, fH1NameIdMap, fH1Vector, G4BaseAnalysisManager::fLockFirstId, and name.
Referenced by AddH1(), and CreateH1().
G4bool G4H1ToolsManager::Reset | ( | ) |
Definition at line 596 of file G4H1ToolsManager.cc.
References fH1Vector.
Referenced by G4CsvAnalysisReader::Reset(), G4RootAnalysisReader::Reset(), G4XmlAnalysisReader::Reset(), G4RootAnalysisManager::Reset(), G4XmlAnalysisManager::Reset(), and G4CsvAnalysisManager::Reset().
Implements G4VH1Manager.
Definition at line 373 of file G4H1ToolsManager.cc.
References GetH1InFunction().
|
protectedvirtual |
Implements G4VH1Manager.
Definition at line 311 of file G4H1ToolsManager.cc.
References G4VH1Manager::fHnManager, G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), GetH1InFunction(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
|
protectedvirtual |
Implements G4VH1Manager.
Definition at line 342 of file G4H1ToolsManager.cc.
References G4VH1Manager::fHnManager, G4BaseAnalysisManager::fState, GetH1InFunction(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
Implements G4VH1Manager.
Definition at line 462 of file G4H1ToolsManager.cc.
References fBaseToolsManager, GetH1InFunction(), and G4BaseToolsManager::SetTitle().
Implements G4VH1Manager.
Definition at line 471 of file G4H1ToolsManager.cc.
References fBaseToolsManager, GetH1InFunction(), G4BaseToolsManager::kX, and G4BaseToolsManager::SetAxisTitle().
Implements G4VH1Manager.
Definition at line 480 of file G4H1ToolsManager.cc.
References fBaseToolsManager, GetH1InFunction(), G4BaseToolsManager::kY, and G4BaseToolsManager::SetAxisTitle().
|
protectedvirtual |
Implements G4VH1Manager.
Definition at line 517 of file G4H1ToolsManager.cc.
References G4BaseAnalysisManager::fFirstId, fH1Vector, G4VH1Manager::fHnManager, G4BaseAnalysisManager::fState, G4endl, G4HnInformation::GetAscii(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), G4AnalysisManagerState::GetVerboseL3(), and G4AnalysisVerbose::Message().
|
private |
Definition at line 157 of file G4H1ToolsManager.hh.
Referenced by GetH1Nbins(), GetH1Title(), GetH1Width(), GetH1XAxisTitle(), GetH1Xmax(), GetH1Xmin(), GetH1YAxisTitle(), SetH1Title(), SetH1XAxisTitle(), and SetH1YAxisTitle().
Definition at line 159 of file G4H1ToolsManager.hh.
Referenced by GetH1Id(), and RegisterToolsH1().
|
private |
Definition at line 158 of file G4H1ToolsManager.hh.
Referenced by AddH1Vector(), BeginConstH1(), BeginH1(), EndConstH1(), EndH1(), GetH1InFunction(), GetH1Vector(), IsEmpty(), RegisterToolsH1(), Reset(), WriteOnAscii(), and ~G4H1ToolsManager().