Geant4  10.01.p02
G4P1ToolsManager Class Reference

#include <G4P1ToolsManager.hh>

+ Inheritance diagram for G4P1ToolsManager:
+ Collaboration diagram for G4P1ToolsManager:

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

Additional Inherited Members

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

Detailed Description

Definition at line 52 of file G4P1ToolsManager.hh.

Constructor & Destructor Documentation

G4P1ToolsManager::G4P1ToolsManager ( const G4AnalysisManagerState state)

Definition at line 46 of file G4P1ToolsManager.cc.

G4P1ToolsManager::~G4P1ToolsManager ( )
virtual

Definition at line 55 of file G4P1ToolsManager.cc.

References fP1Vector.

Member Function Documentation

G4int G4P1ToolsManager::AddP1 ( const G4String name,
tools::histo::p1d *  p1d 
)

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4P1ToolsManager::AddP1Information ( const G4String name,
const G4String xunitName,
const G4String yunitName,
const G4String xfcnName,
const G4String yfcnName,
G4BinScheme  xbinScheme 
) const
private

Definition at line 263 of file G4P1ToolsManager.cc.

References G4HnManager::AddH2Information(), G4VP1Manager::fHnManager, G4Analysis::GetFunction(), and G4Analysis::GetUnitValue().

Referenced by AddP1(), and CreateP1().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector< tools::histo::p1d * >::const_iterator G4P1ToolsManager::BeginConstP1 ( ) const
inline

Definition at line 188 of file G4P1ToolsManager.hh.

References fP1Vector.

std::vector< tools::histo::p1d * >::iterator G4P1ToolsManager::BeginP1 ( )
inline

Definition at line 181 of file G4P1ToolsManager.hh.

References fP1Vector.

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

+ Here is the call graph for this function:

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

Implements G4VP1Manager.

Definition at line 332 of file G4P1ToolsManager.cc.

References AddP1Information(), G4BaseAnalysisManager::fState, G4AnalysisManagerState::GetVerboseL2(), G4AnalysisManagerState::GetVerboseL4(), kUserBinScheme, G4AnalysisVerbose::Message(), and RegisterToolsP1().

+ Here is the call graph for this function:

std::vector< tools::histo::p1d * >::const_iterator G4P1ToolsManager::EndConstP1 ( ) const
inline

Definition at line 192 of file G4P1ToolsManager.hh.

References fP1Vector.

std::vector< tools::histo::p1d * >::iterator G4P1ToolsManager::EndP1 ( )
inline

Definition at line 184 of file G4P1ToolsManager.hh.

References fP1Vector.

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

Definition at line 198 of file G4P1ToolsManager.hh.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

tools::histo::p1d * G4P1ToolsManager::GetP1 ( G4int  id,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const

Definition at line 675 of file G4P1ToolsManager.cc.

References GetP1InFunction().

+ Here is the call graph for this function:

G4int G4P1ToolsManager::GetP1Id ( const G4String name,
G4bool  warn = true 
) const
protectedvirtual

Implements G4VP1Manager.

Definition at line 478 of file G4P1ToolsManager.cc.

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

+ Here is the call graph for this function:

tools::histo::p1d * G4P1ToolsManager::GetP1InFunction ( G4int  id,
G4String  functionName,
G4bool  warn = true,
G4bool  onlyIfActive = true 
) const
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4P1ToolsManager::GetP1Nbins ( G4int  id) const
protectedvirtual

Implements G4VP1Manager.

Definition at line 494 of file G4P1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4String G4P1ToolsManager::GetP1Title ( G4int  id) const
protectedvirtual

Implements G4VP1Manager.

Definition at line 579 of file G4P1ToolsManager.cc.

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

+ Here is the call graph for this function:

const std::vector< tools::histo::p1d * > & G4P1ToolsManager::GetP1Vector ( ) const
inline

Definition at line 195 of file G4P1ToolsManager.hh.

References fP1Vector.

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

+ Here is the caller graph for this function:

G4String G4P1ToolsManager::GetP1XAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VP1Manager.

Definition at line 589 of file G4P1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4double G4P1ToolsManager::GetP1Xmax ( G4int  id) const
protectedvirtual

Implements G4VP1Manager.

Definition at line 514 of file G4P1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4double G4P1ToolsManager::GetP1Xmin ( G4int  id) const
protectedvirtual

Implements G4VP1Manager.

Definition at line 503 of file G4P1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4double G4P1ToolsManager::GetP1XWidth ( G4int  id) const
protectedvirtual

Implements G4VP1Manager.

Definition at line 523 of file G4P1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4String G4P1ToolsManager::GetP1YAxisTitle ( G4int  id) const
protectedvirtual

Implements G4VP1Manager.

Definition at line 598 of file G4P1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4double G4P1ToolsManager::GetP1Ymax ( G4int  id) const
protectedvirtual

Implements G4VP1Manager.

Definition at line 543 of file G4P1ToolsManager.cc.

References GetP1InFunction().

+ Here is the call graph for this function:

G4double G4P1ToolsManager::GetP1Ymin ( G4int  id) const
protectedvirtual

Implements G4VP1Manager.

Definition at line 532 of file G4P1ToolsManager.cc.

References GetP1InFunction().

+ Here is the call graph for this function:

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

+ Here is the caller graph for this function:

G4int G4P1ToolsManager::RegisterToolsP1 ( tools::histo::p1d *  p1d,
const G4String name 
)
private

Definition at line 281 of file G4P1ToolsManager.cc.

References G4BaseAnalysisManager::fFirstId, G4BaseAnalysisManager::fLockFirstId, fP1NameIdMap, fP1Vector, and name.

Referenced by AddP1(), and CreateP1().

+ Here is the caller graph for this function:

G4bool G4P1ToolsManager::Reset ( )

Definition at line 653 of file G4P1ToolsManager.cc.

References fP1Vector.

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

+ Here is the caller graph for this function:

G4bool G4P1ToolsManager::ScaleP1 ( G4int  id,
G4double  factor 
)
protectedvirtual

Implements G4VP1Manager.

Definition at line 434 of file G4P1ToolsManager.cc.

References GetP1InFunction().

+ Here is the call graph for this function:

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

+ Here is the call graph for this function:

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

+ Here is the call graph for this function:

G4bool G4P1ToolsManager::SetP1Title ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VP1Manager.

Definition at line 552 of file G4P1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4bool G4P1ToolsManager::SetP1XAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VP1Manager.

Definition at line 561 of file G4P1ToolsManager.cc.

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

+ Here is the call graph for this function:

G4bool G4P1ToolsManager::SetP1YAxisTitle ( G4int  id,
const G4String title 
)
protectedvirtual

Implements G4VP1Manager.

Definition at line 570 of file G4P1ToolsManager.cc.

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

+ Here is the call graph for this function:

Member Data Documentation

std::map<G4String, G4int> G4P1ToolsManager::fP1NameIdMap
private

Definition at line 176 of file G4P1ToolsManager.hh.

Referenced by GetP1Id(), and RegisterToolsP1().

std::vector<tools::histo::p1d*> G4P1ToolsManager::fP1Vector
private

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