33 using namespace G4Analysis;
42 fNofPlottingObjects(0),
50 for (
auto hnInformation : fHnVector ) {
63 fHnVector.push_back(hnInformation);
74 if ( index < 0 || index >=
G4int(fHnVector.size()) ) {
76 G4String inFunction =
"G4HnManager::";
77 if ( functionName.size() )
78 inFunction += functionName;
80 inFunction +=
"GetHnInformation";
82 description <<
" " << fHnType <<
" histogram " <<
id
83 <<
" does not exist.";
88 return fHnVector[index];
97 if ( ! hnInformation )
return nullptr;
99 return hnInformation->GetHnDimensionInformation(dimension);
105 return ( fNofActiveObjects > 0 );
111 return ( fNofAsciiObjects > 0 );
117 return ( fNofPlottingObjects > 0 );
127 if ( !
info )
return;
130 if (
info->GetActivation() == activation )
return;
133 info->SetActivation(activation);
149 for (
auto info : fHnVector ) {
152 if (
info->GetActivation() == activation )
continue;
155 info->SetActivation(activation);
168 if ( !
info )
return;
171 if (
info->GetAscii() == ascii )
return;
174 info->SetAscii(ascii);
186 if ( !
info )
return;
189 if (
info->GetPlotting() == plotting )
return;
192 info->SetPlotting(plotting);
194 fNofPlottingObjects++;
196 fNofPlottingObjects--;
204 for (
auto info : fHnVector ) {
207 if (
info->GetPlotting() == plotting )
continue;
210 info->SetPlotting(plotting);
212 fNofPlottingObjects++;
214 fNofPlottingObjects--;
223 if ( !
info )
return "";
225 return info->GetName();
233 if ( !
info )
return 1.0;
243 if ( !
info )
return 1.0;
253 if ( !
info )
return 1.0;
263 if ( !
info )
return true;
265 return info->GetActivation();
273 if ( !
info )
return false;
275 return info->GetAscii();
283 if ( !
info )
return false;
285 return info->GetPlotting();
const XML_Char XML_Encoding * info
G4bool GetAscii(G4int id) const
std::ostringstream G4ExceptionDescription
G4double GetZUnit(G4int id) const
G4HnManager(const G4String &hnType, const G4AnalysisManagerState &state)
G4HnInformation * GetHnInformation(G4int id, G4String functionName="", G4bool warn=true) const
G4bool GetActivation(G4int id) const
void SetPlotting(G4bool plotting)
G4double GetXUnit(G4int id) const
void SetAscii(G4int id, G4bool ascii)
G4String GetName(G4int id) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4bool GetPlotting(G4int id) const
G4HnInformation * AddHnInformation(const G4String &name, G4int nofDimensions)
G4bool IsPlotting() const
void SetActivation(G4bool activation)
G4double GetYUnit(G4int id) const
G4HnDimensionInformation * GetHnDimensionInformation(G4int id, G4int dimension, G4String functionName="", G4bool warn=true) const