Geant4 11.1.1
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 (G4double 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<G4int NBINS, G4int NMULT>
class G4CascadeSampler< NBINS, NMULT >

Definition at line 43 of file G4CascadeSampler.hh.

Member Enumeration Documentation

◆ anonymous enum

template<G4int NBINS, G4int 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<G4int NBINS, G4int 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<G4int NBINS, G4int NMULT>
virtual G4CascadeSampler< NBINS, NMULT >::~G4CascadeSampler ( )
inlinevirtual

Definition at line 50 of file G4CascadeSampler.hh.

50{}

Member Function Documentation

◆ findCrossSection()

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

◆ findFinalStateIndex()

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

◆ findMultiplicity()

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

◆ print()

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

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