32 #ifndef G4PlotManager_h
33 #define G4PlotManager_h 1
38 #include <tools/viewplot>
60 const std::vector<G4HnInformation*>& hnVector);
87 const std::vector<G4HnInformation*>& hnVector)
89 if ( ! htVector.size() )
return true;
94 fViewer->plots().set_current_plotter(0);
97 G4bool isWriteNeeded =
false;
99 for (
G4int i=0; i<
G4int(htVector.size()); ++i ) {
106 if ( ( ! plotting ) ||
116 tools::sg::plotter& plotter =
fViewer->plots().current_plotter();
118 plotter.bins_style(0).color = tools::colorf_blue();
120 isWriteNeeded =
true;
130 finalResult = result && finalResult;
131 isWriteNeeded =
false;
139 if ( isWriteNeeded ) {
141 finalResult = result && finalResult;
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
G4PlotManager(const G4AnalysisManagerState &state)
static G4PlotParameters fgPlotParameters
G4int GetNofPlotsPerPage() const
std::unique_ptr< tools::viewplot > fViewer
G4bool PlotAndWrite(const std::vector< T * > &htVector, const std::vector< G4HnInformation * > &hnVector)
const char * name(G4int ptype)
G4String GetStyle() const
const G4AnalysisVerbose * GetVerboseL3() const
const G4AnalysisManagerState & fState
G4PlotManager & operator=(const G4PlotManager &rhs)=delete
G4bool OpenFile(const G4String &fileName)
G4bool GetIsActivation() const