Geant4
10.01.p02
|
#include <G4P1ToolsManager.hh>
Public Member Functions | |
G4P1ToolsManager (const G4AnalysisManagerState &state) | |
virtual | ~G4P1ToolsManager () |
G4int | AddP1 (const G4String &name, tools::histo::p1d *p1d) |
void | AddP1Vector (const std::vector< tools::histo::p1d * > &p1Vector) |
G4bool | Reset () |
G4bool | IsEmpty () const |
tools::histo::p1d * | GetP1 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const |
std::vector< tools::histo::p1d * > ::iterator | BeginP1 () |
std::vector< tools::histo::p1d * > ::iterator | EndP1 () |
std::vector< tools::histo::p1d * > ::const_iterator | BeginConstP1 () const |
std::vector< tools::histo::p1d * > ::const_iterator | EndConstP1 () const |
const std::vector < tools::histo::p1d * > & | GetP1Vector () 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 | CreateP1 (const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinScheme="linear") |
virtual G4int | CreateP1 (const G4String &name, const G4String &title, const std::vector< G4double > &edges, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none") |
virtual G4bool | SetP1 (G4int id, G4int nbins, G4double xmin, G4double xmax, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinScheme="linear") |
virtual G4bool | SetP1 (G4int id, const std::vector< G4double > &edges, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none") |
virtual G4bool | ScaleP1 (G4int id, G4double factor) |
virtual G4bool | FillP1 (G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0) |
virtual G4int | GetP1Id (const G4String &name, G4bool warn=true) const |
virtual G4int | GetP1Nbins (G4int id) const |
virtual G4double | GetP1Xmin (G4int id) const |
virtual G4double | GetP1Xmax (G4int id) const |
virtual G4double | GetP1XWidth (G4int id) const |
virtual G4double | GetP1Ymin (G4int id) const |
virtual G4double | GetP1Ymax (G4int id) const |
virtual G4bool | SetP1Title (G4int id, const G4String &title) |
virtual G4bool | SetP1XAxisTitle (G4int id, const G4String &title) |
virtual G4bool | SetP1YAxisTitle (G4int id, const G4String &title) |
virtual G4String | GetP1Title (G4int id) const |
virtual G4String | GetP1XAxisTitle (G4int id) const |
virtual G4String | GetP1YAxisTitle (G4int id) const |
Protected Member Functions inherited from G4VP1Manager | |
G4VP1Manager (const G4AnalysisManagerState &state) | |
virtual | ~G4VP1Manager () |
Private Member Functions | |
virtual tools::histo::p1d * | GetP1InFunction (G4int id, G4String functionName, G4bool warn=true, G4bool onlyIfActive=true) const |
void | AddP1Information (const G4String &name, const G4String &xunitName, const G4String &yunitName, const G4String &xfcnName, const G4String &yfcnName, G4BinScheme xbinScheme) const |
G4int | RegisterToolsP1 (tools::histo::p1d *p1d, const G4String &name) |
Private Attributes | |
G4BaseToolsManager | fBaseToolsManager |
std::vector< tools::histo::p1d * > | fP1Vector |
std::map< G4String, G4int > | fP1NameIdMap |
Additional Inherited Members | |
Protected Attributes inherited from G4VP1Manager | |
G4HnManager * | fHnManager |
Protected Attributes inherited from G4BaseAnalysisManager | |
const G4AnalysisManagerState & | fState |
G4int | fFirstId |
G4bool | fLockFirstId |
Definition at line 52 of file G4P1ToolsManager.hh.
G4P1ToolsManager::G4P1ToolsManager | ( | const G4AnalysisManagerState & | state | ) |
Definition at line 46 of file G4P1ToolsManager.cc.
|
virtual |
Definition at line 55 of file G4P1ToolsManager.cc.
References fP1Vector.
Definition at line 611 of file G4P1ToolsManager.cc.
References AddP1Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kLinearBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsP1().
Referenced by G4CsvAnalysisReader::ReadP1Impl(), G4XmlAnalysisReader::ReadP1Impl(), and G4RootAnalysisReader::ReadP1Impl().
|
private |
Definition at line 263 of file G4P1ToolsManager.cc.
References G4HnManager::AddH2Information(), G4VP1Manager::fHnManager, G4Analysis::GetFunction(), and G4Analysis::GetUnitValue().
Referenced by AddP1(), and CreateP1().
void G4P1ToolsManager::AddP1Vector | ( | const std::vector< tools::histo::p1d * > & | p1Vector | ) |
Definition at line 634 of file G4P1ToolsManager.cc.
References fP1Vector, G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().
Referenced by G4RootAnalysisManager::WriteP1(), G4XmlAnalysisManager::WriteP1(), and G4CsvAnalysisManager::WriteP1().
|
inline |
Definition at line 188 of file G4P1ToolsManager.hh.
References fP1Vector.
|
inline |
Definition at line 181 of file G4P1ToolsManager.hh.
References fP1Vector.
|
protectedvirtual |
Implements G4VP1Manager.
Definition at line 297 of file G4P1ToolsManager.cc.
References AddP1Information(), G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and RegisterToolsP1().
|
protectedvirtual |
Implements G4VP1Manager.
Definition at line 332 of file G4P1ToolsManager.cc.
References AddP1Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsP1().
|
inline |
Definition at line 192 of file G4P1ToolsManager.hh.
References fP1Vector.
|
inline |
Definition at line 184 of file G4P1ToolsManager.hh.
References fP1Vector.
|
protectedvirtual |
Implements G4VP1Manager.
Definition at line 443 of file G4P1ToolsManager.cc.
References G4HnDimensionInformation::fFcn, G4VP1Manager::fHnManager, G4BaseAnalysisManager::fState, G4HnDimensionInformation::fUnit, G4HnManager::GetActivation(), G4HnManager::GetHnDimensionInformation(), G4AnalysisManagerState::GetIsActivation(), GetP1InFunction(), G4AnalysisManagerState::GetVerboseL4(), G4HnInformation::kX, G4HnInformation::kY, and G4AnalysisVerbose::Message().
|
inline |
Definition at line 198 of file G4P1ToolsManager.hh.
References G4VP1Manager::fHnManager, and G4HnManager::GetHnVector().
Referenced by G4RootAnalysisManager::WriteP1(), G4XmlAnalysisManager::WriteP1(), and G4CsvAnalysisManager::WriteP1().
tools::histo::p1d * G4P1ToolsManager::GetP1 | ( | G4int | id, |
G4bool | warn = true , |
||
G4bool | onlyIfActive = true |
||
) | const |
Definition at line 675 of file G4P1ToolsManager.cc.
References GetP1InFunction().
|
protectedvirtual |
Implements G4VP1Manager.
Definition at line 478 of file G4P1ToolsManager.cc.
References fP1NameIdMap, G4Exception(), JustWarning, and G4Analysis::kInvalidId.
|
privatevirtual |
Definition at line 238 of file G4P1ToolsManager.cc.
References G4BaseAnalysisManager::fFirstId, G4VP1Manager::fHnManager, fP1Vector, G4BaseAnalysisManager::fState, G4Exception(), G4HnManager::GetActivation(), G4AnalysisManagerState::GetIsActivation(), and JustWarning.
Referenced by FillP1(), GetP1(), GetP1Nbins(), GetP1Title(), GetP1XAxisTitle(), GetP1Xmax(), GetP1Xmin(), GetP1XWidth(), GetP1YAxisTitle(), GetP1Ymax(), GetP1Ymin(), ScaleP1(), SetP1(), SetP1Title(), SetP1XAxisTitle(), and SetP1YAxisTitle().
Implements G4VP1Manager.
Definition at line 494 of file G4P1ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetNbins(), GetP1InFunction(), and G4BaseToolsManager::kX.
Implements G4VP1Manager.
Definition at line 579 of file G4P1ToolsManager.cc.
References fBaseToolsManager, GetP1InFunction(), and G4BaseToolsManager::GetTitle().
|
inline |
Definition at line 195 of file G4P1ToolsManager.hh.
References fP1Vector.
Referenced by G4RootAnalysisManager::WriteP1(), G4XmlAnalysisManager::WriteP1(), and G4CsvAnalysisManager::WriteP1().
Implements G4VP1Manager.
Definition at line 589 of file G4P1ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetP1InFunction(), and G4BaseToolsManager::kX.
Implements G4VP1Manager.
Definition at line 514 of file G4P1ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetMax(), GetP1InFunction(), and G4BaseToolsManager::kX.
Implements G4VP1Manager.
Definition at line 503 of file G4P1ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetMin(), GetP1InFunction(), and G4BaseToolsManager::kX.
Implements G4VP1Manager.
Definition at line 523 of file G4P1ToolsManager.cc.
References fBaseToolsManager, GetP1InFunction(), G4BaseToolsManager::GetWidth(), and G4BaseToolsManager::kX.
Implements G4VP1Manager.
Definition at line 598 of file G4P1ToolsManager.cc.
References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetP1InFunction(), and G4BaseToolsManager::kY.
Implements G4VP1Manager.
Definition at line 543 of file G4P1ToolsManager.cc.
References GetP1InFunction().
Implements G4VP1Manager.
Definition at line 532 of file G4P1ToolsManager.cc.
References GetP1InFunction().
G4bool G4P1ToolsManager::IsEmpty | ( | ) | const |
Definition at line 669 of file G4P1ToolsManager.cc.
References fP1Vector.
Referenced by G4RootAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::CloseFileImpl(), G4XmlAnalysisManager::WriteImpl(), G4RootAnalysisManager::WriteImpl(), and G4CsvAnalysisManager::WriteImpl().
Definition at line 281 of file G4P1ToolsManager.cc.
References G4BaseAnalysisManager::fFirstId, G4BaseAnalysisManager::fLockFirstId, fP1NameIdMap, fP1Vector, and name.
Referenced by AddP1(), and CreateP1().
G4bool G4P1ToolsManager::Reset | ( | ) |
Definition at line 653 of file G4P1ToolsManager.cc.
References fP1Vector.
Referenced by G4RootAnalysisReader::Reset(), G4RootAnalysisManager::Reset(), G4XmlAnalysisManager::Reset(), and G4CsvAnalysisManager::Reset().
Implements G4VP1Manager.
Definition at line 434 of file G4P1ToolsManager.cc.
References GetP1InFunction().
|
protectedvirtual |
Implements G4VP1Manager.
Definition at line 364 of file G4P1ToolsManager.cc.
References G4VP1Manager::fHnManager, G4BaseAnalysisManager::fState, G4Analysis::GetBinScheme(), G4HnManager::GetHnInformation(), G4HnInformation::GetName(), GetP1InFunction(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
|
protectedvirtual |
Implements G4VP1Manager.
Definition at line 400 of file G4P1ToolsManager.cc.
References G4VP1Manager::fHnManager, G4BaseAnalysisManager::fState, G4HnManager::GetHnInformation(), G4HnInformation::GetName(), GetP1InFunction(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and G4HnManager::SetActivation().
Implements G4VP1Manager.
Definition at line 552 of file G4P1ToolsManager.cc.
References fBaseToolsManager, GetP1InFunction(), and G4BaseToolsManager::SetTitle().
Implements G4VP1Manager.
Definition at line 561 of file G4P1ToolsManager.cc.
References fBaseToolsManager, GetP1InFunction(), G4BaseToolsManager::kX, and G4BaseToolsManager::SetAxisTitle().
Implements G4VP1Manager.
Definition at line 570 of file G4P1ToolsManager.cc.
References fBaseToolsManager, GetP1InFunction(), G4BaseToolsManager::kY, and G4BaseToolsManager::SetAxisTitle().
|
private |
Definition at line 174 of file G4P1ToolsManager.hh.
Referenced by GetP1Nbins(), GetP1Title(), GetP1XAxisTitle(), GetP1Xmax(), GetP1Xmin(), GetP1XWidth(), GetP1YAxisTitle(), SetP1Title(), SetP1XAxisTitle(), and SetP1YAxisTitle().
Definition at line 176 of file G4P1ToolsManager.hh.
Referenced by GetP1Id(), and RegisterToolsP1().
|
private |
Definition at line 175 of file G4P1ToolsManager.hh.
Referenced by AddP1Vector(), BeginConstP1(), BeginP1(), EndConstP1(), EndP1(), GetP1InFunction(), GetP1Vector(), IsEmpty(), RegisterToolsP1(), Reset(), and ~G4P1ToolsManager().