Geant4-11
|
#include <G4P2ToolsManager.hh>
Public Member Functions | |
G4int | AddP2 (const G4String &name, tools::histo::p2d *p2d) |
void | AddP2Vector (const std::vector< tools::histo::p2d * > &p2Vector) |
void | AddTVector (const std::vector< tools::histo::p2d * > &tVector) |
std::vector< tools::histo::p2d * >::const_iterator | BeginConstP2 () const |
std::vector< tools::histo::p2d * >::iterator | BeginP2 () |
void | ClearData () |
std::vector< tools::histo::p2d * >::const_iterator | EndConstP2 () const |
std::vector< tools::histo::p2d * >::iterator | EndP2 () |
G4P2ToolsManager ()=delete | |
G4P2ToolsManager (const G4AnalysisManagerState &state) | |
const std::vector< G4HnInformation * > & | GetHnVector () const |
tools::histo::p2d * | GetP2 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const |
const std::vector< tools::histo::p2d * > & | GetP2Vector () const |
tools::histo::p2d * | GetT (G4int id) const |
G4bool | IsEmpty () const |
void | Merge (G4Mutex &mergeMutex, G4THnManager< tools::histo::p2d > *masterInstance) |
G4int | RegisterT (tools::histo::p2d *t, const G4String &name) |
G4bool | Reset () |
virtual | ~G4P2ToolsManager ()=default |
Protected Member Functions | |
std::vector< tools::histo::p2d * >::const_iterator | BeginConstT () const |
std::vector< tools::histo::p2d * >::iterator | BeginT () |
virtual G4int | CreateP2 (const G4String &name, const G4String &title, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, G4double zmin=0, G4double zmax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none") final |
virtual G4int | CreateP2 (const G4String &name, const G4String &title, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4double zmin=0, G4double zmax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none", const G4String &xbinScheme="linear", const G4String &ybinScheme="linear") final |
std::vector< tools::histo::p2d * >::const_iterator | EndConstT () const |
std::vector< tools::histo::p2d * >::iterator | EndT () |
virtual G4bool | FillP2 (G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0) final |
virtual std::shared_ptr< G4HnManager > | GetHnManager () final |
virtual G4int | GetP2Id (const G4String &name, G4bool warn=true) const final |
virtual G4int | GetP2Nxbins (G4int id) const final |
virtual G4int | GetP2Nybins (G4int id) const final |
virtual G4String | GetP2Title (G4int id) const final |
virtual G4String | GetP2XAxisTitle (G4int id) const final |
virtual G4double | GetP2Xmax (G4int id) const final |
virtual G4double | GetP2Xmin (G4int id) const final |
virtual G4double | GetP2XWidth (G4int id) const final |
virtual G4String | GetP2YAxisTitle (G4int id) const final |
virtual G4double | GetP2Ymax (G4int id) const final |
virtual G4double | GetP2Ymin (G4int id) const final |
virtual G4double | GetP2YWidth (G4int id) const final |
virtual G4String | GetP2ZAxisTitle (G4int id) const final |
virtual G4double | GetP2Zmax (G4int id) const final |
virtual G4double | GetP2Zmin (G4int id) const final |
G4int | GetTId (const G4String &name, G4bool warn=true) const |
tools::histo::p2d * | 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 | ScaleP2 (G4int id, G4double factor) final |
virtual G4bool | SetP2 (G4int id, const std::vector< G4double > &xedges, const std::vector< G4double > &yedges, G4double zmin=0, G4double zmax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none") final |
virtual G4bool | SetP2 (G4int id, G4int nxbins, G4double xmin, G4double xmax, G4int nybins, G4double ymin, G4double ymax, G4double zmin=0, G4double zmax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &zunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &zfcnName="none", const G4String &xbinScheme="linear", const G4String &ybinScheme="linear") final |
virtual G4bool | SetP2Title (G4int id, const G4String &title) final |
virtual G4bool | SetP2XAxisTitle (G4int id, const G4String &title) final |
virtual G4bool | SetP2YAxisTitle (G4int id, const G4String &title) final |
virtual G4bool | SetP2ZAxisTitle (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::p2d * > | fTVector |
Private Member Functions | |
void | AddP2Information (const G4String &name, const G4String &xunitName, const G4String &yunitName, const G4String &zunitName, const G4String &xfcnName, const G4String &yfcnName, const G4String &zfcnName, G4BinScheme xbinScheme, G4BinScheme ybinScheme) const |
Static Private Attributes | |
static constexpr std::string_view | fkClass { "G4P2ToolsManager" } |
static constexpr G4int | fkDimension = 3 |
Definition at line 52 of file G4P2ToolsManager.hh.
|
explicit |
Definition at line 42 of file G4P2ToolsManager.cc.
|
delete |
|
virtualdefault |
Definition at line 721 of file G4P2ToolsManager.cc.
References anonymous_namespace{G4P2ToolsManager.cc}::AddP2Annotation(), AddP2Information(), kLinear, G4Analysis::kVL2, G4Analysis::kVL4, G4THnManager< tools::histo::p2d >::Message(), G4InuclParticleNames::name(), and G4THnManager< tools::histo::p2d >::RegisterT().
|
private |
Definition at line 285 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::fHnManager, fkDimension, kLinear, and G4InuclParticleNames::name().
Referenced by AddP2(), and CreateP2().
void G4P2ToolsManager::AddP2Vector | ( | const std::vector< tools::histo::p2d * > & | p2Vector | ) |
Definition at line 740 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::AddTVector().
|
inherited |
|
inline |
Definition at line 203 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::BeginConstT().
|
protectedinherited |
|
inline |
Definition at line 196 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::BeginT().
|
protectedinherited |
|
inherited |
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 347 of file G4P2ToolsManager.cc.
References anonymous_namespace{G4P2ToolsManager.cc}::AddP2Annotation(), AddP2Information(), anonymous_namespace{G4P2ToolsManager.cc}::CreateToolsP2(), kUser, G4Analysis::kVL2, G4Analysis::kVL4, G4THnManager< tools::histo::p2d >::Message(), G4InuclParticleNames::name(), and G4THnManager< tools::histo::p2d >::RegisterT().
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 306 of file G4P2ToolsManager.cc.
References anonymous_namespace{G4P2ToolsManager.cc}::AddP2Annotation(), AddP2Information(), anonymous_namespace{G4P2ToolsManager.cc}::CreateToolsP2(), fkClass, G4Analysis::GetBinScheme(), G4Analysis::kVL2, G4Analysis::kVL4, G4THnManager< tools::histo::p2d >::Message(), G4InuclParticleNames::name(), and G4THnManager< tools::histo::p2d >::RegisterT().
|
inline |
Definition at line 207 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::EndConstT().
|
protectedinherited |
|
inline |
Definition at line 199 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::EndT().
|
protectedinherited |
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 468 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::fHnManager, G4THnManager< tools::histo::p2d >::fState, G4AnalysisManagerState::GetIsActivation(), G4THnManager< tools::histo::p2d >::GetTInFunction(), G4THnManager< tools::histo::p2d >::IsVerbose(), G4Analysis::kVL4, G4Analysis::kX, G4Analysis::kY, G4Analysis::kZ, and G4THnManager< tools::histo::p2d >::Message().
|
inlinefinalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 216 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::fHnManager.
|
inline |
Definition at line 213 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::fHnManager.
Referenced by G4ToolsAnalysisManager::MergeImpl(), and G4ToolsAnalysisManager::WriteImpl().
tools::histo::p2d * G4P2ToolsManager::GetP2 | ( | G4int | id, |
G4bool | warn = true , |
||
G4bool | onlyIfActive = true |
||
) | const |
Definition at line 747 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction().
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 506 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTId(), and G4InuclParticleNames::name().
Implements G4VP2Manager.
Definition at line 512 of file G4P2ToolsManager.cc.
References G4Analysis::GetNbins(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VP2Manager.
Definition at line 550 of file G4P2ToolsManager.cc.
References G4Analysis::GetNbins(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VP2Manager.
Definition at line 644 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::GetTitle().
|
inline |
Definition at line 210 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::fTVector.
Referenced by G4ToolsAnalysisManager::MergeImpl(), and G4ToolsAnalysisManager::WriteImpl().
Implements G4VP2Manager.
Definition at line 653 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::fHnManager, G4Analysis::GetAxisTitle(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VP2Manager.
Definition at line 532 of file G4P2ToolsManager.cc.
References G4Analysis::GetMax(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VP2Manager.
Definition at line 521 of file G4P2ToolsManager.cc.
References G4Analysis::GetMin(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VP2Manager.
Definition at line 541 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::fHnManager, G4THnManager< tools::histo::p2d >::GetTInFunction(), G4Analysis::GetWidth(), and G4Analysis::kX.
Implements G4VP2Manager.
Definition at line 662 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::fHnManager, G4Analysis::GetAxisTitle(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VP2Manager.
Definition at line 570 of file G4P2ToolsManager.cc.
References G4Analysis::GetMax(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VP2Manager.
Definition at line 559 of file G4P2ToolsManager.cc.
References G4Analysis::GetMin(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VP2Manager.
Definition at line 579 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::fHnManager, G4THnManager< tools::histo::p2d >::GetTInFunction(), G4Analysis::GetWidth(), and G4Analysis::kY.
Implements G4VP2Manager.
Definition at line 671 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::fHnManager, G4Analysis::GetAxisTitle(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kZ.
Implements G4VP2Manager.
Definition at line 599 of file G4P2ToolsManager.cc.
References G4Analysis::GetMax(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kZ.
Implements G4VP2Manager.
Definition at line 588 of file G4P2ToolsManager.cc.
References G4Analysis::GetMin(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kZ.
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
protectedinherited |
|
inherited |
|
protectedinherited |
|
inherited |
|
inherited |
Implements G4VP2Manager.
Definition at line 459 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction().
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 423 of file G4P2ToolsManager.cc.
References anonymous_namespace{G4P2ToolsManager.cc}::AddP2Annotation(), anonymous_namespace{G4P2ToolsManager.cc}::ConfigureToolsP2(), G4THnManager< tools::histo::p2d >::fHnManager, G4THnManager< tools::histo::p2d >::GetTInFunction(), kUser, G4Analysis::kVL4, G4THnManager< tools::histo::p2d >::Message(), and anonymous_namespace{G4P2ToolsManager.cc}::UpdateP2Information().
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 381 of file G4P2ToolsManager.cc.
References anonymous_namespace{G4P2ToolsManager.cc}::AddP2Annotation(), anonymous_namespace{G4P2ToolsManager.cc}::ConfigureToolsP2(), G4THnManager< tools::histo::p2d >::fHnManager, fkClass, G4Analysis::GetBinScheme(), G4THnManager< tools::histo::p2d >::GetTInFunction(), G4Analysis::kVL4, G4THnManager< tools::histo::p2d >::Message(), and anonymous_namespace{G4P2ToolsManager.cc}::UpdateP2Information().
Implements G4VP2Manager.
Definition at line 608 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::SetTitle().
Implements G4VP2Manager.
Definition at line 617 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction(), G4Analysis::kX, and G4Analysis::SetAxisTitle().
Implements G4VP2Manager.
Definition at line 626 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction(), G4Analysis::kY, and G4Analysis::SetAxisTitle().
Implements G4VP2Manager.
Definition at line 635 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction(), G4Analysis::kZ, and G4Analysis::SetAxisTitle().
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 680 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::fHnManager, G4THnManager< tools::histo::p2d >::fTVector, G4endl, G4Analysis::kVL3, and G4THnManager< tools::histo::p2d >::Message().
|
protectedinherited |
Definition at line 105 of file G4THnManager.hh.
|
staticconstexprprivate |
Definition at line 190 of file G4P2ToolsManager.hh.
Referenced by CreateP2(), and SetP2().
|
staticconstexprprivate |
Definition at line 191 of file G4P2ToolsManager.hh.
Referenced by AddP2Information().
|
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.