32 #ifndef G4PlotManager_h
33 #define G4PlotManager_h 1
39 #include <tools/viewplot>
59 const std::vector<G4HnInformation*>& hnVector);
86 const std::vector<G4HnInformation*>& hnVector)
88 if ( ! htVector.size() )
return true;
93 fViewer->plots().set_current_plotter(0);
96 G4bool isWriteNeeded =
false;
98 for (
G4int i=0; i<
G4int(htVector.size()); ++i ) {
105 if ( ( ! plotting ) ||
115 tools::sg::plotter& plotter =
fViewer->plots().current_plotter();
117 plotter.bins_style(0).color = tools::colorf_blue();
119 isWriteNeeded =
true;
129 finalResult = result && finalResult;
130 isWriteNeeded =
false;
138 if ( isWriteNeeded ) {
140 finalResult = result && finalResult;
const XML_Char XML_Encoding * info
G4String GetStyle() const
static G4PlotParameters fgPlotParameters
G4bool GetIsActivation() const
G4PlotManager(const G4AnalysisManagerState &state)
G4bool OpenFile(const G4String &fileName)
std::unique_ptr< tools::viewplot > fViewer
const G4AnalysisVerbose * GetVerboseL3() const
G4int GetNofPlotsPerPage() const
G4PlotManager & operator=(const G4PlotManager &rhs)=delete
G4double G4ParticleHPJENDLHEData::G4double result
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
const G4AnalysisManagerState & fState
G4bool PlotAndWrite(const std::vector< T * > &htVector, const std::vector< G4HnInformation * > &hnVector)