Geant4 11.2.2
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 106 of file G4HnInformation.hh.

Constructor & Destructor Documentation

◆ G4HnInformation() [1/2]

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

Definition at line 109 of file G4HnInformation.hh.

110 : fName(std::move(name))
111 { fHnDimensionInformations.reserve(nofDimensions); }

◆ G4HnInformation() [2/2]

G4HnInformation::G4HnInformation ( )
delete

Member Function Documentation

◆ AddDimension()

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

Definition at line 186 of file G4HnInformation.hh.

188{ fHnDimensionInformations.push_back(hnDimensionInformation); }

◆ GetActivation()

G4bool G4HnInformation::GetActivation ( ) const
inline

Definition at line 227 of file G4HnInformation.hh.

228{ 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 236 of file G4HnInformation.hh.

237{ return fDeleted.first; }

◆ GetDeletedPair()

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

Definition at line 239 of file G4HnInformation.hh.

240{ return fDeleted; }

◆ GetFileName()

G4String G4HnInformation::GetFileName ( ) const
inline

Definition at line 242 of file G4HnInformation.hh.

243{ return fFileName; }

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

◆ GetHnDimensionInformation() [1/2]

G4HnDimensionInformation * G4HnInformation::GetHnDimensionInformation ( G4int dimension)
inline

Definition at line 218 of file G4HnInformation.hh.

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

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

◆ GetHnDimensionInformation() [2/2]

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

Definition at line 221 of file G4HnInformation.hh.

222{ return fHnDimensionInformations[dimension]; }

◆ GetIsLogAxis()

G4bool G4HnInformation::GetIsLogAxis ( G4int axis) const
inline

Definition at line 224 of file G4HnInformation.hh.

225{ return fIsLogAxis[axis]; }

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

◆ GetName()

G4String G4HnInformation::GetName ( ) const
inline

Definition at line 215 of file G4HnInformation.hh.

216{ return fName; }

Referenced by G4HnManager::GetName().

◆ GetPlotting()

G4bool G4HnInformation::GetPlotting ( ) const
inline

Definition at line 233 of file G4HnInformation.hh.

234{ return fPlotting; }

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

◆ SetActivation()

void G4HnInformation::SetActivation ( G4bool activation)
inline

Definition at line 200 of file G4HnInformation.hh.

201{ fActivation = activation; }

◆ SetAscii()

void G4HnInformation::SetAscii ( G4bool ascii)
inline

Definition at line 203 of file G4HnInformation.hh.

204{ fAscii = ascii; }

Referenced by G4HnManager::SetAscii().

◆ SetDeleted()

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

Definition at line 209 of file G4HnInformation.hh.

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

Referenced by G4HnManager::SetHnDeleted().

◆ SetDimension()

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

Definition at line 190 of file G4HnInformation.hh.

192{
193 auto info = GetHnDimensionInformation(dimension);
194 (*info) = hnDimensionInformation;
195}
G4HnDimensionInformation * GetHnDimensionInformation(G4int dimension)

◆ SetFileName()

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

Definition at line 212 of file G4HnInformation.hh.

213{ fFileName = fileName; }

◆ SetIsLogAxis()

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

Definition at line 197 of file G4HnInformation.hh.

198{ fIsLogAxis[axis] = isLog; }

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

◆ SetPlotting()

void G4HnInformation::SetPlotting ( G4bool plotting)
inline

Definition at line 206 of file G4HnInformation.hh.

207{ fPlotting = plotting; }

◆ Update()

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

Definition at line 117 of file G4HnInformation.hh.

117 {
118 // Update all information except name and fHnDimensionInformations
119 for (G4int i = 0; i < (G4int)fHnDimensionInformations.size(); ++i) {
120 SetIsLogAxis(i, other.GetIsLogAxis(i));
121 }
122 fActivation = other.GetActivation();
123 fAscii = other.GetAscii();
124 fPlotting = other.GetPlotting();
125 fFileName = other.GetFileName();
126 }
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: