Geant4  10.02
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)
 
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
 
G4VP2Manageroperator= (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 G4AnalysisManagerStatefState
 
std::vector< tools::histo::p2d * > fTVector
 
std::map< G4String, G4intfNameIdMap
 
std::shared_ptr< G4HnManagerfHnManager
 

Detailed Description

Definition at line 52 of file G4P2ToolsManager.hh.

Constructor & Destructor Documentation

G4P2ToolsManager::G4P2ToolsManager ( const G4AnalysisManagerState state)
explicit

Definition at line 45 of file G4P2ToolsManager.cc.

G4P2ToolsManager::~G4P2ToolsManager ( )
virtual

Definition at line 51 of file G4P2ToolsManager.cc.

Member Function Documentation

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

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

+ 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 265 of file G4P2ToolsManager.cc.

References G4HnInformation::AddDimension(), G4THnManager< tools::histo::p2d >::fHnManager, and kLinear.

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 716 of file G4P2ToolsManager.cc.

References G4THnManager< tools::histo::p2d >::AddTVector().

Referenced by G4XmlAnalysisManager::WriteP2(), G4CsvAnalysisManager::WriteP2(), and G4RootAnalysisManager::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 202 of file G4P2ToolsManager.hh.

References G4THnManager< tools::histo::p2d >::BeginConstT().

+ Here is the call graph for this function:

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

Definition at line 195 of file G4P2ToolsManager.hh.

References G4THnManager< tools::histo::p2d >::BeginT().

+ Here is the call graph for this function:

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

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

+ Here is the call graph for this function:

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

Definition at line 206 of file G4P2ToolsManager.hh.

References G4THnManager< tools::histo::p2d >::EndConstT().

+ Here is the call graph for this function:

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

Definition at line 198 of file G4P2ToolsManager.hh.

References G4THnManager< tools::histo::p2d >::EndT().

+ Here is the call graph for this function:

G4bool G4P2ToolsManager::FillP2 ( G4int  id,
G4double  xvalue,
G4double  yvalue,
G4double  zvalue,
G4double  weight = 1.0 
)
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().

+ Here is the call graph for this function:

std::shared_ptr< G4HnManager > G4P2ToolsManager::GetHnManager ( )
inlinefinalprotectedvirtual

Implements G4VP2Manager.

Definition at line 215 of file G4P2ToolsManager.hh.

References G4THnManager< tools::histo::p2d >::fHnManager.

const std::vector< G4HnInformation * > & G4P2ToolsManager::GetHnVector ( ) const
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().

+ 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 723 of file G4P2ToolsManager.cc.

References G4THnManager< tools::histo::p2d >::GetTInFunction().

+ Here is the call graph for this function:

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

Implements G4VP2Manager.

Definition at line 503 of file G4P2ToolsManager.cc.

References G4THnManager< tools::histo::p2d >::GetTId().

+ Here is the call graph for this function:

G4int G4P2ToolsManager::GetP2Nxbins ( G4int  id) const
finalprotectedvirtual

Implements G4VP2Manager.

Definition at line 509 of file G4P2ToolsManager.cc.

References G4Analysis::GetNbins(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kX.

+ Here is the call graph for this function:

G4int G4P2ToolsManager::GetP2Nybins ( G4int  id) const
finalprotectedvirtual

Implements G4VP2Manager.

Definition at line 547 of file G4P2ToolsManager.cc.

References G4Analysis::GetNbins(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kY.

+ Here is the call graph for this function:

G4String G4P2ToolsManager::GetP2Title ( G4int  id) const
finalprotectedvirtual

Implements G4VP2Manager.

Definition at line 641 of file G4P2ToolsManager.cc.

References G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::GetTitle().

+ Here is the call graph for this function:

const std::vector< tools::histo::p2d * > & G4P2ToolsManager::GetP2Vector ( ) const
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().

+ Here is the caller graph for this function:

G4String G4P2ToolsManager::GetP2XAxisTitle ( G4int  id) const
finalprotectedvirtual

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.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2Xmax ( G4int  id) const
finalprotectedvirtual

Implements G4VP2Manager.

Definition at line 529 of file G4P2ToolsManager.cc.

References G4Analysis::GetMax(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kX.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2Xmin ( G4int  id) const
finalprotectedvirtual

Implements G4VP2Manager.

Definition at line 518 of file G4P2ToolsManager.cc.

References G4Analysis::GetMin(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kX.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2XWidth ( G4int  id) const
finalprotectedvirtual

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.

+ Here is the call graph for this function:

G4String G4P2ToolsManager::GetP2YAxisTitle ( G4int  id) const
finalprotectedvirtual

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.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2Ymax ( G4int  id) const
finalprotectedvirtual

Implements G4VP2Manager.

Definition at line 567 of file G4P2ToolsManager.cc.

References G4Analysis::GetMax(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kY.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2Ymin ( G4int  id) const
finalprotectedvirtual

Implements G4VP2Manager.

Definition at line 556 of file G4P2ToolsManager.cc.

References G4Analysis::GetMin(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kY.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2YWidth ( G4int  id) const
finalprotectedvirtual

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.

+ Here is the call graph for this function:

G4String G4P2ToolsManager::GetP2ZAxisTitle ( G4int  id) const
finalprotectedvirtual

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.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2Zmax ( G4int  id) const
finalprotectedvirtual

Implements G4VP2Manager.

Definition at line 596 of file G4P2ToolsManager.cc.

References G4Analysis::GetMax(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kZ.

+ Here is the call graph for this function:

G4double G4P2ToolsManager::GetP2Zmin ( G4int  id) const
finalprotectedvirtual

Implements G4VP2Manager.

Definition at line 585 of file G4P2ToolsManager.cc.

References G4Analysis::GetMin(), G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::kZ.

+ Here is the call graph for this function:

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

Implements G4VP2Manager.

Definition at line 453 of file G4P2ToolsManager.cc.

References G4THnManager< tools::histo::p2d >::GetTInFunction().

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

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

+ Here is the call graph for this function:

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

Implements G4VP2Manager.

Definition at line 605 of file G4P2ToolsManager.cc.

References G4THnManager< tools::histo::p2d >::GetTInFunction(), and G4Analysis::SetTitle().

+ Here is the call graph for this function:

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

Implements G4VP2Manager.

Definition at line 614 of file G4P2ToolsManager.cc.

References G4THnManager< tools::histo::p2d >::GetTInFunction(), G4Analysis::kX, and G4Analysis::SetAxisTitle().

+ Here is the call graph for this function:

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

Implements G4VP2Manager.

Definition at line 623 of file G4P2ToolsManager.cc.

References G4THnManager< tools::histo::p2d >::GetTInFunction(), G4Analysis::kY, and G4Analysis::SetAxisTitle().

+ Here is the call graph for this function:

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

Implements G4VP2Manager.

Definition at line 632 of file G4P2ToolsManager.cc.

References G4THnManager< tools::histo::p2d >::GetTInFunction(), G4Analysis::kZ, and G4Analysis::SetAxisTitle().

+ Here is the call graph for this function:

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

Implements G4VP2Manager.

Definition at line 677 of file G4P2ToolsManager.cc.

References G4THnManager< tools::histo::p2d >::fHnManager.

Member Data Documentation

const G4int G4P2ToolsManager::kDimension = 2
staticprivate

Definition at line 190 of file G4P2ToolsManager.hh.


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