#include <G4HnManager.hh>
|
| G4HnManager (const G4String &hnType, const G4AnalysisManagerState &state) |
|
virtual | ~G4HnManager () |
|
G4HnInformation * | AddHnInformation (const G4String &name, G4int nofDimensions) |
|
G4HnInformation * | GetHnInformation (G4int id, G4String functionName="", G4bool warn=true) const |
|
G4HnDimensionInformation * | GetHnDimensionInformation (G4int id, G4int dimension, G4String functionName="", G4bool warn=true) const |
|
const std::vector
< G4HnInformation * > & | GetHnVector () const |
|
G4int | GetNofHns () const |
|
G4String | GetHnType () const |
|
G4bool | IsActive () const |
|
G4bool | IsAscii () const |
|
G4bool | IsPlotting () const |
|
void | SetActivation (G4bool activation) |
|
void | SetActivation (G4int id, G4bool activation) |
|
void | SetAscii (G4int id, G4bool ascii) |
|
void | SetPlotting (G4bool plotting) |
|
void | SetPlotting (G4int id, G4bool plotting) |
|
G4String | GetName (G4int id) const |
|
G4double | GetXUnit (G4int id) const |
|
G4double | GetYUnit (G4int id) const |
|
G4double | GetZUnit (G4int id) const |
|
G4bool | GetActivation (G4int id) const |
|
G4bool | GetAscii (G4int id) const |
|
G4bool | GetPlotting (G4int id) const |
|
| G4BaseAnalysisManager (const G4AnalysisManagerState &state) |
|
virtual | ~G4BaseAnalysisManager () |
|
G4bool | SetFirstId (G4int firstId) |
|
void | SetLockFirstId (G4bool lockFirstId) |
|
G4int | GetFirstId () const |
|
Definition at line 43 of file G4HnManager.hh.
Definition at line 36 of file G4HnManager.cc.
42 fNofPlottingObjects(0),
G4BaseAnalysisManager(const G4AnalysisManagerState &state)
G4HnManager::~G4HnManager |
( |
| ) |
|
|
virtual |
Definition at line 48 of file G4HnManager.cc.
50 for (
auto hnInformation : fHnVector ) {
Definition at line 60 of file G4HnManager.cc.
63 fHnVector.push_back(hnInformation);
Definition at line 259 of file G4HnManager.cc.
263 if ( !
info )
return true;
265 return info->GetActivation();
const XML_Char XML_Encoding * info
G4HnInformation * GetHnInformation(G4int id, G4String functionName="", G4bool warn=true) const
Definition at line 269 of file G4HnManager.cc.
273 if ( !
info )
return false;
275 return info->GetAscii();
const XML_Char XML_Encoding * info
G4HnInformation * GetHnInformation(G4int id, G4String functionName="", G4bool warn=true) const
Definition at line 92 of file G4HnManager.cc.
97 if ( ! hnInformation )
return nullptr;
99 return hnInformation->GetHnDimensionInformation(dimension);
G4HnInformation * GetHnInformation(G4int id, G4String functionName="", G4bool warn=true) const
Definition at line 70 of file G4HnManager.cc.
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];
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4String G4HnManager::GetHnType |
( |
| ) |
const |
|
inline |
const std::vector< G4HnInformation * > & G4HnManager::GetHnVector |
( |
| ) |
const |
|
inline |
Definition at line 219 of file G4HnManager.cc.
223 if ( !
info )
return "";
225 return info->GetName();
const XML_Char XML_Encoding * info
G4HnInformation * GetHnInformation(G4int id, G4String functionName="", G4bool warn=true) const
G4int G4HnManager::GetNofHns |
( |
| ) |
const |
|
inline |
Definition at line 279 of file G4HnManager.cc.
283 if ( !
info )
return false;
285 return info->GetPlotting();
const XML_Char XML_Encoding * info
G4HnInformation * GetHnInformation(G4int id, G4String functionName="", G4bool warn=true) const
Definition at line 229 of file G4HnManager.cc.
233 if ( !
info )
return 1.0;
const XML_Char XML_Encoding * info
G4HnDimensionInformation * GetHnDimensionInformation(G4int id, G4int dimension, G4String functionName="", G4bool warn=true) const
Definition at line 239 of file G4HnManager.cc.
243 if ( !
info )
return 1.0;
const XML_Char XML_Encoding * info
G4HnDimensionInformation * GetHnDimensionInformation(G4int id, G4int dimension, G4String functionName="", G4bool warn=true) const
Definition at line 249 of file G4HnManager.cc.
253 if ( !
info )
return 1.0;
const XML_Char XML_Encoding * info
G4HnDimensionInformation * GetHnDimensionInformation(G4int id, G4int dimension, G4String functionName="", G4bool warn=true) const
G4bool G4HnManager::IsActive |
( |
| ) |
const |
G4bool G4HnManager::IsAscii |
( |
| ) |
const |
G4bool G4HnManager::IsPlotting |
( |
| ) |
const |
Definition at line 115 of file G4HnManager.cc.
117 return ( fNofPlottingObjects > 0 );
void G4HnManager::SetActivation |
( |
G4bool |
activation | ) |
|
Definition at line 141 of file G4HnManager.cc.
149 for (
auto info : fHnVector ) {
152 if (
info->GetActivation() == activation )
continue;
155 info->SetActivation(activation);
const XML_Char XML_Encoding * info
Definition at line 121 of file G4HnManager.cc.
127 if ( !
info )
return;
130 if (
info->GetActivation() == activation )
return;
133 info->SetActivation(activation);
const XML_Char XML_Encoding * info
G4HnInformation * GetHnInformation(G4int id, G4String functionName="", G4bool warn=true) const
Definition at line 164 of file G4HnManager.cc.
168 if ( !
info )
return;
171 if (
info->GetAscii() == ascii )
return;
174 info->SetAscii(ascii);
const XML_Char XML_Encoding * info
G4HnInformation * GetHnInformation(G4int id, G4String functionName="", G4bool warn=true) const
Definition at line 200 of file G4HnManager.cc.
204 for (
auto info : fHnVector ) {
207 if (
info->GetPlotting() == plotting )
continue;
210 info->SetPlotting(plotting);
212 fNofPlottingObjects++;
214 fNofPlottingObjects--;
const XML_Char XML_Encoding * info
Definition at line 182 of file G4HnManager.cc.
186 if ( !
info )
return;
189 if (
info->GetPlotting() == plotting )
return;
192 info->SetPlotting(plotting);
194 fNofPlottingObjects++;
196 fNofPlottingObjects--;
const XML_Char XML_Encoding * info
G4HnInformation * GetHnInformation(G4int id, G4String functionName="", G4bool warn=true) const
The documentation for this class was generated from the following files: