Geant4
10.02
|
#include <G4P2ToolsManager.hh>
Public Member Functions | |
G4P2ToolsManager (const G4AnalysisManagerState &state) | |
virtual | ~G4P2ToolsManager () |
G4int | AddP2 (const G4String &name, tools::histo::p2d *p2d) |
void | AddP2Vector (const std::vector< tools::histo::p2d * > &p2Vector) |
tools::histo::p2d * | GetP2 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const |
std::vector< tools::histo::p2d * > ::iterator | BeginP2 () |
std::vector< tools::histo::p2d * > ::iterator | EndP2 () |
std::vector< tools::histo::p2d * > ::const_iterator | BeginConstP2 () const |
std::vector< tools::histo::p2d * > ::const_iterator | EndConstP2 () const |
const std::vector < tools::histo::p2d * > & | GetP2Vector () const |
const std::vector < G4HnInformation * > & | GetHnVector () const |
Public Member Functions inherited from G4VP2Manager | |
G4VP2Manager () | |
virtual | ~G4VP2Manager () |
G4VP2Manager (const G4VP2Manager &rhs)=delete | |
G4VP2Manager & | operator= (const G4VP2Manager &rhs)=delete |
Public Member Functions inherited from G4THnManager< tools::histo::p2d > | |
G4THnManager (const G4AnalysisManagerState &state, const G4String &hnType) | |
virtual | ~G4THnManager () |
G4bool | Reset () |
G4bool | IsEmpty () const |
Protected Member Functions | |
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 |
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 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 | 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 | ScaleP2 (G4int id, G4double factor) final |
virtual G4bool | FillP2 (G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0) final |
virtual G4int | GetP2Id (const G4String &name, G4bool warn=true) const final |
virtual G4int | GetP2Nxbins (G4int id) const final |
virtual G4double | GetP2Xmin (G4int id) const final |
virtual G4double | GetP2Xmax (G4int id) const final |
virtual G4double | GetP2XWidth (G4int id) const final |
virtual G4int | GetP2Nybins (G4int id) const final |
virtual G4double | GetP2Ymin (G4int id) const final |
virtual G4double | GetP2Ymax (G4int id) const final |
virtual G4double | GetP2YWidth (G4int id) const final |
virtual G4double | GetP2Zmin (G4int id) const final |
virtual G4double | GetP2Zmax (G4int id) const 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 G4String | GetP2Title (G4int id) const final |
virtual G4String | GetP2XAxisTitle (G4int id) const final |
virtual G4String | GetP2YAxisTitle (G4int id) const final |
virtual G4String | GetP2ZAxisTitle (G4int id) const final |
virtual G4bool | WriteOnAscii (std::ofstream &output) final |
virtual std::shared_ptr < G4HnManager > | GetHnManager () final |
Protected Member Functions inherited from G4THnManager< tools::histo::p2d > | |
void | AddTVector (const std::vector< tools::histo::p2d * > &tVector) |
std::vector< tools::histo::p2d * > ::iterator | BeginT () |
std::vector< tools::histo::p2d * > ::iterator | EndT () |
std::vector< tools::histo::p2d * > ::const_iterator | BeginConstT () const |
std::vector< tools::histo::p2d * > ::const_iterator | EndConstT () const |
tools::histo::p2d * | GetTInFunction (G4int id, G4String functionName, G4bool warn=true, G4bool onlyIfActive=true) const |
G4int | RegisterT (tools::histo::p2d *t, const G4String &name) |
G4int | GetTId (const G4String &name, G4bool warn=true) const |
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 const G4int | kDimension = 2 |
Additional Inherited Members | |
Protected Attributes inherited from G4THnManager< tools::histo::p2d > | |
const G4AnalysisManagerState & | fState |
std::vector< tools::histo::p2d * > | fTVector |
std::map< G4String, G4int > | fNameIdMap |
std::shared_ptr< G4HnManager > | fHnManager |
Definition at line 52 of file G4P2ToolsManager.hh.
|
explicit |
Definition at line 45 of file G4P2ToolsManager.cc.
|
virtual |
Definition at line 51 of file G4P2ToolsManager.cc.
Definition at line 692 of file G4P2ToolsManager.cc.
References AddP2Information(), G4THnManager< tools::histo::p2d >::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kLinear, G4AnalysisVerbose::Message(), and G4THnManager< tools::histo::p2d >::RegisterT().
Referenced by G4CsvAnalysisReader::ReadP2Impl(), G4XmlAnalysisReader::ReadP2Impl(), and G4RootAnalysisReader::ReadP2Impl().
|
private |
Definition at line 265 of file G4P2ToolsManager.cc.
References G4HnInformation::AddDimension(), G4THnManager< tools::histo::p2d >::fHnManager, and kLinear.
Referenced by AddP2(), and CreateP2().
void G4P2ToolsManager::AddP2Vector | ( | const std::vector< tools::histo::p2d * > & | p2Vector | ) |
Definition at line 716 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::AddTVector().
Referenced by G4XmlAnalysisManager::WriteP2(), G4CsvAnalysisManager::WriteP2(), and G4RootAnalysisManager::WriteP2().
|
inline |
Definition at line 202 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::BeginConstT().
|
inline |
Definition at line 195 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::BeginT().
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 286 of file G4P2ToolsManager.cc.
References AddP2Information(), G4THnManager< tools::histo::p2d >::fState, G4Analysis::GetBinScheme(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and G4THnManager< tools::histo::p2d >::RegisterT().
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 332 of file G4P2ToolsManager.cc.
References AddP2Information(), G4THnManager< tools::histo::p2d >::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUser, G4AnalysisVerbose::Message(), and G4THnManager< tools::histo::p2d >::RegisterT().
|
inline |
Definition at line 206 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::EndConstT().
|
inline |
Definition at line 198 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::EndT().
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 462 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::fHnManager, G4THnManager< tools::histo::p2d >::fState, G4AnalysisManagerState::GetIsActivation(), G4THnManager< tools::histo::p2d >::GetTInFunction(), G4AnalysisManagerState::GetVerboseL4(), G4Analysis::kX, G4Analysis::kY, G4Analysis::kZ, and G4AnalysisVerbose::Message().
|
inlinefinalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 215 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::fHnManager.
|
inline |
Definition at line 212 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::fHnManager.
Referenced by G4ToolsAnalysisManager::MergeImpl(), G4XmlAnalysisManager::WriteP2(), G4CsvAnalysisManager::WriteP2(), and G4RootAnalysisManager::WriteP2().
tools::histo::p2d * G4P2ToolsManager::GetP2 | ( | G4int | id, |
G4bool | warn = true , |
||
G4bool | onlyIfActive = true |
||
) | const |
Definition at line 723 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction().
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 503 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTId().
Implements G4VP2Manager.
Definition at line 509 of file G4P2ToolsManager.cc.
References G4Analysis::GetNbins(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VP2Manager.
Definition at line 547 of file G4P2ToolsManager.cc.
References G4Analysis::GetNbins(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VP2Manager.
Definition at line 641 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::GetTitle().
|
inline |
Definition at line 209 of file G4P2ToolsManager.hh.
References G4THnManager< tools::histo::p2d >::fTVector.
Referenced by G4ToolsAnalysisManager::MergeImpl(), G4XmlAnalysisManager::WriteP2(), G4CsvAnalysisManager::WriteP2(), and G4RootAnalysisManager::WriteP2().
Implements G4VP2Manager.
Definition at line 650 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 529 of file G4P2ToolsManager.cc.
References G4Analysis::GetMax(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VP2Manager.
Definition at line 518 of file G4P2ToolsManager.cc.
References G4Analysis::GetMin(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VP2Manager.
Definition at line 538 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 659 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 567 of file G4P2ToolsManager.cc.
References G4Analysis::GetMax(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VP2Manager.
Definition at line 556 of file G4P2ToolsManager.cc.
References G4Analysis::GetMin(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VP2Manager.
Definition at line 576 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 668 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 596 of file G4P2ToolsManager.cc.
References G4Analysis::GetMax(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kZ.
Implements G4VP2Manager.
Definition at line 585 of file G4P2ToolsManager.cc.
References G4Analysis::GetMin(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kZ.
Implements G4VP2Manager.
Definition at line 453 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction().
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 371 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::fHnManager, G4THnManager< tools::histo::p2d >::fState, G4Analysis::GetBinScheme(), G4THnManager< tools::histo::p2d >::GetTInFunction(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 415 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::fHnManager, G4THnManager< tools::histo::p2d >::fState, G4THnManager< tools::histo::p2d >::GetTInFunction(), G4AnalysisManagerState::GetVerboseL4(), kUser, and G4AnalysisVerbose::Message().
Implements G4VP2Manager.
Definition at line 605 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::SetTitle().
Implements G4VP2Manager.
Definition at line 614 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction(), G4Analysis::kX, and G4Analysis::SetAxisTitle().
Implements G4VP2Manager.
Definition at line 623 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction(), G4Analysis::kY, and G4Analysis::SetAxisTitle().
Implements G4VP2Manager.
Definition at line 632 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::GetTInFunction(), G4Analysis::kZ, and G4Analysis::SetAxisTitle().
|
finalprotectedvirtual |
Implements G4VP2Manager.
Definition at line 677 of file G4P2ToolsManager.cc.
References G4THnManager< tools::histo::p2d >::fHnManager.
|
staticprivate |
Definition at line 190 of file G4P2ToolsManager.hh.