Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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 SetIsLogAxis (G4int axis, G4bool isLog)
 
void SetActivation (G4bool activation)
 
void SetAscii (G4bool ascii)
 
void SetPlotting (G4bool plotting)
 
void SetFileName (G4String fileName)
 
G4String GetName () const
 
G4HnDimensionInformationGetHnDimensionInformation (G4int dimension)
 
G4bool GetIsLogAxis (G4int axis) const
 
G4bool GetActivation () const
 
G4bool GetAscii () const
 
G4bool GetPlotting () const
 
G4String GetFileName () const
 

Detailed Description

Definition at line 94 of file G4HnInformation.hh.

Constructor & Destructor Documentation

◆ G4HnInformation() [1/2]

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

Definition at line 97 of file G4HnInformation.hh.

98 : fName(name),
99 fHnDimensionInformations(),
100 fIsLogAxis({ false, false, false }),
101 fActivation(true),
102 fAscii(false),
103 fPlotting(false),
104 fFileName("") { fHnDimensionInformations.reserve(nofDimensions); }

◆ G4HnInformation() [2/2]

G4HnInformation::G4HnInformation ( )
delete

Member Function Documentation

◆ AddDimension()

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

Definition at line 148 of file G4HnInformation.hh.

150{
151 auto unit = G4Analysis::GetUnitValue(unitName);
152 auto fcn = G4Analysis::GetFunction(fcnName);
153 fHnDimensionInformations.push_back(
154 G4HnDimensionInformation(unitName, fcnName, unit, fcn, binScheme));
155}
G4double GetUnitValue(const G4String &unit)
G4Fcn GetFunction(const G4String &fcnName)
Definition: G4Fcn.cc:35

◆ AddHnDimensionInformation()

void G4HnInformation::AddHnDimensionInformation ( const G4HnDimensionInformation hnDimensionInformation)
inline

Definition at line 144 of file G4HnInformation.hh.

146{ fHnDimensionInformations.push_back(hnDimensionInformation); }

◆ GetActivation()

G4bool G4HnInformation::GetActivation ( ) const
inline

Definition at line 194 of file G4HnInformation.hh.

195{ return fActivation; }

Referenced by G4HnManager::GetActivation(), and G4PlotManager::PlotAndWrite().

◆ GetAscii()

G4bool G4HnInformation::GetAscii ( ) const
inline

Definition at line 197 of file G4HnInformation.hh.

198{ return fAscii; }

Referenced by G4HnManager::GetAscii(), and G4HnManager::SetAscii().

◆ GetFileName()

G4String G4HnInformation::GetFileName ( ) const
inline

Definition at line 203 of file G4HnInformation.hh.

204{ return fFileName; }

Referenced by G4HnManager::GetFileName().

◆ GetHnDimensionInformation()

G4HnDimensionInformation * G4HnInformation::GetHnDimensionInformation ( G4int  dimension)
inline

Definition at line 188 of file G4HnInformation.hh.

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

Referenced by G4HnManager::GetHnDimensionInformation(), and SetDimension().

◆ GetIsLogAxis()

G4bool G4HnInformation::GetIsLogAxis ( G4int  axis) const
inline

◆ GetName()

G4String G4HnInformation::GetName ( ) const
inline

Definition at line 185 of file G4HnInformation.hh.

186{ return fName; }

Referenced by G4HnManager::GetName(), and G4PlotManager::PlotAndWrite().

◆ GetPlotting()

G4bool G4HnInformation::GetPlotting ( ) const
inline

Definition at line 200 of file G4HnInformation.hh.

201{ return fPlotting; }

Referenced by G4HnManager::GetPlotting(), and G4PlotManager::PlotAndWrite().

◆ SetActivation()

void G4HnInformation::SetActivation ( G4bool  activation)
inline

Definition at line 173 of file G4HnInformation.hh.

174{ fActivation = activation; }

◆ SetAscii()

void G4HnInformation::SetAscii ( G4bool  ascii)
inline

Definition at line 176 of file G4HnInformation.hh.

177{ fAscii = ascii; }

Referenced by G4HnManager::SetAscii().

◆ SetDimension()

void G4HnInformation::SetDimension ( G4int  dimension,
const G4String unitName,
const G4String fcnName,
G4BinScheme  binScheme 
)
inline

Definition at line 157 of file G4HnInformation.hh.

159{
160 auto info = GetHnDimensionInformation(dimension);
161 auto unit = G4Analysis::GetUnitValue(unitName);
162 auto fcn = G4Analysis::GetFunction(fcnName);
163 info->fUnitName = unitName;
164 info->fFcnName = fcnName;
165 info->fUnit = unit;
166 info->fFcn = fcn;
167 info->fBinScheme = binScheme;
168}
G4HnDimensionInformation * GetHnDimensionInformation(G4int dimension)

◆ SetFileName()

void G4HnInformation::SetFileName ( G4String  fileName)
inline

Definition at line 182 of file G4HnInformation.hh.

183{ fFileName = fileName; }

◆ SetIsLogAxis()

void G4HnInformation::SetIsLogAxis ( G4int  axis,
G4bool  isLog 
)
inline

Definition at line 170 of file G4HnInformation.hh.

171{ fIsLogAxis[axis] = isLog; }

Referenced by G4HnManager::SetXAxisIsLog(), G4HnManager::SetYAxisIsLog(), and G4HnManager::SetZAxisIsLog().

◆ SetPlotting()

void G4HnInformation::SetPlotting ( G4bool  plotting)
inline

Definition at line 179 of file G4HnInformation.hh.

180{ fPlotting = plotting; }

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