Geant4-11
Public Member Functions | Private Attributes
G4HnInformation Class Reference

#include <G4HnInformation.hh>

Public Member Functions

void AddDimension (const G4String &unitName, const G4String &fcnName, G4BinScheme binScheme)
 
void AddHnDimensionInformation (const G4HnDimensionInformation &hnDimensionInformation)
 
 G4HnInformation ()=delete
 
 G4HnInformation (const G4String &name, G4int nofDimensions)
 
G4bool GetActivation () const
 
G4bool GetAscii () const
 
G4String GetFileName () const
 
G4HnDimensionInformation * GetHnDimensionInformation (G4int dimension)
 
G4bool GetIsLogAxis (G4int axis) const
 
G4String GetName () const
 
G4bool GetPlotting () const
 
void SetActivation (G4bool activation)
 
void SetAscii (G4bool ascii)
 
void SetDimension (G4int dimension, const G4String &unitName, const G4String &fcnName, G4BinScheme binScheme)
 
void SetFileName (G4String fileName)
 
void SetIsLogAxis (G4int axis, G4bool isLog)
 
void SetPlotting (G4bool plotting)
 

Private Attributes

G4bool fActivation { true }
 
G4bool fAscii { false }
 
G4String fFileName
 
std::vector< G4HnDimensionInformation > fHnDimensionInformations
 
std::vector< G4bool > fIsLogAxis { false, false, false }
 
G4String fName
 
G4bool fPlotting { false }
 

Detailed Description

Definition at line 68 of file G4HnInformation.hh.

Constructor & Destructor Documentation

◆ G4HnInformation() [1/2]

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

Definition at line 71 of file G4HnInformation.hh.

72 : fName(name)
73 { fHnDimensionInformations.reserve(nofDimensions); }
std::vector< G4HnDimensionInformation > fHnDimensionInformations
const char * name(G4int ptype)

References fHnDimensionInformations.

◆ 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 117 of file G4HnInformation.hh.

119{
120 auto unit = G4Analysis::GetUnitValue(unitName);
121 auto fcn = G4Analysis::GetFunction(fcnName);
122 fHnDimensionInformations.emplace_back(
123 unitName, fcnName, unit, fcn, binScheme);
124}
G4double GetUnitValue(const G4String &unit)
G4Fcn GetFunction(const G4String &fcnName)
Definition: G4Fcn.cc:36

References fHnDimensionInformations, G4Analysis::GetFunction(), and G4Analysis::GetUnitValue().

◆ AddHnDimensionInformation()

void G4HnInformation::AddHnDimensionInformation ( const G4HnDimensionInformation &  hnDimensionInformation)
inline

Definition at line 113 of file G4HnInformation.hh.

115{ fHnDimensionInformations.push_back(hnDimensionInformation); }

References fHnDimensionInformations.

◆ GetActivation()

G4bool G4HnInformation::GetActivation ( ) const
inline

Definition at line 163 of file G4HnInformation.hh.

164{ return fActivation; }

References fActivation.

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

◆ GetAscii()

G4bool G4HnInformation::GetAscii ( ) const
inline

Definition at line 166 of file G4HnInformation.hh.

167{ return fAscii; }

References fAscii.

◆ GetFileName()

G4String G4HnInformation::GetFileName ( ) const
inline

Definition at line 172 of file G4HnInformation.hh.

173{ return fFileName; }

References fFileName.

Referenced by G4HnManager::SetFileName().

◆ GetHnDimensionInformation()

G4HnDimensionInformation * G4HnInformation::GetHnDimensionInformation ( G4int  dimension)
inline

Definition at line 157 of file G4HnInformation.hh.

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

References fHnDimensionInformations.

Referenced by SetDimension().

◆ GetIsLogAxis()

G4bool G4HnInformation::GetIsLogAxis ( G4int  axis) const
inline

Definition at line 160 of file G4HnInformation.hh.

161{ return fIsLogAxis[axis]; }
std::vector< G4bool > fIsLogAxis

