44 fMessenger = std::make_unique<G4HnMessenger>(*
this);
50 for (
auto info : fHnVector ) {
86 fNofPlottingObjects++;
89 fNofPlottingObjects--;
102 fFileManager->AddFileName(fileName);
104 Warn(
"Failed to set fileName " + fileName +
105 " for object " + info->
GetName() +
".\nFile manager is not set.",
106 fkClass,
"SetFileName");
110 if ( fileName !=
"" ) {
111 fNofFileNameObjects++;
113 fNofFileNameObjects--;
125 fHnVector.push_back(info);
134 for (
auto info : fHnVector ) {
143 std::string_view functionName,
G4bool warn)
const
146 if ( index < 0 || index >=
G4int(fHnVector.size()) ) {
148 Warn(fHnType +
" histogram " + to_string(
id) +
" does not exist.",
149 fkClass, functionName);
153 return fHnVector[index];
159 std::string_view functionName,
G4bool warn)
const
162 if (info ==
nullptr)
return nullptr;
170 return ( fNofActiveObjects > 0 );
176 return ( fNofAsciiObjects > 0 );
182 return ( fNofPlottingObjects > 0 );
188 return ( fNofFileNameObjects > 0 );
198 if (info ==
nullptr)
return;
212 for (
auto info : fHnVector ) {
222 if (info ==
nullptr)
return;
225 if ( info->
GetAscii() == ascii )
return;
242 if (info ==
nullptr)
return;
252 for (
auto info : fHnVector ) {
262 if (info ==
nullptr)
return;
272 for (
auto info : fHnVector ) {
282 if (info ==
nullptr)
return false;
293 if (info ==
nullptr)
return "";
303 if (info ==
nullptr)
return 1.0;
313 if (info ==
nullptr)
return false;
323 if (info ==
nullptr)
return true;
333 if (info ==
nullptr)
return false;
343 if (info ==
nullptr)
return false;
353 if (info ==
nullptr)
return "";
void SetLockFirstId(G4bool lockFirstId)
G4HnDimensionInformation * GetHnDimensionInformation(G4int id, G4int dimension, std::string_view functionName, G4bool warn=true) const
G4bool GetPlotting(G4int id) const
G4bool SetAxisIsLog(unsigned int idim, G4int id, G4bool isLogAxis)
void SetActivation(G4bool activation)
G4String GetFileName(G4int id) const
G4String GetName(G4int id) const
G4bool IsPlotting() const
void SetFileName(G4int id, const G4String &fileName)
G4bool GetActivation(G4int id) const
G4bool GetAxisIsLog(unsigned int idim, G4int id) const
G4double GetUnit(unsigned int idim, G4int id) const
void SetAscii(G4int id, G4bool ascii)
void SetPlotting(G4int id, G4bool plotting)
G4HnInformation * GetHnInformation(G4int id, std::string_view functionName, G4bool warn=true) const
G4bool GetAscii(G4int id) const
G4bool IsFileName() const
G4HnInformation * AddHnInformation(const G4String &name, G4int nofDimensions)
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)