Geant4  10.02
G4CascadeSampler< NBINS, NMULT > Class Template Reference

#include <G4CascadeSampler.hh>

+ Inheritance diagram for G4CascadeSampler< NBINS, NMULT >:

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
 

Private Member Functions

void fillSigmaBuffer (G4double ke, const G4double x[][energyBins], G4int startBin=0, G4int stopBin=multBins) const
 
G4int sampleFlat () const
 

Private Attributes

G4CascadeInterpolator< NBINS > interpolator
 
std::vector< G4doublesigmaBuf
 
const G4double(& energyScale )[energyBins]
 

Detailed Description

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

Definition at line 44 of file G4CascadeSampler.hh.

Member Enumeration Documentation

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

Definition at line 46 of file G4CascadeSampler.hh.

Constructor & Destructor Documentation

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

Definition at line 48 of file G4CascadeSampler.hh.

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

Definition at line 51 of file G4CascadeSampler.hh.

Member Function Documentation

template<int NBINS, int NMULT>
void G4CascadeSampler< NBINS, NMULT >::fillSigmaBuffer ( G4double  ke,
const G4double  x[][energyBins],
G4int  startBin = 0,
G4int  stopBin = multBins 
) const
private
template<int NBINS, int NMULT>
virtual G4double G4CascadeSampler< NBINS, NMULT >::findCrossSection ( double  ke,
const G4double(&)  xsec[energyBins] 
) const
virtual
template<int NBINS, int NMULT>
virtual G4int G4CascadeSampler< NBINS, NMULT >::findFinalStateIndex ( G4int  mult,
G4double  ke,
const G4int  index[],
const G4double  xsec[][energyBins] 
) const
virtual
template<int NBINS, int NMULT>
virtual G4int G4CascadeSampler< NBINS, NMULT >::findMultiplicity ( G4double  ke,
const G4double  xmult[][energyBins] 
) const
virtual
template<int NBINS, int NMULT>
virtual void G4CascadeSampler< NBINS, NMULT >::print ( std::ostream &  os) const
virtual
template<int NBINS, int NMULT>
G4int G4CascadeSampler< NBINS, NMULT >::sampleFlat ( ) const
private

Member Data Documentation

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

Definition at line 74 of file G4CascadeSampler.hh.

template<int NBINS, int NMULT>
G4CascadeInterpolator<NBINS> G4CascadeSampler< NBINS, NMULT >::interpolator
private

Definition at line 72 of file G4CascadeSampler.hh.

template<int NBINS, int NMULT>
std::vector<G4double> G4CascadeSampler< NBINS, NMULT >::sigmaBuf
mutableprivate

Definition at line 73 of file G4CascadeSampler.hh.


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