42 fNofPlottingObjects(0),
43 fNofFileNameObjects(0),
52 for (
auto info : fHnVector ) {
86 fNofPlottingObjects++;
88 fNofPlottingObjects--;
100 fFileManager->AddFileName(fileName);
104 <<
"Failed to set fileName " << fileName <<
" for object " << info->
GetName() <<
G4endl
105 <<
"File manager is not set.";
111 if ( fileName !=
"" ) {
112 fNofFileNameObjects++;
114 fNofFileNameObjects--;
126 fHnVector.push_back(info);
137 if ( index < 0 || index >=
G4int(fHnVector.size()) ) {
139 G4String inFunction =
"G4HnManager::";
140 if ( functionName.size() )
141 inFunction += functionName;
143 inFunction +=
"GetHnInformation";
145 description <<
" " << fHnType <<
" histogram " <<
id
146 <<
" does not exist.";
151 return fHnVector[index];
160 if ( ! info )
return nullptr;
168 return ( fNofActiveObjects > 0 );
174 return ( fNofAsciiObjects > 0 );
180 return ( fNofPlottingObjects > 0 );
186 return ( fNofFileNameObjects > 0 );
196 if ( ! info )
return;
210 for (
auto info : fHnVector ) {
220 if ( ! info )
return;
223 if ( info->
GetAscii() == ascii )
return;
238 if ( ! info )
return;
248 for (
auto info : fHnVector ) {
258 if ( ! info )
return;
268 for (
auto info : fHnVector ) {
278 if ( ! info )
return false;
289 if ( ! info )
return false;
300 if ( ! info )
return false;
311 if ( ! info )
return "";
321 if ( ! info )
return 1.0;
331 if ( ! info )
return 1.0;
341 if ( ! info )
return 1.0;
351 if ( ! info )
return false;
361 if ( ! info )
return 1.0;
371 if ( ! info )
return 1.0;
381 if ( ! info )
return true;
391 if ( ! info )
return false;
401 if ( ! info )
return false;
411 if ( ! info )
return "";
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4bool GetPlotting(G4int id) const
void SetActivation(G4bool activation)
G4String GetFileName(G4int id) const
G4double GetYUnit(G4int id) const
G4HnDimensionInformation * GetHnDimensionInformation(G4int id, G4int dimension, G4String functionName="", G4bool warn=true) const
G4bool SetZAxisIsLog(G4int id, G4bool isLogAxis)
G4HnManager(const G4String &hnType, const G4AnalysisManagerState &state)
G4bool SetYAxisIsLog(G4int id, G4bool isLogAxis)
G4String GetName(G4int id) const
G4HnInformation * GetHnInformation(G4int id, G4String functionName="", G4bool warn=true) const
G4bool SetXAxisIsLog(G4int id, G4bool isLogAxis)
G4bool IsPlotting() const
void SetFileName(G4int id, const G4String &fileName)
G4bool GetActivation(G4int id) const
G4bool GetZAxisIsLog(G4int id) const
G4bool GetXAxisIsLog(G4int id) const
void SetAscii(G4int id, G4bool ascii)
G4double GetZUnit(G4int id) const
G4bool GetYAxisIsLog(G4int id) const
void SetPlotting(G4int id, G4bool plotting)
G4double GetXUnit(G4int id) const
G4bool GetAscii(G4int id) const
G4bool IsFileName() const
G4HnInformation * AddHnInformation(const G4String &name, G4int nofDimensions)