References fIsLogAxis.

Referenced by G4PlotManager::PlotAndWrite().

◆ GetName()

G4String G4HnInformation::GetName ( ) const
inline

Definition at line 154 of file G4HnInformation.hh.

155{ return fName; }

References fName.

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

◆ GetPlotting()

G4bool G4HnInformation::GetPlotting ( ) const
inline

Definition at line 169 of file G4HnInformation.hh.

170{ return fPlotting; }

References fPlotting.

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

◆ SetActivation()

void G4HnInformation::SetActivation ( G4bool  activation)
inline

Definition at line 142 of file G4HnInformation.hh.

143{ fActivation = activation; }

References fActivation.

Referenced by G4HnManager::SetActivation().

◆ SetAscii()

void G4HnInformation::SetAscii ( G4bool  ascii)
inline

Definition at line 145 of file G4HnInformation.hh.

146{ fAscii = ascii; }

References fAscii.

◆ SetDimension()

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

Definition at line 126 of file G4HnInformation.hh.

128{
129 auto info = GetHnDimensionInformation(dimension);
130 auto unit = G4Analysis::GetUnitValue(unitName);
131 auto fcn = G4Analysis::GetFunction(fcnName);
132 info->fUnitName = unitName;
133 info->fFcnName = fcnName;
134 info->fUnit = unit;
135 info->fFcn = fcn;
136 info->fBinScheme = binScheme;
137}
G4HnDimensionInformation * GetHnDimensionInformation(G4int dimension)

References G4Analysis::GetFunction(), GetHnDimensionInformation(), and G4Analysis::GetUnitValue().

Referenced by anonymous_namespace{G4H1ToolsManager.cc}::UpdateH1Information(), anonymous_namespace{G4H2ToolsManager.cc}::UpdateH2Information(), anonymous_namespace{G4H3ToolsManager.cc}::UpdateH3Information(), anonymous_namespace{G4P1ToolsManager.cc}::UpdateP1Information(), and anonymous_namespace{G4P2ToolsManager.cc}::UpdateP2Information().

◆ SetFileName()

void G4HnInformation::SetFileName ( G4String  fileName)
inline

Definition at line 151 of file G4HnInformation.hh.

152{ fFileName = fileName; }

References fFileName.

Referenced by G4HnManager::SetFileName().

◆ SetIsLogAxis()

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

Definition at line 139 of file G4HnInformation.hh.

140{ fIsLogAxis[axis] = isLog; }

References fIsLogAxis.

◆ SetPlotting()

void G4HnInformation::SetPlotting ( G4bool  plotting)
inline

Definition at line 148 of file G4HnInformation.hh.

149{ fPlotting = plotting; }

References fPlotting.

Referenced by G4HnManager::SetPlotting().

Field Documentation

◆ fActivation

G4bool G4HnInformation::fActivation { true }
private

Definition at line 105 of file G4HnInformation.hh.

Referenced by GetActivation(), and SetActivation().

◆ fAscii

G4bool G4HnInformation::fAscii { false }
private

Definition at line 106 of file G4HnInformation.hh.

Referenced by GetAscii(), and SetAscii().

◆ fFileName

G4String G4HnInformation::fFileName
private

Definition at line 108 of file G4HnInformation.hh.

Referenced by GetFileName(), and SetFileName().

◆ fHnDimensionInformations

std::vector<G4HnDimensionInformation> G4HnInformation::fHnDimensionInformations
private

◆ fIsLogAxis

std::vector<G4bool> G4HnInformation::fIsLogAxis { false, false, false }
private

Definition at line 104 of file G4HnInformation.hh.

Referenced by GetIsLogAxis(), and SetIsLogAxis().

◆ fName

G4String G4HnInformation::fName
private

Definition at line 102 of file G4HnInformation.hh.

Referenced by GetName().

◆ fPlotting

G4bool G4HnInformation::fPlotting { false }
private

Definition at line 107 of file G4HnInformation.hh.

Referenced by GetPlotting(), and SetPlotting().


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