Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4CascadeInterpolator< NBINS > Class Template Reference

#include <G4CascadeInterpolator.hh>

Public Types

enum  { nBins =NBINS , last =NBINS-1 }
 

Public Member Functions

 G4CascadeInterpolator (const G4double(&xb)[nBins], G4bool extrapolate=true)
 
virtual ~G4CascadeInterpolator ()
 
G4double getBin (const G4double x) const
 
G4double interpolate (const G4double x, const G4double(&yb)[nBins]) const
 
G4double interpolate (const G4double(&yb)[nBins]) const
 
void printBins (std::ostream &os) const
 

Detailed Description

template<int NBINS>
class G4CascadeInterpolator< NBINS >

Definition at line 51 of file G4CascadeInterpolator.hh.

Member Enumeration Documentation

◆ anonymous enum

template<int NBINS>
anonymous enum
Enumerator
nBins 
last 

Definition at line 53 of file G4CascadeInterpolator.hh.

Constructor & Destructor Documentation

◆ G4CascadeInterpolator()

template<int NBINS>
G4CascadeInterpolator< NBINS >::G4CascadeInterpolator ( const G4double(&)  xb[nBins],
G4bool  extrapolate = true 
)
inline

Definition at line 55 of file G4CascadeInterpolator.hh.

56 : xBins(xb), doExtrapolation(extrapolate),
57 lastX(-DBL_MAX), lastVal(-DBL_MAX) {}
#define DBL_MAX
Definition: templates.hh:62

◆ ~G4CascadeInterpolator()

template<int NBINS>
virtual G4CascadeInterpolator< NBINS >::~G4CascadeInterpolator ( )
inlinevirtual

Definition at line 59 of file G4CascadeInterpolator.hh.

59{}

Member Function Documentation

◆ getBin()

template<int NBINS>
G4double G4CascadeInterpolator< NBINS >::getBin ( const G4double  x) const

◆ interpolate() [1/2]

template<int NBINS>
G4double G4CascadeInterpolator< NBINS >::interpolate ( const G4double  x,
const G4double(&)  yb[nBins] 
) const

◆ interpolate() [2/2]

template<int NBINS>
G4double G4CascadeInterpolator< NBINS >::interpolate ( const G4double(&)  yb[nBins]) const

◆ printBins()

template<int NBINS>
void G4CascadeInterpolator< NBINS >::printBins ( std::ostream &  os) const

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