35 #ifndef G4_CASCADE_SAMPLER_HH
36 #define G4_CASCADE_SAMPLER_HH
43 template <
int NBINS,
int NMULT>
49 : interpolator(ebins), energyScale(ebins) {}
63 virtual void print(std::ostream& os)
const;
70 G4int sampleFlat()
const;
73 mutable std::vector<G4double> sigmaBuf;
77 #include "G4CascadeSampler.icc"
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 ~G4CascadeSampler()
virtual void print(std::ostream &os) const