Geant4 10.7.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 43 of file G4CascadeSampler.hh.

Member Enumeration Documentation

◆ anonymous enum

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

Definition at line 45 of file G4CascadeSampler.hh.

45{ 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 47 of file G4CascadeSampler.hh.

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

◆ ~G4CascadeSampler()

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

Definition at line 50 of file G4CascadeSampler.hh.

50{}

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: