Geant4
10.01.p02
|
#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) |
G4bool | Reset () |
G4bool | IsEmpty () const |
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 G4BaseAnalysisManager | |
G4BaseAnalysisManager (const G4AnalysisManagerState &state) | |
virtual | ~G4BaseAnalysisManager () |
G4bool | SetFirstId (G4int firstId) |
G4int | GetFirstId () 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") |
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") |
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") |
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") |
virtual G4bool | ScaleP2 (G4int id, G4double factor) |
virtual G4bool | FillP2 (G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0) |
virtual G4int | GetP2Id (const G4String &name, G4bool warn=true) const |
virtual G4int | GetP2Nxbins (G4int id) const |
virtual G4double | GetP2Xmin (G4int id) const |
virtual G4double | GetP2Xmax (G4int id) const |
virtual G4double | GetP2XWidth (G4int id) const |
virtual G4int | GetP2Nybins (G4int id) const |
virtual G4double | GetP2Ymin (G4int id) const |
virtual G4double | GetP2Ymax (G4int id) const |
virtual G4double | GetP2YWidth (G4int id) const |
virtual G4double | GetP2Zmin (G4int id) const |
virtual G4double | GetP2Zmax (G4int id) const |
virtual G4bool | SetP2Title (G4int id, const G4String &title) |
virtual G4bool | SetP2XAxisTitle (G4int id, const G4String &title) |
virtual G4bool | SetP2YAxisTitle (G4int id, const G4String &title) |
virtual G4bool | SetP2ZAxisTitle (G4int id, const G4String &title) |
virtual G4String | GetP2Title (G4int id) const |
virtual G4String | GetP2XAxisTitle (G4int id) const |
virtual G4String | GetP2YAxisTitle (G4int id) const |
virtual G4String | GetP2ZAxisTitle (G4int id) const |
virtual G4bool | WriteOnAscii (std::ofstream &output) |
Protected Member Functions inherited from G4VP2Manager | |
G4VP2Manager (const G4AnalysisManagerState &state) | |
virtual | ~G4VP2Manager () |
Private Member Functions | |
virtual tools::histo::p2d * | GetP2InFunction (G4int id, G4String function, G4bool warn=true, G4bool onlyIfActive=true) const |
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 |
G4int | RegisterToolsP2 (tools::histo::p2d *p2d, const G4String &name) |
Private Attributes | |
G4BaseToolsManager | fBaseToolsManager |
std::vector< tools::histo::p2d * > | fP2Vector |
std::map< G4String, G4int > | fP2NameIdMap |
Additional Inherited Members | |
Protected Attributes inherited from G4VP2Manager | |
G4HnManager * | fHnManager |
Protected Attributes inherited from G4BaseAnalysisManager | |
const G4AnalysisManagerState & | fState |
G4int | fFirstId |
G4bool | fLockFirstId |
Definition at line 51 of file G4P2ToolsManager.hh.
G4P2ToolsManager::G4P2ToolsManager | ( | const G4AnalysisManagerState & | state | ) |
Definition at line 42 of file G4P2ToolsManager.cc.
|
virtual |
Definition at line 51 of file G4P2ToolsManager.cc.
References fP2Vector.
Definition at line 780 of file G4P2ToolsManager.cc.
References AddP2Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kLinearBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsP2().
Referenced by G4CsvAnalysisReader::ReadP2Impl(), G4XmlAnalysisReader::ReadP2Impl(), and G4RootAnalysisReader::ReadP2Impl().
|
private |
Definition at line 324 of file G4P2ToolsManager.cc.
References G4HnManager::AddH3Information(), G4VP2Manager::fHnManager, G4Analysis::GetFunction(), G4Analysis::GetUnitValue(), and kLinearBinScheme.
Referenced by AddP2(), and CreateP2().
void G4P2ToolsManager::AddP2Vector | ( | const std::vector< tools::histo::p2d * > & | p2Vector | ) |
Definition at line 804 of file G4P2ToolsManager.cc.
References fP2Vector, G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().
Referenced by G4RootAnalysisManager::WriteP2(), G4XmlAnalysisManager::WriteP2(), and G4CsvAnalysisManager::WriteP2().
|
inline |
Definition at line 210 of file G4P2ToolsManager.hh.
References fP2Vector.
|
inline |
Definition at line 203 of file G4P2ToolsManager.hh.
References fP2Vector.
|
protectedvirtual |
Implements G4VP2Manager.
Definition at line 364 of file G4P2ToolsManager.cc.
References AddP2Information(), G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and RegisterToolsP2().
|
protectedvirtual |
Implements G4VP2Manager.
Definition at line 410 of file G4P2ToolsManager.cc.
References AddP2Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsP2().
|
inline |
Definition at line 214 of file G4P2ToolsManager.hh.
References fP2Vector.
|
inline |
Definition at line 206 of file G4P2ToolsManager.hh.
References fP2Vector.
|
protectedvirtual |
Implements G4VP2Manager.
Definition at line 540 of file G4P2ToolsManager.cc.
References G4HnDimensionInformation::fFcn, G4VP2Manager::fHnManager, G4BaseAnalysisManager::fState, G4HnDimensionInformation::fUnit, G4HnManager::GetActivation(), G4HnManager::GetHnDimensionInformation(), G4AnalysisManagerState::GetIsActivation(), GetP2InFunction(), G4AnalysisManagerState::GetVerboseL4(), G4HnInformation::kX, G4HnInformation::kY, G4HnInformation::kZ, and G4AnalysisVerbose::Message().
|
inline |
Definition at line 220 of file G4P2ToolsManager.hh.
References G4VP2Manager::fHnManager, and G4HnManager::GetHnVector().
Referenced by G4RootAnalysisManager::WriteP2(), G4XmlAnalysisManager::WriteP2(), and G4CsvAnalysisManager::WriteP2().
tools::histo::p2d * G4P2ToolsManager::GetP2 | ( | G4int | id, |
G4bool | warn = true , |
||
G4bool | onlyIfActive = true |
||
) | const |
Definition at line 845 of file G4P2ToolsManager.cc.
References GetP2InFunction().
|
protectedvirtual |
Implements G4VP2Manager.
Definition at line 581 of file G4P2ToolsManager.cc.
References fP2NameIdMap, G4Exception(), JustWarning, and G4Analysis::kInvalidId.
|
privatevirtual |
Definition at line 297 of file G4P2ToolsManager.cc.
References G4BaseAnalysisManager::fFirstId, G4VP2Manager::fHnManager, fP2Vector, G4BaseAnalysisManager::fState, G4Exception(), G4HnManager::GetActivation(), G4AnalysisManagerState::GetIsActivation(), and JustWarning.
Referenced by FillP2(), GetP2(), GetP2Nxbins(), GetP2Nybins(), GetP2Title(), GetP2XAxisTitle(), GetP2Xmax(), GetP2Xmin(), GetP2XWidth(), GetP2YAxisTitle(), GetP2Ymax(), GetP2Ymin(), GetP2YWidth(), GetP2ZAxisTitle(), GetP2Zmax(), GetP2Zmin(), ScaleP2(), SetP2(), SetP2Title(), SetP2XAxisTitle(), SetP2YAxisTitle(), and SetP2ZAxisTitle().
Implements G4VP2Manager.
Definition at line 597 of file G4P2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetNbins(), GetP2InFunction(), and G4BaseToolsManager::kX.
Implements G4VP2Manager.
Definition at line 635 of file G4P2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetNbins(), GetP2InFunction(), and G4BaseToolsManager::kY.
Implements G4VP2Manager.
Definition at line 729 of file G4P2ToolsManager.cc.
References fBaseToolsManager, GetP2InFunction(), and G4BaseToolsManager::GetTitle().
|
inline |
Definition at line 217 of file G4P2ToolsManager.hh.
References fP2Vector.
Referenced by G4RootAnalysisManager::WriteP2(), G4XmlAnalysisManager::WriteP2(), and G4CsvAnalysisManager::WriteP2().
Implements G4VP2Manager.
Definition at line 738 of file G4P2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetP2InFunction(), and G4BaseToolsManager::kX.
Implements G4VP2Manager.
Definition at line 617 of file G4P2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetMax(), GetP2InFunction(), and G4BaseToolsManager::kX.
Implements G4VP2Manager.
Definition at line 606 of file G4P2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetMin(), GetP2InFunction(), and G4BaseToolsManager::kX.
Implements G4VP2Manager.
Definition at line 626 of file G4P2ToolsManager.cc.
References fBaseToolsManager, GetP2InFunction(), G4BaseToolsManager::GetWidth(), and G4BaseToolsManager::kX.
Implements G4VP2Manager.
Definition at line 747 of file G4P2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetP2InFunction(), and G4BaseToolsManager::kY.
Implements G4VP2Manager.
Definition at line 655 of file G4P2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetMax(), GetP2InFunction(), and G4BaseToolsManager::kY.
Implements G4VP2Manager.
Definition at line 644 of file G4P2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetMin(), GetP2InFunction(), and G4BaseToolsManager::kY.
Implements G4VP2Manager.
Definition at line 664 of file G4P2ToolsManager.cc.
References fBaseToolsManager, GetP2InFunction(), G4BaseToolsManager::GetWidth(), and G4BaseToolsManager::kY.
Implements G4VP2Manager.
Definition at line 756 of file G4P2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetP2InFunction(), and G4BaseToolsManager::kZ.
Implements G4VP2Manager.
Definition at line 684 of file G4P2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetMax(), GetP2InFunction(), and G4BaseToolsManager::kZ.
Implements G4VP2Manager.
Definition at line 673 of file G4P2ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetMin(), GetP2InFunction(), and G4BaseToolsManager::kZ.
G4bool G4P2ToolsManager::IsEmpty | ( | ) | const |
Definition at line 839 of file G4P2ToolsManager.cc.
References fP2Vector.
Referenced by G4RootAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::WriteImpl(), G4RootAnalysisManager::WriteImpl(), and G4CsvAnalysisManager::WriteImpl().
Definition at line 348 of file G4P2ToolsManager.cc.
References G4BaseAnalysisManager::fFirstId, G4BaseAnalysisManager::fLockFirstId, fP2NameIdMap, fP2Vector, and name.
Referenced by AddP2(), and CreateP2().
G4bool G4P2ToolsManager::Reset | ( | ) |
Definition at line 823 of file G4P2ToolsManager.cc.
References fP2Vector.
Referenced by G4RootAnalysisReader::Reset(), G4RootAnalysisManager::Reset(), G4XmlAnalysisManager::Reset(), and G4CsvAnalysisManager::Reset().
Implements G4VP2Manager.
Definition at line 531 of file G4P2ToolsManager.cc.
References GetP2InFunction().
|
protectedvirtual |
Implements G4VP2Manager.
Definition at line 449 of file G4P2ToolsManager.cc.
References G4VP2Manager::fHnManager, G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), GetP2InFunction(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
|
protectedvirtual |
Implements G4VP2Manager.
Definition at line 493 of file G4P2ToolsManager.cc.
References G4VP2Manager::fHnManager, G4BaseAnalysisManager::fState, G4HnManager::GetHnInformation(), G4HnInformation::GetName(), GetP2InFunction(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
Implements G4VP2Manager.
Definition at line 693 of file G4P2ToolsManager.cc.
References fBaseToolsManager, GetP2InFunction(), and G4BaseToolsManager::SetTitle().
Implements G4VP2Manager.
Definition at line 702 of file G4P2ToolsManager.cc.
References fBaseToolsManager, GetP2InFunction(), G4BaseToolsManager::kX, and G4BaseToolsManager::SetAxisTitle().
Implements G4VP2Manager.
Definition at line 711 of file G4P2ToolsManager.cc.
References fBaseToolsManager, GetP2InFunction(), G4BaseToolsManager::kY, and G4BaseToolsManager::SetAxisTitle().
Implements G4VP2Manager.
Definition at line 720 of file G4P2ToolsManager.cc.
References fBaseToolsManager, GetP2InFunction(), G4BaseToolsManager::kZ, and G4BaseToolsManager::SetAxisTitle().
|
protectedvirtual |
Implements G4VP2Manager.
Definition at line 765 of file G4P2ToolsManager.cc.
References G4VP2Manager::fHnManager, and G4HnManager::IsAscii().
|
private |
Definition at line 197 of file G4P2ToolsManager.hh.
Referenced by GetP2Nxbins(), GetP2Nybins(), GetP2Title(), GetP2XAxisTitle(), GetP2Xmax(), GetP2Xmin(), GetP2XWidth(), GetP2YAxisTitle(), GetP2Ymax(), GetP2Ymin(), GetP2YWidth(), GetP2ZAxisTitle(), GetP2Zmax(), GetP2Zmin(), SetP2Title(), SetP2XAxisTitle(), SetP2YAxisTitle(), and SetP2ZAxisTitle().
Definition at line 199 of file G4P2ToolsManager.hh.
Referenced by GetP2Id(), and RegisterToolsP2().
|
private |
Definition at line 198 of file G4P2ToolsManager.hh.
Referenced by AddP2Vector(), BeginConstP2(), BeginP2(), EndConstP2(), EndP2(), GetP2InFunction(), GetP2Vector(), IsEmpty(), RegisterToolsP2(), Reset(), and ~G4P2ToolsManager().