#include <G4PlotManager.hh>
Definition at line 45 of file G4PlotManager.hh.
Definition at line 156 of file G4PlotManager.cc.
161 #if defined(TOOLS_USE_FREETYPE)
167 G4cout <<
"... using high resolution with Freetype fonts" <<
G4endl;
173 static tools::sg::text_freetype ttf;
174 fViewer.reset(
new tools::viewplot(
G4cout, ttf,
179 fViewer->plots().view_border =
false;
180 load_embeded_styles(fViewer->styles());
181 fViewer->styles().add_colormap(
"default",tools::sg::style_default_colormap());
182 fViewer->styles().add_colormap(
"ROOT",tools::sg::style_ROOT_colormap());
187 G4cout <<
"... using low resolution with Hershey fonts" <<
G4endl;
189 fViewer.reset(
new tools::viewplot(
G4cout,
194 fViewer->plots().view_border =
false;
G4GLOB_DLL std::ostream G4cout
const G4AnalysisVerbose * GetVerboseL1() const
G4PlotManager::~G4PlotManager |
( |
| ) |
|
G4bool G4PlotManager::CloseFile |
( |
| ) |
|
Definition at line 271 of file G4PlotManager.cc.
281 description <<
" " <<
"Cannot close the plot file.";
G4double G4ParticleHPJENDLHEData::G4double result
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
std::ostringstream G4ExceptionDescription
const G4AnalysisVerbose * GetVerboseL4() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4AnalysisVerbose * GetVerboseL1() const
Definition at line 244 of file G4PlotManager.cc.
252 fFileName = fileName;
257 description <<
" " <<
"Cannot open plot file " << fileName;
G4double G4ParticleHPJENDLHEData::G4double result
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
std::ostringstream G4ExceptionDescription
const G4AnalysisVerbose * GetVerboseL4() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4AnalysisVerbose * GetVerboseL1() const
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.
89 if ( ! htVector.size() )
return true;
91 fViewer->plots().init_sg();
93 fViewer->set_cols_rows(fgPlotParameters.
GetColumns(), fgPlotParameters.
GetRows());
94 fViewer->plots().set_current_plotter(0);
97 G4bool isWriteNeeded =
false;
99 for (
G4int i=0; i<
G4int(htVector.size()); ++i ) {
106 if ( ( ! plotting ) ||
113 fViewer->set_current_plotter_style(fgPlotParameters.
GetStyle());
116 tools::sg::plotter& plotter = fViewer->plots().current_plotter();
118 plotter.bins_style(0).color = tools::colorf_blue();
120 isWriteNeeded =
true;
128 if (
G4int(fViewer->plots().current_index()) == (GetNofPlotsPerPage() - 1) ) {
130 finalResult = result && finalResult;
131 isWriteNeeded =
false;
135 fViewer->plots().next();
139 if ( isWriteNeeded ) {
141 finalResult = result && finalResult;
G4double G4ParticleHPJENDLHEData::G4double result
const XML_Char XML_Encoding * info
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
G4String GetStyle() const
const G4AnalysisVerbose * GetVerboseL3() const
G4bool GetIsActivation() const
The documentation for this class was generated from the following files: