Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4NumIntTwoBodyAngDst< NKEBINS, NANGLES > Class Template Reference

#include <G4NumIntTwoBodyAngDst.hh>

+ Inheritance diagram for G4NumIntTwoBodyAngDst< NKEBINS, NANGLES >:

Public Types

enum  { nDists =NKEBINS , nAngles =NANGLES }
 

Public Member Functions

 G4NumIntTwoBodyAngDst (const G4String &name, const G4double(&kebins)[nDists], const G4double(&angles)[nAngles], const G4double(&dists)[nDists][nAngles], const G4double highKEscale, G4int verbose=0)
 
virtual ~G4NumIntTwoBodyAngDst ()
 
virtual G4double GetCosTheta (const G4double &ekin, const G4double &pcm) const
 
- Public Member Functions inherited from G4VTwoBodyAngDst
 G4VTwoBodyAngDst (const G4String &name, G4int verbose=0)
 
virtual ~G4VTwoBodyAngDst ()
 
virtual G4double GetCosTheta (const G4double &ekin, const G4double &pcm) const =0
 
virtual void setVerboseLevel (G4int verbose=0)
 
virtual const G4StringGetName () const
 

Protected Member Functions

void Interpolate (const G4double &ekin) const
 

Protected Attributes

G4double tcoeff
 
const G4double(& labKE )[nDists]
 
const G4double(& cosBins )[nAngles]
 
const G4double(& angDists )[nDists][nAngles]
 
G4double angDist [nAngles]
 
- Protected Attributes inherited from G4VTwoBodyAngDst
G4String theName
 
G4int verboseLevel
 

Detailed Description

template<G4int NKEBINS, G4int NANGLES>
class G4NumIntTwoBodyAngDst< NKEBINS, NANGLES >

Definition at line 43 of file G4NumIntTwoBodyAngDst.hh.

Member Enumeration Documentation

◆ anonymous enum

template<G4int NKEBINS, G4int NANGLES>
anonymous enum
Enumerator
nDists 
nAngles 

Definition at line 45 of file G4NumIntTwoBodyAngDst.hh.

45{ nDists=NKEBINS, nAngles=NANGLES }; // For use in function arguments

Constructor & Destructor Documentation

◆ G4NumIntTwoBodyAngDst()

template<G4int NKEBINS, G4int NANGLES>
G4NumIntTwoBodyAngDst< NKEBINS, NANGLES >::G4NumIntTwoBodyAngDst ( const G4String name,
const G4double(&)  kebins[nDists],
const G4double(&)  angles[nAngles],
const G4double(&)  dists[nDists][nAngles],
const G4double  highKEscale,
G4int  verbose = 0 
)
inline

Definition at line 47 of file G4NumIntTwoBodyAngDst.hh.

52 : G4VTwoBodyAngDst(name, verbose), tcoeff(highKEscale),
53 labKE(kebins), cosBins(angles), angDists(dists) {
54 std::fill(angDist, angDist+nDists, 0.); // Initialize working buffer
55 }
const G4double(& cosBins)[nAngles]
const G4double(& labKE)[nDists]
const G4double(& angDists)[nDists][nAngles]

◆ ~G4NumIntTwoBodyAngDst()

template<G4int NKEBINS, G4int NANGLES>
virtual G4NumIntTwoBodyAngDst< NKEBINS, NANGLES >::~G4NumIntTwoBodyAngDst ( )
inlinevirtual

Definition at line 57 of file G4NumIntTwoBodyAngDst.hh.

57{;}

Member Function Documentation

◆ GetCosTheta()

template<G4int NKEBINS, G4int NANGLES>
virtual G4double G4NumIntTwoBodyAngDst< NKEBINS, NANGLES >::GetCosTheta ( const G4double ekin,
const G4double pcm 
) const
virtual

Implements G4VTwoBodyAngDst.

◆ Interpolate()

template<G4int NKEBINS, G4int NANGLES>
void G4NumIntTwoBodyAngDst< NKEBINS, NANGLES >::Interpolate ( const G4double ekin) const
protected

Member Data Documentation

◆ angDist

template<G4int NKEBINS, G4int NANGLES>
G4double G4NumIntTwoBodyAngDst< NKEBINS, NANGLES >::angDist[nAngles]
mutableprotected

◆ angDists

template<G4int NKEBINS, G4int NANGLES>
const G4double(& G4NumIntTwoBodyAngDst< NKEBINS, NANGLES >::angDists)[nDists][nAngles]
protected

Definition at line 72 of file G4NumIntTwoBodyAngDst.hh.

◆ cosBins

template<G4int NKEBINS, G4int NANGLES>
const G4double(& G4NumIntTwoBodyAngDst< NKEBINS, NANGLES >::cosBins)[nAngles]
protected

Definition at line 68 of file G4NumIntTwoBodyAngDst.hh.

◆ labKE

template<G4int NKEBINS, G4int NANGLES>
const G4double(& G4NumIntTwoBodyAngDst< NKEBINS, NANGLES >::labKE)[nDists]
protected

Definition at line 65 of file G4NumIntTwoBodyAngDst.hh.

◆ tcoeff

template<G4int NKEBINS, G4int NANGLES>
G4double G4NumIntTwoBodyAngDst< NKEBINS, NANGLES >::tcoeff
protected

Definition at line 62 of file G4NumIntTwoBodyAngDst.hh.


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