Geant4-11
|
#include <G4H1ToolsManager.hh>
Public Member Functions | |
G4int | AddH1 (const G4String &name, tools::histo::h1d *h1d) |
void | AddH1Vector (const std::vector< tools::histo::h1d * > &h1Vector) |
void | AddTVector (const std::vector< tools::histo::h1d * > &tVector) |
std::vector< tools::histo::h1d * >::const_iterator | BeginConstH1 () const |
std::vector< tools::histo::h1d * >::iterator | BeginH1 () |
void | ClearData () |
std::vector< tools::histo::h1d * >::const_iterator | EndConstH1 () const |
std::vector< tools::histo::h1d * >::iterator | EndH1 () |
G4H1ToolsManager ()=delete | |
G4H1ToolsManager (const G4AnalysisManagerState &state) | |
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 |
tools::histo::h1d * | GetT (G4int id) const |
G4bool | IsEmpty () const |
void | Merge (G4Mutex &mergeMutex, G4THnManager< tools::histo::h1d > *masterInstance) |
G4int | RegisterT (tools::histo::h1d *t, const G4String &name) |
G4bool | Reset () |
virtual | ~G4H1ToolsManager ()=default |
Protected Member Functions | |
std::vector< tools::histo::h1d * >::const_iterator | BeginConstT () const |
std::vector< tools::histo::h1d * >::iterator | BeginT () |
virtual G4int | CreateH1 (const G4String &name, const G4String &title, const std::vector< G4double > &edges, const G4String &unitName="none", const G4String &fcnName="none") final |
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") final |
std::vector< tools::histo::h1d * >::const_iterator | EndConstT () const |
std::vector< tools::histo::h1d * >::iterator | EndT () |
virtual G4bool | FillH1 (G4int id, G4double value, G4double weight=1.0) final |
virtual G4int | GetH1Id (const G4String &name, G4bool warn=true) const final |
virtual G4int | GetH1Nbins (G4int id) const final |
virtual G4String | GetH1Title (G4int id) const final |
virtual G4double | GetH1Width (G4int id) const final |
virtual G4String | GetH1XAxisTitle (G4int id) const final |
virtual G4double | GetH1Xmax (G4int id) const final |
virtual G4double | GetH1Xmin (G4int id) const final |
virtual G4String | GetH1YAxisTitle (G4int id) const final |
virtual std::shared_ptr< G4HnManager > | GetHnManager () final |
G4int | GetTId (const G4String &name, G4bool warn=true) const |
tools::histo::h1d * | GetTInFunction (G4int id, std::string_view functionName, G4bool warn=true, G4bool onlyIfActive=true) const |
G4bool | IsVerbose (G4int verboseLevel) const |
void | Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const |
virtual G4bool | ScaleH1 (G4int id, G4double factor) final |
virtual G4bool | SetH1 (G4int id, const std::vector< G4double > &edges, const G4String &unitName="none", const G4String &fcnName="none") final |
virtual G4bool | SetH1 (G4int id, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear") final |
virtual G4bool | SetH1Title (G4int id, const G4String &title) final |
virtual G4bool | SetH1XAxisTitle (G4int id, const G4String &title) final |
virtual G4bool | SetH1YAxisTitle (G4int id, const G4String &title) final |
virtual G4bool | WriteOnAscii (std::ofstream &output) final |
Protected Attributes | |
std::shared_ptr< G4HnManager > | fHnManager |
std::map< G4String, G4int > | fNameIdMap |
const G4AnalysisManagerState & | fState |
std::vector< tools::histo::h1d * > | fTVector |
Private Member Functions | |
void | AddH1Information (const G4String &name, const G4String &unitName, const G4String &fcnName, G4BinScheme binScheme) const |
Static Private Attributes | |
static constexpr std::string_view | fkClass { "G4H1ToolsManager" } |
static constexpr G4int | fkDimension = 1 |
Definition at line 52 of file G4H1ToolsManager.hh.
|
explicit |
Definition at line 46 of file G4H1ToolsManager.cc.
|
delete |
|
virtualdefault |
Definition at line 471 of file G4H1ToolsManager.cc.
References anonymous_namespace{G4H1ToolsManager.cc}::AddH1Annotation(), AddH1Information(), kLinear, G4Analysis::kVL2, G4Analysis::kVL4, G4THnManager< tools::histo::h1d >::Message(), G4InuclParticleNames::name(), and G4THnManager< tools::histo::h1d >::RegisterT().
|
private |
Definition at line 176 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::fHnManager, fkDimension, and G4InuclParticleNames::name().
Referenced by AddH1(), and CreateH1().
void G4H1ToolsManager::AddH1Vector | ( | const std::vector< tools::histo::h1d * > & | h1Vector | ) |
Definition at line 490 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::AddTVector().
|
inherited |
|
inline |
Definition at line 162 of file G4H1ToolsManager.hh.
References G4THnManager< tools::histo::h1d >::BeginConstT().
|
protectedinherited |
|
inline |
Definition at line 155 of file G4H1ToolsManager.hh.
References G4THnManager< tools::histo::h1d >::BeginT().
|
protectedinherited |
|
inherited |
|
finalprotectedvirtual |
Implements G4VH1Manager.
Definition at line 218 of file G4H1ToolsManager.cc.
References anonymous_namespace{G4H1ToolsManager.cc}::AddH1Annotation(), AddH1Information(), anonymous_namespace{G4H1ToolsManager.cc}::CreateToolsH1(), kUser, G4Analysis::kVL2, G4Analysis::kVL4, G4THnManager< tools::histo::h1d >::Message(), G4InuclParticleNames::name(), and G4THnManager< tools::histo::h1d >::RegisterT().
|
finalprotectedvirtual |
Implements G4VH1Manager.
Definition at line 190 of file G4H1ToolsManager.cc.
References anonymous_namespace{G4H1ToolsManager.cc}::AddH1Annotation(), AddH1Information(), anonymous_namespace{G4H1ToolsManager.cc}::CreateToolsH1(), fkClass, G4Analysis::GetBinScheme(), G4Analysis::kVL2, G4Analysis::kVL4, G4THnManager< tools::histo::h1d >::Message(), G4InuclParticleNames::name(), and G4THnManager< tools::histo::h1d >::RegisterT().
|
inline |
Definition at line 166 of file G4H1ToolsManager.hh.
References G4THnManager< tools::histo::h1d >::EndConstT().
|
protectedinherited |
|
inline |
Definition at line 158 of file G4H1ToolsManager.hh.
References G4THnManager< tools::histo::h1d >::EndT().
|
protectedinherited |
|
finalprotectedvirtual |
Implements G4VH1Manager.
Definition at line 310 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::fHnManager, G4THnManager< tools::histo::h1d >::fState, G4AnalysisManagerState::GetIsActivation(), G4THnManager< tools::histo::h1d >::GetTInFunction(), G4THnManager< tools::histo::h1d >::IsVerbose(), G4Analysis::kVL4, G4Analysis::kX, and G4THnManager< tools::histo::h1d >::Message().
tools::histo::h1d * G4H1ToolsManager::GetH1 | ( | G4int | id, |
G4bool | warn = true , |
||
G4bool | onlyIfActive = true |
||
) | const |
Definition at line 497 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::GetTInFunction().
|
finalprotectedvirtual |
Implements G4VH1Manager.
Definition at line 335 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::GetTId(), and G4InuclParticleNames::name().
Implements G4VH1Manager.
Definition at line 341 of file G4H1ToolsManager.cc.
References G4Analysis::GetNbins(), G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VH1Manager.
Definition at line 406 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::GetTitle().
|
inline |
Definition at line 169 of file G4H1ToolsManager.hh.
References G4THnManager< tools::histo::h1d >::fTVector.
Referenced by G4ToolsAnalysisManager::MergeImpl(), G4ToolsAnalysisManager::PlotImpl(), and G4ToolsAnalysisManager::WriteImpl().
Implements G4VH1Manager.
Definition at line 370 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::fHnManager, G4THnManager< tools::histo::h1d >::GetTInFunction(), G4Analysis::GetWidth(), and G4Analysis::kX.
Implements G4VH1Manager.
Definition at line 416 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::fHnManager, G4Analysis::GetAxisTitle(), G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VH1Manager.
Definition at line 361 of file G4H1ToolsManager.cc.
References G4Analysis::GetMax(), G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VH1Manager.
Definition at line 350 of file G4H1ToolsManager.cc.
References G4Analysis::GetMin(), G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VH1Manager.
Definition at line 425 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::fHnManager, G4Analysis::GetAxisTitle(), G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::kY.
|
inlinefinalprotectedvirtual |
Implements G4VH1Manager.
Definition at line 175 of file G4H1ToolsManager.hh.
References G4THnManager< tools::histo::h1d >::fHnManager.
|
inline |
Definition at line 172 of file G4H1ToolsManager.hh.
References G4THnManager< tools::histo::h1d >::fHnManager.
Referenced by G4ToolsAnalysisManager::MergeImpl(), G4ToolsAnalysisManager::PlotImpl(), and G4ToolsAnalysisManager::WriteImpl().
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
protectedinherited |
|
inherited |
|
protectedinherited |
|
inherited |
|
inherited |
Implements G4VH1Manager.
Definition at line 301 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::GetTInFunction().
|
finalprotectedvirtual |
Implements G4VH1Manager.
Definition at line 272 of file G4H1ToolsManager.cc.
References anonymous_namespace{G4H1ToolsManager.cc}::AddH1Annotation(), anonymous_namespace{G4H1ToolsManager.cc}::ConfigureToolsH1(), G4THnManager< tools::histo::h1d >::fHnManager, G4THnManager< tools::histo::h1d >::GetTInFunction(), kUser, G4Analysis::kVL4, G4THnManager< tools::histo::h1d >::Message(), and anonymous_namespace{G4H1ToolsManager.cc}::UpdateH1Information().
|
finalprotectedvirtual |
Implements G4VH1Manager.
Definition at line 242 of file G4H1ToolsManager.cc.
References anonymous_namespace{G4H1ToolsManager.cc}::AddH1Annotation(), anonymous_namespace{G4H1ToolsManager.cc}::ConfigureToolsH1(), G4THnManager< tools::histo::h1d >::fHnManager, fkClass, G4Analysis::GetBinScheme(), G4THnManager< tools::histo::h1d >::GetTInFunction(), G4Analysis::kVL4, G4THnManager< tools::histo::h1d >::Message(), and anonymous_namespace{G4H1ToolsManager.cc}::UpdateH1Information().
Implements G4VH1Manager.
Definition at line 379 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::GetTInFunction(), and G4Analysis::SetTitle().
Implements G4VH1Manager.
Definition at line 388 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::GetTInFunction(), G4Analysis::kX, and G4Analysis::SetAxisTitle().
Implements G4VH1Manager.
Definition at line 397 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::GetTInFunction(), G4Analysis::kY, and G4Analysis::SetAxisTitle().
|
finalprotectedvirtual |
Implements G4VH1Manager.
Definition at line 434 of file G4H1ToolsManager.cc.
References G4THnManager< tools::histo::h1d >::fHnManager, G4THnManager< tools::histo::h1d >::fTVector, G4endl, G4Analysis::kVL3, and G4THnManager< tools::histo::h1d >::Message().
|
protectedinherited |
Definition at line 105 of file G4THnManager.hh.
|
staticconstexprprivate |
Definition at line 149 of file G4H1ToolsManager.hh.
Referenced by CreateH1(), and SetH1().
|
staticconstexprprivate |
Definition at line 150 of file G4H1ToolsManager.hh.
Referenced by AddH1Information().
|
protectedinherited |
Definition at line 104 of file G4THnManager.hh.
|
protectedinherited |
Definition at line 102 of file G4THnManager.hh.
|
protectedinherited |
Definition at line 103 of file G4THnManager.hh.