Geant4-11
|
#include <G4H2ToolsManager.hh>
Public Member Functions | |
G4int | AddH2 (const G4String &name, tools::histo::h2d *h2d) |
void | AddH2Vector (const std::vector< tools::histo::h2d * > &h2Vector) |
void | AddTVector (const std::vector< tools::histo::h2d * > &tVector) |
std::vector< tools::histo::h2d * >::const_iterator | BeginConstH2 () const |
std::vector< tools::histo::h2d * >::iterator | BeginH2 () |
void | ClearData () |
std::vector< tools::histo::h2d * >::const_iterator | EndConstH2 () const |
std::vector< tools::histo::h2d * >::iterator | EndH2 () |
G4H2ToolsManager (const G4AnalysisManagerState &state) | |
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 |
tools::histo::h2d * | GetT (G4int id) const |
G4bool | IsEmpty () const |
void | Merge (G4Mutex &mergeMutex, G4THnManager< tools::histo::h2d > *masterInstance) |
G4int | RegisterT (tools::histo::h2d *t, const G4String &name) |
G4bool | Reset () |
virtual | ~G4H2ToolsManager ()=default |
Protected Member Functions | |
std::vector< tools::histo::h2d * >::const_iterator | BeginConstT () const |
std::vector< tools::histo::h2d * >::iterator | BeginT () |
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") final |
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") final |
std::vector< tools::histo::h2d * >::const_iterator | EndConstT () const |
std::vector< tools::histo::h2d * >::iterator | EndT () |
virtual G4bool | FillH2 (G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0) final |
virtual G4int | GetH2Id (const G4String &name, G4bool warn=true) const final |
virtual G4int | GetH2Nxbins (G4int id) const final |
virtual G4int | GetH2Nybins (G4int id) const final |
virtual G4String | GetH2Title (G4int id) const final |
virtual G4String | GetH2XAxisTitle (G4int id) const final |
virtual G4double | GetH2Xmax (G4int id) const final |
virtual G4double | GetH2Xmin (G4int id) const final |
virtual G4double | GetH2XWidth (G4int id) const final |
virtual G4String | GetH2YAxisTitle (G4int id) const final |
virtual G4double | GetH2Ymax (G4int id) const final |
virtual G4double | GetH2Ymin (G4int id) const final |
virtual G4double | GetH2YWidth (G4int id) const final |
virtual G4String | GetH2ZAxisTitle (G4int id) const final |
virtual std::shared_ptr< G4HnManager > | GetHnManager () final |
G4int | GetTId (const G4String &name, G4bool warn=true) const |
tools::histo::h2d * | 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 | ScaleH2 (G4int id, G4double factor) final |
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") final |
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") final |
virtual G4bool | SetH2Title (G4int id, const G4String &title) final |
virtual G4bool | SetH2XAxisTitle (G4int id, const G4String &title) final |
virtual G4bool | SetH2YAxisTitle (G4int id, const G4String &title) final |
virtual G4bool | SetH2ZAxisTitle (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::h2d * > | fTVector |
Private Member Functions | |
void | AddH2Information (const G4String &name, const G4String &xunitName, const G4String &yunitName, const G4String &xfcnName, const G4String &yfcnName, G4BinScheme xbinScheme, G4BinScheme ybinScheme) const |
Static Private Attributes | |
static constexpr std::string_view | fkClass { "G4H2ToolsManager" } |
static constexpr G4int | fkDimension = 2 |
Definition at line 52 of file G4H2ToolsManager.hh.
|
explicit |
Definition at line 42 of file G4H2ToolsManager.cc.
|
virtualdefault |
Definition at line 604 of file G4H2ToolsManager.cc.
References anonymous_namespace{G4H2ToolsManager.cc}::AddH2Annotation(), AddH2Information(), kLinear, G4Analysis::kVL2, G4Analysis::kVL4, G4THnManager< tools::histo::h2d >::Message(), G4InuclParticleNames::name(), and G4THnManager< tools::histo::h2d >::RegisterT().
|
private |
Definition at line 222 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::fHnManager, fkDimension, and G4InuclParticleNames::name().
Referenced by AddH2(), and CreateH2().
void G4H2ToolsManager::AddH2Vector | ( | const std::vector< tools::histo::h2d * > & | h2Vector | ) |
Definition at line 623 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::AddTVector().
|
inherited |
|
inline |
Definition at line 184 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::BeginConstT().
|
protectedinherited |
|
inline |
Definition at line 177 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::BeginT().
|
protectedinherited |
|
inherited |
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 274 of file G4H2ToolsManager.cc.
References anonymous_namespace{G4H2ToolsManager.cc}::AddH2Annotation(), AddH2Information(), anonymous_namespace{G4H2ToolsManager.cc}::CreateToolsH2(), kUser, G4Analysis::kVL2, G4Analysis::kVL4, G4THnManager< tools::histo::h2d >::Message(), G4InuclParticleNames::name(), and G4THnManager< tools::histo::h2d >::RegisterT().
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 240 of file G4H2ToolsManager.cc.
References anonymous_namespace{G4H2ToolsManager.cc}::AddH2Annotation(), AddH2Information(), anonymous_namespace{G4H2ToolsManager.cc}::CreateToolsH2(), fkClass, G4Analysis::GetBinScheme(), G4Analysis::kVL2, G4Analysis::kVL4, G4THnManager< tools::histo::h2d >::Message(), G4InuclParticleNames::name(), and G4THnManager< tools::histo::h2d >::RegisterT().
|
inline |
Definition at line 188 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::EndConstT().
|
protectedinherited |
|
inline |
Definition at line 180 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::EndT().
|
protectedinherited |
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 379 of file G4H2ToolsManager.cc.
References G4HnDimensionInformation::fFcn, G4THnManager< tools::histo::h2d >::fHnManager, G4THnManager< tools::histo::h2d >::fState, G4HnDimensionInformation::fUnit, G4AnalysisManagerState::GetIsActivation(), G4THnManager< tools::histo::h2d >::GetTInFunction(), G4THnManager< tools::histo::h2d >::IsVerbose(), G4Analysis::kVL4, G4Analysis::kX, G4Analysis::kY, and G4THnManager< tools::histo::h2d >::Message().
tools::histo::h2d * G4H2ToolsManager::GetH2 | ( | G4int | id, |
G4bool | warn = true , |
||
G4bool | onlyIfActive = true |
||
) | const |
Definition at line 629 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction().
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 412 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTId(), and G4InuclParticleNames::name().
Implements G4VH2Manager.
Definition at line 418 of file G4H2ToolsManager.cc.
References G4Analysis::GetNbins(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VH2Manager.
Definition at line 456 of file G4H2ToolsManager.cc.
References G4Analysis::GetNbins(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VH2Manager.
Definition at line 530 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::GetTitle().
|
inline |
Definition at line 191 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::fTVector.
Referenced by G4ToolsAnalysisManager::MergeImpl(), G4ToolsAnalysisManager::PlotImpl(), and G4ToolsAnalysisManager::WriteImpl().
Implements G4VH2Manager.
Definition at line 539 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::fHnManager, G4Analysis::GetAxisTitle(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VH2Manager.
Definition at line 438 of file G4H2ToolsManager.cc.
References G4Analysis::GetMax(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VH2Manager.
Definition at line 427 of file G4H2ToolsManager.cc.
References G4Analysis::GetMin(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VH2Manager.
Definition at line 447 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::fHnManager, G4THnManager< tools::histo::h2d >::GetTInFunction(), G4Analysis::GetWidth(), and G4Analysis::kX.
Implements G4VH2Manager.
Definition at line 548 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::fHnManager, G4Analysis::GetAxisTitle(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VH2Manager.
Definition at line 476 of file G4H2ToolsManager.cc.
References G4Analysis::GetMax(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VH2Manager.
Definition at line 465 of file G4H2ToolsManager.cc.
References G4Analysis::GetMin(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VH2Manager.
Definition at line 485 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::fHnManager, G4THnManager< tools::histo::h2d >::GetTInFunction(), G4Analysis::GetWidth(), and G4Analysis::kY.
Implements G4VH2Manager.
Definition at line 557 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::fHnManager, G4Analysis::GetAxisTitle(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kZ.
|
inlinefinalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 197 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::fHnManager.
|
inline |
Definition at line 194 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::fHnManager.
Referenced by G4ToolsAnalysisManager::MergeImpl(), G4ToolsAnalysisManager::PlotImpl(), and G4ToolsAnalysisManager::WriteImpl().
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
protectedinherited |
|
inherited |
|
protectedinherited |
|
inherited |
|
inherited |
Implements G4VH2Manager.
Definition at line 370 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction().
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 340 of file G4H2ToolsManager.cc.
References anonymous_namespace{G4H2ToolsManager.cc}::AddH2Annotation(), anonymous_namespace{G4H2ToolsManager.cc}::ConfigureToolsH2(), G4THnManager< tools::histo::h2d >::fHnManager, G4THnManager< tools::histo::h2d >::GetTInFunction(), kUser, G4Analysis::kVL4, G4THnManager< tools::histo::h2d >::Message(), and anonymous_namespace{G4H2ToolsManager.cc}::UpdateH2Information().
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 303 of file G4H2ToolsManager.cc.
References anonymous_namespace{G4H2ToolsManager.cc}::AddH2Annotation(), anonymous_namespace{G4H2ToolsManager.cc}::ConfigureToolsH2(), G4THnManager< tools::histo::h2d >::fHnManager, fkClass, G4Analysis::GetBinScheme(), G4THnManager< tools::histo::h2d >::GetTInFunction(), G4Analysis::kVL4, G4THnManager< tools::histo::h2d >::Message(), and anonymous_namespace{G4H2ToolsManager.cc}::UpdateH2Information().
Implements G4VH2Manager.
Definition at line 494 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::SetTitle().
Implements G4VH2Manager.
Definition at line 503 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction(), G4Analysis::kX, and G4Analysis::SetAxisTitle().
Implements G4VH2Manager.
Definition at line 512 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction(), G4Analysis::kY, and G4Analysis::SetAxisTitle().
Implements G4VH2Manager.
Definition at line 521 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction(), G4Analysis::kZ, and G4Analysis::SetAxisTitle().
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 566 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::fHnManager, G4THnManager< tools::histo::h2d >::fTVector, G4endl, G4Analysis::kVL3, and G4THnManager< tools::histo::h2d >::Message().
|
protectedinherited |
Definition at line 105 of file G4THnManager.hh.
|
staticconstexprprivate |
Definition at line 172 of file G4H2ToolsManager.hh.
Referenced by CreateH2(), and SetH2().
|
staticconstexprprivate |
Definition at line 173 of file G4H2ToolsManager.hh.
Referenced by AddH2Information().
|
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.