Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4CascadeSampler< NBINS, NMULT > Class Template Reference

#include <G4CascadeSampler.hh>

Public Types

enum  { energyBins =NBINS , multBins =NMULT }
 

Public Member Functions

 G4CascadeSampler (const G4double(&ebins)[energyBins])
 
virtual ~G4CascadeSampler ()
 
virtual G4double findCrossSection (double ke, const G4double(&xsec)[energyBins]) const
 
virtual G4int findMultiplicity (G4double ke, const G4double xmult[][energyBins]) const
 
virtual G4int findFinalStateIndex (G4int mult, G4double ke, const G4int index[], const G4double xsec[][energyBins]) const
 
virtual void print (std::ostream &os) const
 

Detailed Description

template<int NBINS, int NMULT>
class G4CascadeSampler< NBINS, NMULT >

Definition at line 44 of file G4CascadeSampler.hh.

Member Enumeration Documentation

◆ anonymous enum

template<int NBINS, int NMULT>
anonymous enum
Enumerator
energyBins 
multBins 

Definition at line 46 of file G4CascadeSampler.hh.

46{ energyBins=NBINS, multBins=NMULT }; // For use in function arguments

Constructor & Destructor Documentation

◆ G4CascadeSampler()

template<int NBINS, int NMULT>
G4CascadeSampler< NBINS, NMULT >::G4CascadeSampler ( const G4double(&)  ebins[energyBins])
inline

Definition at line 48 of file G4CascadeSampler.hh.

49 : interpolator(ebins), energyScale(ebins) {}

◆ ~G4CascadeSampler()

template<int NBINS, int NMULT>
virtual G4CascadeSampler< NBINS, NMULT >::~G4CascadeSampler ( )
inlinevirtual

Definition at line 51 of file G4CascadeSampler.hh.

51{}

Member Function Documentation

◆ findCrossSection()

template<int NBINS, int NMULT>
virtual G4double G4CascadeSampler< NBINS, NMULT >::findCrossSection ( double  ke,
const G4double(&)  xsec[energyBins] 
) const
virtual

◆ findFinalStateIndex()

template<int NBINS, int NMULT>
virtual G4int G4CascadeSampler< NBINS, NMULT >::findFinalStateIndex ( G4int  mult,
G4double  ke,
const G4int  index[],
const G4double  xsec[][energyBins] 
) const
virtual

◆ findMultiplicity()

template<int NBINS, int NMULT>
virtual G4int G4CascadeSampler< NBINS, NMULT >::findMultiplicity ( G4double  ke,
const G4double  xmult[][energyBins] 
) const
virtual

◆ print()

template<int NBINS, int NMULT>
virtual void G4CascadeSampler< NBINS, NMULT >::print ( std::ostream &  os) const
virtual

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