Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4HnInformation Class Reference

#include <G4HnInformation.hh>

Public Member Functions

 G4HnInformation (const G4String &name, G4int nofDimensions)
 
 G4HnInformation ()=delete
 
void AddHnDimensionInformation (const G4HnDimensionInformation &hnDimensionInformation)
 
void AddDimension (const G4String &unitName, const G4String &fcnName, G4BinScheme binScheme)
 
void SetDimension (G4int dimension, const G4String &unitName, const G4String &fcnName, G4BinScheme binScheme)
 
void SetActivation (G4bool activation)
 
void SetAscii (G4bool ascii)
 
void SetPlotting (G4bool plotting)
 
G4String GetName () const
 
G4HnDimensionInformationGetHnDimensionInformation (G4int dimension)
 
G4bool GetActivation () const
 
G4bool GetAscii () const
 
G4bool GetPlotting () const
 

Detailed Description

Definition at line 95 of file G4HnInformation.hh.

Constructor & Destructor Documentation

G4HnInformation::G4HnInformation ( const G4String name,
G4int  nofDimensions 
)
inline

Definition at line 98 of file G4HnInformation.hh.

99  : fName(name),
100  fHnDimensionInformations(),
101  fActivation(true),
102  fAscii(false),
103  fPlotting(false) { fHnDimensionInformations.reserve(nofDimensions); }
G4HnInformation::G4HnInformation ( )
delete

Member Function Documentation

void G4HnInformation::AddDimension ( const G4String unitName,
const G4String fcnName,
G4BinScheme  binScheme 
)
inline

Definition at line 141 of file G4HnInformation.hh.

143 {
144  auto unit = G4Analysis::GetUnitValue(unitName);
145  auto fcn = G4Analysis::GetFunction(fcnName);
146  fHnDimensionInformations.push_back(
147  G4HnDimensionInformation(unitName, fcnName, unit, fcn, binScheme));
148 }
G4double GetUnitValue(const G4String &unit)
G4Fcn GetFunction(const G4String &fcnName)
Definition: G4Fcn.cc:36

Here is the call graph for this function:

void G4HnInformation::AddHnDimensionInformation ( const G4HnDimensionInformation hnDimensionInformation)
inline

Definition at line 137 of file G4HnInformation.hh.

139 { fHnDimensionInformations.push_back(hnDimensionInformation); }
G4bool G4HnInformation::GetActivation ( ) const
inline

Definition at line 178 of file G4HnInformation.hh.

179 { return fActivation; }

Here is the caller graph for this function:

G4bool G4HnInformation::GetAscii ( ) const
inline

Definition at line 181 of file G4HnInformation.hh.

182 { return fAscii; }
G4HnDimensionInformation * G4HnInformation::GetHnDimensionInformation ( G4int  dimension)
inline

Definition at line 175 of file G4HnInformation.hh.

176 { return &(fHnDimensionInformations[dimension]); }

Here is the caller graph for this function:

G4String G4HnInformation::GetName ( ) const
inline

Definition at line 172 of file G4HnInformation.hh.

173 { return fName; }

Here is the caller graph for this function:

G4bool G4HnInformation::GetPlotting ( ) const
inline

Definition at line 184 of file G4HnInformation.hh.

185 { return fPlotting; }

Here is the caller graph for this function:

void G4HnInformation::SetActivation ( G4bool  activation)
inline

Definition at line 163 of file G4HnInformation.hh.

164 { fActivation = activation; }
void G4HnInformation::SetAscii ( G4bool  ascii)
inline

Definition at line 166 of file G4HnInformation.hh.

167 { fAscii = ascii; }
void G4HnInformation::SetDimension ( G4int  dimension,
const G4String unitName,
const G4String fcnName,
G4BinScheme  binScheme 
)
inline

Definition at line 150 of file G4HnInformation.hh.

152 {
153  auto info = GetHnDimensionInformation(dimension);
154  auto unit = G4Analysis::GetUnitValue(unitName);
155  auto fcn = G4Analysis::GetFunction(fcnName);
156  info->fUnitName = unitName;
157  info->fFcnName = fcnName;
158  info->fUnit = unit;
159  info->fFcn = fcn;
160  info->fBinScheme = binScheme;
161 }
const XML_Char XML_Encoding * info
Definition: expat.h:530
G4double GetUnitValue(const G4String &unit)
G4Fcn GetFunction(const G4String &fcnName)
Definition: G4Fcn.cc:36
G4HnDimensionInformation * GetHnDimensionInformation(G4int dimension)

Here is the call graph for this function:

void G4HnInformation::SetPlotting ( G4bool  plotting)
inline

Definition at line 169 of file G4HnInformation.hh.

170 { fPlotting = plotting; }

The documentation for this class was generated from the following file: