Geant4
10.02.p02
|
#include <G4H2ToolsManager.hh>
Public Member Functions | |
G4H2ToolsManager (const G4AnalysisManagerState &state) | |
virtual | ~G4H2ToolsManager () |
G4int | AddH2 (const G4String &name, tools::histo::h2d *h2d) |
void | AddH2Vector (const std::vector< tools::histo::h2d * > &h2Vector) |
tools::histo::h2d * | GetH2 (G4int id, G4bool warn=true, G4bool onlyIfActive=true) const |
std::vector< tools::histo::h2d * > ::iterator | BeginH2 () |
std::vector< tools::histo::h2d * > ::iterator | EndH2 () |
std::vector< tools::histo::h2d * > ::const_iterator | BeginConstH2 () const |
std::vector< tools::histo::h2d * > ::const_iterator | EndConstH2 () const |
const std::vector < tools::histo::h2d * > & | GetH2Vector () const |
const std::vector < G4HnInformation * > & | GetHnVector () const |
Public Member Functions inherited from G4VH2Manager | |
G4VH2Manager () | |
virtual | ~G4VH2Manager () |
G4VH2Manager (const G4VH2Manager &rhs)=delete | |
G4VH2Manager & | operator= (const G4VH2Manager &rhs)=delete |
Public Member Functions inherited from G4THnManager< tools::histo::h2d > | |
G4THnManager (const G4AnalysisManagerState &state, const G4String &hnType) | |
virtual | ~G4THnManager () |
G4bool | Reset () |
G4bool | IsEmpty () const |
Protected Member Functions | |
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 |
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 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 | 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 | ScaleH2 (G4int id, G4double factor) final |
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 G4double | GetH2Xmin (G4int id) const final |
virtual G4double | GetH2Xmax (G4int id) const final |
virtual G4double | GetH2XWidth (G4int id) const final |
virtual G4int | GetH2Nybins (G4int id) const final |
virtual G4double | GetH2Ymin (G4int id) const final |
virtual G4double | GetH2Ymax (G4int id) const final |
virtual G4double | GetH2YWidth (G4int id) const 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 G4String | GetH2Title (G4int id) const final |
virtual G4String | GetH2XAxisTitle (G4int id) const final |
virtual G4String | GetH2YAxisTitle (G4int id) const final |
virtual G4String | GetH2ZAxisTitle (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::h2d > | |
void | AddTVector (const std::vector< tools::histo::h2d * > &tVector) |
std::vector< tools::histo::h2d * > ::iterator | BeginT () |
std::vector< tools::histo::h2d * > ::iterator | EndT () |
std::vector< tools::histo::h2d * > ::const_iterator | BeginConstT () const |
std::vector< tools::histo::h2d * > ::const_iterator | EndConstT () const |
tools::histo::h2d * | GetTInFunction (G4int id, G4String functionName, G4bool warn=true, G4bool onlyIfActive=true) const |
G4int | RegisterT (tools::histo::h2d *t, const G4String &name) |
G4int | GetTId (const G4String &name, G4bool warn=true) const |
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 const G4int | kDimension = 2 |
Additional Inherited Members | |
Protected Attributes inherited from G4THnManager< tools::histo::h2d > | |
const G4AnalysisManagerState & | fState |
std::vector< tools::histo::h2d * > | fTVector |
std::map< G4String, G4int > | fNameIdMap |
std::shared_ptr< G4HnManager > | fHnManager |
Definition at line 52 of file G4H2ToolsManager.hh.
|
explicit |
Definition at line 45 of file G4H2ToolsManager.cc.
|
virtual |
Definition at line 51 of file G4H2ToolsManager.cc.
Definition at line 605 of file G4H2ToolsManager.cc.
References AddH2Information(), G4THnManager< tools::histo::h2d >::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kLinear, G4AnalysisVerbose::Message(), and G4THnManager< tools::histo::h2d >::RegisterT().
Referenced by G4CsvAnalysisReader::ReadH2Impl(), G4XmlAnalysisReader::ReadH2Impl(), and G4RootAnalysisReader::ReadH2Impl().
|
private |
Definition at line 232 of file G4H2ToolsManager.cc.
References G4HnInformation::AddDimension(), and G4THnManager< tools::histo::h2d >::fHnManager.
Referenced by AddH2(), and CreateH2().
void G4H2ToolsManager::AddH2Vector | ( | const std::vector< tools::histo::h2d * > & | h2Vector | ) |
Definition at line 629 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::AddTVector().
Referenced by G4XmlAnalysisManager::WriteH2(), G4CsvAnalysisManager::WriteH2(), and G4RootAnalysisManager::WriteH2().
|
inline |
Definition at line 185 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::BeginConstT().
|
inline |
Definition at line 178 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::BeginT().
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 250 of file G4H2ToolsManager.cc.
References AddH2Information(), G4THnManager< tools::histo::h2d >::fState, G4Analysis::GetBinScheme(), G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), G4AnalysisVerbose::Message(), and G4THnManager< tools::histo::h2d >::RegisterT().
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 289 of file G4H2ToolsManager.cc.
References AddH2Information(), G4THnManager< tools::histo::h2d >::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUser, G4AnalysisVerbose::Message(), and G4THnManager< tools::histo::h2d >::RegisterT().
|
inline |
Definition at line 189 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::EndConstT().
|
inline |
Definition at line 181 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::EndT().
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 402 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(), G4AnalysisManagerState::GetVerboseL4(), G4Analysis::kX, G4Analysis::kY, and G4AnalysisVerbose::Message().
tools::histo::h2d * G4H2ToolsManager::GetH2 | ( | G4int | id, |
G4bool | warn = true , |
||
G4bool | onlyIfActive = true |
||
) | const |
Definition at line 635 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction().
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 436 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTId().
Implements G4VH2Manager.
Definition at line 442 of file G4H2ToolsManager.cc.
References G4Analysis::GetNbins(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VH2Manager.
Definition at line 480 of file G4H2ToolsManager.cc.
References G4Analysis::GetNbins(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VH2Manager.
Definition at line 554 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::GetTitle().
|
inline |
Definition at line 192 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::fTVector.
Referenced by G4ToolsAnalysisManager::MergeImpl(), G4ToolsAnalysisManager::PlotImpl(), G4XmlAnalysisManager::WriteH2(), G4CsvAnalysisManager::WriteH2(), and G4RootAnalysisManager::WriteH2().
Implements G4VH2Manager.
Definition at line 563 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 462 of file G4H2ToolsManager.cc.
References G4Analysis::GetMax(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VH2Manager.
Definition at line 451 of file G4H2ToolsManager.cc.
References G4Analysis::GetMin(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kX.
Implements G4VH2Manager.
Definition at line 471 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 572 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 500 of file G4H2ToolsManager.cc.
References G4Analysis::GetMax(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VH2Manager.
Definition at line 489 of file G4H2ToolsManager.cc.
References G4Analysis::GetMin(), G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::kY.
Implements G4VH2Manager.
Definition at line 509 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 581 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 198 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::fHnManager.
|
inline |
Definition at line 195 of file G4H2ToolsManager.hh.
References G4THnManager< tools::histo::h2d >::fHnManager.
Referenced by G4ToolsAnalysisManager::MergeImpl(), G4ToolsAnalysisManager::PlotImpl(), G4XmlAnalysisManager::WriteH2(), G4CsvAnalysisManager::WriteH2(), and G4RootAnalysisManager::WriteH2().
Implements G4VH2Manager.
Definition at line 393 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction().
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 323 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::fHnManager, G4THnManager< tools::histo::h2d >::fState, G4Analysis::GetBinScheme(), G4THnManager< tools::histo::h2d >::GetTInFunction(), G4AnalysisManagerState::GetVerboseL4(), and G4AnalysisVerbose::Message().
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 361 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::fHnManager, G4THnManager< tools::histo::h2d >::fState, G4THnManager< tools::histo::h2d >::GetTInFunction(), G4AnalysisManagerState::GetVerboseL4(), kUser, and G4AnalysisVerbose::Message().
Implements G4VH2Manager.
Definition at line 518 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction(), and G4Analysis::SetTitle().
Implements G4VH2Manager.
Definition at line 527 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction(), G4Analysis::kX, and G4Analysis::SetAxisTitle().
Implements G4VH2Manager.
Definition at line 536 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction(), G4Analysis::kY, and G4Analysis::SetAxisTitle().
Implements G4VH2Manager.
Definition at line 545 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::GetTInFunction(), G4Analysis::kZ, and G4Analysis::SetAxisTitle().
|
finalprotectedvirtual |
Implements G4VH2Manager.
Definition at line 590 of file G4H2ToolsManager.cc.
References G4THnManager< tools::histo::h2d >::fHnManager.
|
staticprivate |
Definition at line 174 of file G4H2ToolsManager.hh.