Geant4 11.3.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 (G4String name, G4int nofDimensions)
 
 G4HnInformation ()=delete
 
void Update (const G4HnInformation &other)
 
void AddDimension (const G4HnDimensionInformation &hnDimensionInformation)
 
void SetDimension (G4int dimension, const G4HnDimensionInformation &hnDimensionInformation)
 
void SetIsLogAxis (G4int axis, G4bool isLog)
 
void SetActivation (G4bool activation)
 
void SetAscii (G4bool ascii)
 
void SetPlotting (G4bool plotting)
 
void SetDeleted (G4bool deleted, G4bool keepSetting)
 
void SetFileName (const G4String &fileName)
 
G4String GetName () const
 
G4HnDimensionInformationGetHnDimensionInformation (G4int dimension)
 
const G4HnDimensionInformationGetHnDimensionInformation (G4int dimension) const
 
G4bool GetIsLogAxis (G4int axis) const
 
G4bool GetActivation () const
 
G4bool GetAscii () const
 
G4bool GetPlotting () const
 
G4bool GetDeleted () const
 
std::pair< G4bool, G4boolGetDeletedPair () const
 
G4String GetFileName () const
 

Detailed Description

Definition at line 101 of file G4HnInformation.hh.

Constructor & Destructor Documentation

◆ G4HnInformation() [1/2]

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

Definition at line 104 of file G4HnInformation.hh.

105 : fName(std::move(name))
106 { fHnDimensionInformations.reserve(nofDimensions); }

Referenced by Update().

◆ G4HnInformation() [2/2]

G4HnInformation::G4HnInformation ( )
delete

Member Function Documentation

◆ AddDimension()

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

Definition at line 181 of file G4HnInformation.hh.

183{ fHnDimensionInformations.push_back(hnDimensionInformation); }

◆ GetActivation()

G4bool G4HnInformation::GetActivation ( ) const
inline

Definition at line 222 of file G4HnInformation.hh.

223{ return fActivation; }

Referenced by G4HnManager::AddHnInformation(), G4HnManager::GetActivation(), G4HnManager::SetHnDeleted(), and Update().

◆ GetAscii()

G4bool G4HnInformation::GetAscii ( ) const
inline

◆ GetDeleted()

G4bool G4HnInformation::GetDeleted ( ) const
inline

Definition at line 231 of file G4HnInformation.hh.

232{ return fDeleted.first; }

◆ GetDeletedPair()

std::pair< G4bool, G4bool > G4HnInformation::GetDeletedPair ( ) const
inline

Definition at line 234 of file G4HnInformation.hh.

235{ return fDeleted; }

◆ GetFileName()

G4String G4HnInformation::GetFileName ( ) const
inline

Definition at line 237 of file G4HnInformation.hh.

238{ return fFileName; }

Referenced by G4HnManager::AddHnInformation(), G4HnManager::GetFileName(), G4HnManager::SetHnDeleted(), and Update().

◆ GetHnDimensionInformation() [1/2]

G4HnDimensionInformation * G4HnInformation::GetHnDimensionInformation ( G4int dimension)
inline

Definition at line 213 of file G4HnInformation.hh.

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

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

◆ GetHnDimensionInformation() [2/2]

const G4HnDimensionInformation & G4HnInformation::GetHnDimensionInformation ( G4int dimension) const
inline

Definition at line 216 of file G4HnInformation.hh.

217{ return fHnDimensionInformations[dimension]; }

◆ GetIsLogAxis()

G4bool G4HnInformation::GetIsLogAxis ( G4int axis) const
inline

Definition at line 219 of file G4HnInformation.hh.

220{ return fIsLogAxis[axis]; }

Referenced by G4HnManager::GetAxisIsLog(), and Update().

◆ GetName()

G4String G4HnInformation::GetName ( ) const
inline

Definition at line 210 of file G4HnInformation.hh.

211{ return fName; }

Referenced by G4HnManager::GetName().

◆ GetPlotting()

G4bool G4HnInformation::GetPlotting ( ) const
inline

Definition at line 228 of file G4HnInformation.hh.

229{ return fPlotting; }

Referenced by G4HnManager::AddHnInformation(), G4HnManager::GetPlotting(), G4HnManager::SetHnDeleted(), and Update().

◆ SetActivation()

void G4HnInformation::SetActivation ( G4bool activation)
inline

Definition at line 195 of file G4HnInformation.hh.

196{ fActivation = activation; }

◆ SetAscii()

void G4HnInformation::SetAscii ( G4bool ascii)
inline

Definition at line 198 of file G4HnInformation.hh.

199{ fAscii = ascii; }

Referenced by G4HnManager::SetAscii().

◆ SetDeleted()

void G4HnInformation::SetDeleted ( G4bool deleted,
G4bool keepSetting )
inline

Definition at line 204 of file G4HnInformation.hh.

205{ fDeleted = std::make_pair(deleted, keepSetting); }

Referenced by G4HnManager::SetHnDeleted().

◆ SetDimension()

void G4HnInformation::SetDimension ( G4int dimension,
const G4HnDimensionInformation & hnDimensionInformation )
inline

Definition at line 185 of file G4HnInformation.hh.

187{
188 auto info = GetHnDimensionInformation(dimension);
189 (*info) = hnDimensionInformation;
190}
G4HnDimensionInformation * GetHnDimensionInformation(G4int dimension)

◆ SetFileName()

void G4HnInformation::SetFileName ( const G4String & fileName)
inline

Definition at line 207 of file G4HnInformation.hh.

208{ fFileName = fileName; }

◆ SetIsLogAxis()

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

Definition at line 192 of file G4HnInformation.hh.

193{ fIsLogAxis[axis] = isLog; }

Referenced by G4HnManager::SetAxisIsLog(), and Update().

◆ SetPlotting()

void G4HnInformation::SetPlotting ( G4bool plotting)
inline

Definition at line 201 of file G4HnInformation.hh.

202{ fPlotting = plotting; }

◆ Update()

void G4HnInformation::Update ( const G4HnInformation & other)
inline

Definition at line 112 of file G4HnInformation.hh.

112 {
113 // Update all information except name and fHnDimensionInformations
114 for (G4int i = 0; i < (G4int)fHnDimensionInformations.size(); ++i) {
115 SetIsLogAxis(i, other.GetIsLogAxis(i));
116 }
117 fActivation = other.GetActivation();
118 fAscii = other.GetAscii();
119 fPlotting = other.GetPlotting();
120 fFileName = other.GetFileName();
121 }
int G4int
Definition G4Types.hh:85
G4bool GetIsLogAxis(G4int axis) const
G4bool GetPlotting() const
G4bool GetActivation() const
G4bool GetAscii() const
void SetIsLogAxis(G4int axis, G4bool isLog)
G4String GetFileName() const

Referenced by G4HnManager::AddHnInformation().


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