Geant4  10.03
G4PlotManager Class Reference

#include <G4PlotManager.hh>

+ Collaboration diagram for G4PlotManager:

Public Member Functions

 G4PlotManager (const G4AnalysisManagerState &state)
 
 ~G4PlotManager ()
 
 G4PlotManager (const G4PlotManager &rhs)=delete
 
G4PlotManageroperator= (const G4PlotManager &rhs)=delete
 
G4bool OpenFile (const G4String &fileName)
 
template<typename T >
G4bool PlotAndWrite (const std::vector< T * > &htVector, const std::vector< G4HnInformation * > &hnVector)
 
G4bool CloseFile ()
 

Private Member Functions

G4int GetNofPlotsPerPage () const
 
G4bool WritePage ()
 

Private Attributes

const G4AnalysisManagerStatefState
 
std::unique_ptr< tools::viewplot > fViewer
 
G4String fFileName
 

Static Private Attributes

static G4PlotParameters fgPlotParameters
 

Detailed Description

Definition at line 45 of file G4PlotManager.hh.

Constructor & Destructor Documentation

G4PlotManager::G4PlotManager ( const G4AnalysisManagerState state)
explicit

Definition at line 156 of file G4PlotManager.cc.

References fgPlotParameters, fState, fViewer, G4cout, G4endl, G4PlotParameters::GetColumns(), G4PlotParameters::GetHeight(), G4PlotParameters::GetRows(), G4AnalysisManagerState::GetVerboseL1(), and G4PlotParameters::GetWidth().

+ Here is the call graph for this function:

G4PlotManager::~G4PlotManager ( )

Definition at line 199 of file G4PlotManager.cc.

G4PlotManager::G4PlotManager ( const G4PlotManager rhs)
delete

Member Function Documentation

G4bool G4PlotManager::CloseFile ( )

Definition at line 271 of file G4PlotManager.cc.

References fFileName, fState, fViewer, G4Exception(), G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

Referenced by G4ToolsAnalysisManager::PlotImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4PlotManager::GetNofPlotsPerPage ( ) const
inlineprivate

Definition at line 80 of file G4PlotManager.hh.

References fgPlotParameters, G4PlotParameters::GetColumns(), and G4PlotParameters::GetRows().

Referenced by PlotAndWrite().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4PlotManager::OpenFile ( const G4String fileName)

Definition at line 244 of file G4PlotManager.cc.

References fFileName, fState, fViewer, G4Exception(), G4AnalysisManagerState::GetVerboseL1(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

Referenced by G4ToolsAnalysisManager::PlotImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4PlotManager& G4PlotManager::operator= ( const G4PlotManager rhs)
delete
template<typename T >
G4bool G4PlotManager::PlotAndWrite ( const std::vector< T * > &  htVector,
const std::vector< G4HnInformation * > &  hnVector 
)
inline

Definition at line 86 of file G4PlotManager.hh.

References fgPlotParameters, fState, fViewer, G4HnInformation::GetActivation(), G4PlotParameters::GetColumns(), G4AnalysisManagerState::GetIsActivation(), G4HnInformation::GetName(), GetNofPlotsPerPage(), G4HnInformation::GetPlotting(), G4PlotParameters::GetRows(), G4PlotParameters::GetStyle(), G4AnalysisManagerState::GetVerboseL3(), G4AnalysisVerbose::Message(), G4InuclParticleNames::name(), and WritePage().

Referenced by G4ToolsAnalysisManager::PlotImpl().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4PlotManager::WritePage ( )
private

Definition at line 207 of file G4PlotManager.cc.

References fFileName, fgPlotParameters, fState, fViewer, G4Exception(), G4PlotParameters::GetScale(), G4AnalysisManagerState::GetVerboseL3(), G4AnalysisManagerState::GetVerboseL4(), JustWarning, and G4AnalysisVerbose::Message().

Referenced by PlotAndWrite().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4String G4PlotManager::fFileName
private

Definition at line 74 of file G4PlotManager.hh.

Referenced by CloseFile(), OpenFile(), and WritePage().

G4PlotParameters G4PlotManager::fgPlotParameters
staticprivate

Definition at line 69 of file G4PlotManager.hh.

Referenced by G4PlotManager(), GetNofPlotsPerPage(), PlotAndWrite(), and WritePage().

const G4AnalysisManagerState& G4PlotManager::fState
private

Definition at line 72 of file G4PlotManager.hh.

Referenced by CloseFile(), G4PlotManager(), OpenFile(), PlotAndWrite(), and WritePage().

std::unique_ptr<tools::viewplot> G4PlotManager::fViewer
private

Definition at line 73 of file G4PlotManager.hh.

Referenced by CloseFile(), G4PlotManager(), OpenFile(), PlotAndWrite(), and WritePage().


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