Geant4  10.01.p02
G4P2ToolsManager Class Reference

#include <G4P2ToolsManager.hh>

+ Inheritance diagram for G4P2ToolsManager:
+ Collaboration diagram for G4P2ToolsManager:

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, G4intfP2NameIdMap
 

Additional Inherited Members

- Protected Attributes inherited from G4VP2Manager
G4HnManagerfHnManager
 
- Protected Attributes inherited from G4BaseAnalysisManager
const G4AnalysisManagerStatefState
 
G4int fFirstId
 
G4bool fLockFirstId
 

Detailed Description

Definition at line 51 of file G4P2ToolsManager.hh.

Constructor & Destructor Documentation

G4P2ToolsManager::G4P2ToolsManager ( const G4AnalysisManagerState state)

Definition at line 42 of file G4P2ToolsManager.cc.

G4P2ToolsManager::~G4P2ToolsManager ( )
virtual

Definition at line 51 of file G4P2ToolsManager.cc.

References fP2Vector.

Member Function Documentation

G4int G4P2ToolsManager::AddP2 ( const G4String name,
tools::histo::p2d *  p2d 
)

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4P2ToolsManager::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
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector< tools::histo::p2d * >::const_iterator G4P2ToolsManager::BeginConstP2 ( ) const
inline

Definition at line 210 of file G4P2ToolsManager.hh.

References fP2Vector.

std::vector< tools::histo::p2d * >::iterator G4P2ToolsManager::BeginP2 ( )
inline

Definition at line 203 of file G4P2ToolsManager.hh.

References fP2Vector.

G4int G4P2ToolsManager::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" 
)
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().

+ Here is the call graph for this function:

G4int G4P2ToolsManager::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" 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 410 of file G4P2ToolsManager.cc.

References AddP2Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsP2().

+ Here is the call graph for this function:

std::vector< tools::histo::p2d * >::const_iterator G4P2ToolsManager::EndConstP2 ( ) const
inline

Definition at line 214 of file G4P2ToolsManager.hh.

References fP2Vector.

std::vector< tools::histo::p2d * >::iterator G4P2ToolsManager::EndP2 ( )
inline

Definition at line 206 of file G4P2ToolsManager.hh.

References fP2Vector.

G4bool G4P2ToolsManager::FillP2 ( G4int  id,
G4double  xvalue,
G4double  yvalue,
G4double  zvalue,
G4double  weight = 1.0 
)
protectedvirtual
const std::vector< G4HnInformation * > & G4P2ToolsManager::GetHnVector ( ) const
inline

Definition at line 220 of file G4P2ToolsManager.hh.

References G4VP2Manager::fHnManager, and G4HnManager::GetHnVector().

Referenced by G4RootAnalysisManager::WriteP2(), G4XmlAnalysisManager::WriteP2(), and G4CsvAnalysisManager::WriteP2().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

tools::histo::p2d * G4P2ToolsManager::GetP2 ( G4int  id,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const

Definition at line 845 of file G4P2ToolsManager.cc.

References GetP2InFunction().

+ Here is the call graph for this function:

G4int G4P2ToolsManager::GetP2Id ( const G4String name,
G4bool  warn = true 
) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 581 of file G4P2ToolsManager.cc.

References fP2NameIdMap, G4Exception(), JustWarning, and G4Analysis::kInvalidId.

+ Here is the call graph for this function:

tools::histo::p2d * G4P2ToolsManager::GetP2InFunction ( G4int  id,
G4String  function,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4P2ToolsManager::GetP2Nxbins ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 597 of file G4P2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetNbins(), GetP2InFunction(), and G4BaseToolsManager::kX.

+ Here is the call graph for this function:

G4int G4P2ToolsManager::GetP2Nybins ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 635 of file G4P2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetNbins(), GetP2InFunction(), and G4BaseToolsManager::kY.

+ Here is the call graph for this function:

G4String G4P2ToolsManager::GetP2Title ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 729 of file G4P2ToolsManager.cc.

References fBaseToolsManager, GetP2InFunction(), and G4BaseToolsManager::GetTitle().

+ Here is the call graph for this function:

const std::vector< tools::histo::p2d * > & G4P2ToolsManager::GetP2Vector ( ) const
inline

Definition at line 217 of file G4P2ToolsManager.hh.

References fP2Vector.

Referenced by G4RootAnalysisManager::WriteP2(), G4XmlAnalysisManager::WriteP2(), and G4CsvAnalysisManager::WriteP2().

+ Here is the caller graph for this function:

G4String G4P2ToolsManager::GetP2XAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 738 of file G4P2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetP2InFunction(), and G4BaseToolsManager::kX.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2Xmax ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 617 of file G4P2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetMax(), GetP2InFunction(), and G4BaseToolsManager::kX.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2Xmin ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 606 of file G4P2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetMin(), GetP2InFunction(), and G4BaseToolsManager::kX.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2XWidth ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 626 of file G4P2ToolsManager.cc.

References fBaseToolsManager, GetP2InFunction(), G4BaseToolsManager::GetWidth(), and G4BaseToolsManager::kX.

+ Here is the call graph for this function:

G4String G4P2ToolsManager::GetP2YAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 747 of file G4P2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetP2InFunction(), and G4BaseToolsManager::kY.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2Ymax ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 655 of file G4P2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetMax(), GetP2InFunction(), and G4BaseToolsManager::kY.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2Ymin ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 644 of file G4P2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetMin(), GetP2InFunction(), and G4BaseToolsManager::kY.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2YWidth ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 664 of file G4P2ToolsManager.cc.

References fBaseToolsManager, GetP2InFunction(), G4BaseToolsManager::GetWidth(), and G4BaseToolsManager::kY.

+ Here is the call graph for this function:

G4String G4P2ToolsManager::GetP2ZAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 756 of file G4P2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetAxisTitle(), GetP2InFunction(), and G4BaseToolsManager::kZ.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2Zmax ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 684 of file G4P2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetMax(), GetP2InFunction(), and G4BaseToolsManager::kZ.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2Zmin ( G4int  id) const
protectedvirtual

Implements G4VP2Manager.

Definition at line 673 of file G4P2ToolsManager.cc.

References fBaseToolsManager, G4BaseToolsManager::GetMin(), GetP2InFunction(), and G4BaseToolsManager::kZ.

+ Here is the call graph for this function:

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().

+ Here is the caller graph for this function:

G4int G4P2ToolsManager::RegisterToolsP2 ( tools::histo::p2d *  p2d,
const G4String name 
)
private

Definition at line 348 of file G4P2ToolsManager.cc.

References G4BaseAnalysisManager::fFirstId, G4BaseAnalysisManager::fLockFirstId, fP2NameIdMap, fP2Vector, and name.

Referenced by AddP2(), and CreateP2().

+ Here is the caller graph for this function:

G4bool G4P2ToolsManager::Reset ( )

Definition at line 823 of file G4P2ToolsManager.cc.

References fP2Vector.

Referenced by G4RootAnalysisReader::Reset(), G4RootAnalysisManager::Reset(), G4XmlAnalysisManager::Reset(), and G4CsvAnalysisManager::Reset().

+ Here is the caller graph for this function:

G4bool G4P2ToolsManager::ScaleP2 ( G4int  id,
G4double  factor 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 531 of file G4P2ToolsManager.cc.

References GetP2InFunction().

+ Here is the call graph for this function:

G4bool G4P2ToolsManager::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" 
)
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().

+ Here is the call graph for this function:

G4bool G4P2ToolsManager::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" 
)
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().

+ Here is the call graph for this function:

G4bool G4P2ToolsManager::SetP2Title ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 693 of file G4P2ToolsManager.cc.

References fBaseToolsManager, GetP2InFunction(), and G4BaseToolsManager::SetTitle().

+ Here is the call graph for this function:

G4bool G4P2ToolsManager::SetP2XAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 702 of file G4P2ToolsManager.cc.

References fBaseToolsManager, GetP2InFunction(), G4BaseToolsManager::kX, and G4BaseToolsManager::SetAxisTitle().

+ Here is the call graph for this function:

G4bool G4P2ToolsManager::SetP2YAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 711 of file G4P2ToolsManager.cc.

References fBaseToolsManager, GetP2InFunction(), G4BaseToolsManager::kY, and G4BaseToolsManager::SetAxisTitle().

+ Here is the call graph for this function:

G4bool G4P2ToolsManager::SetP2ZAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VP2Manager.

Definition at line 720 of file G4P2ToolsManager.cc.

References fBaseToolsManager, GetP2InFunction(), G4BaseToolsManager::kZ, and G4BaseToolsManager::SetAxisTitle().

+ Here is the call graph for this function:

G4bool G4P2ToolsManager::WriteOnAscii ( std::ofstream &  output)
protectedvirtual

Implements G4VP2Manager.

Definition at line 765 of file G4P2ToolsManager.cc.

References G4VP2Manager::fHnManager, and G4HnManager::IsAscii().

+ Here is the call graph for this function:

Member Data Documentation

std::map<G4String, G4int> G4P2ToolsManager::fP2NameIdMap
private

Definition at line 199 of file G4P2ToolsManager.hh.

Referenced by GetP2Id(), and RegisterToolsP2().

std::vector<tools::histo::p2d*> G4P2ToolsManager::fP2Vector
private

The documentation for this class was generated from the following files: