Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HnDimension Struct Reference

#include <G4HnInformation.hh>

Public Member Functions

 G4HnDimension (G4int nbins, G4double minValue, G4double maxValue)
 
 G4HnDimension (const std::vector< G4double > &edges)
 
 G4HnDimension ()=default
 
 G4HnDimension (const G4HnDimension &rhs)=default
 
G4HnDimensionoperator= (const G4HnDimension &rhs)=default
 
void Print () const
 

Public Attributes

G4int fNBins {0}
 
G4double fMinValue {0.}
 
G4double fMaxValue {0.}
 
std::vector< G4doublefEdges
 

Detailed Description

Definition at line 43 of file G4HnInformation.hh.

Constructor & Destructor Documentation

◆ G4HnDimension() [1/4]

G4HnDimension::G4HnDimension ( G4int nbins,
G4double minValue,
G4double maxValue )
inline

Definition at line 45 of file G4HnInformation.hh.

49 : fNBins(nbins),
50 fMinValue(minValue),
51 fMaxValue(maxValue)
52 {
53 fEdges.clear();
54 }
std::vector< G4double > fEdges

◆ G4HnDimension() [2/4]

G4HnDimension::G4HnDimension ( const std::vector< G4double > & edges)
inline

Definition at line 56 of file G4HnInformation.hh.

57 : fNBins(0),
58 fMinValue(0.),
59 fMaxValue(0.),
60 fEdges(edges)
61 {}

◆ G4HnDimension() [3/4]

G4HnDimension::G4HnDimension ( )
default

◆ G4HnDimension() [4/4]

G4HnDimension::G4HnDimension ( const G4HnDimension & rhs)
default

Member Function Documentation

◆ operator=()

G4HnDimension & G4HnDimension::operator= ( const G4HnDimension & rhs)
default

◆ Print()

void G4HnDimension::Print ( ) const

Definition at line 34 of file G4HnInformation.cc.

35{
36 G4cout
37 << "NBins: " << fNBins << " minValue: " << fMinValue << " maxValue: "
38 << fMaxValue << ";" << " edges: ";
39 for ( auto value : fEdges ) {
40 G4cout << value << ", ";
41 }
42 G4cout << G4endl;
43}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout

Member Data Documentation

◆ fEdges

std::vector<G4double> G4HnDimension::fEdges

◆ fMaxValue

G4double G4HnDimension::fMaxValue {0.}

◆ fMinValue

G4double G4HnDimension::fMinValue {0.}

◆ fNBins

G4int G4HnDimension::fNBins {0}

Definition at line 69 of file G4HnInformation.hh.

69{0};

Referenced by G4Analysis::CheckDimension(), Print(), and G4Analysis::Update().


The documentation for this struct was generated from the following files: