Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ee2KNeutralModel Class Reference

#include <G4ee2KNeutralModel.hh>

Inheritance diagram for G4ee2KNeutralModel:
Collaboration diagram for G4ee2KNeutralModel:

Public Member Functions

 G4ee2KNeutralModel (G4eeCrossSections *, G4double, G4double)
 
virtual ~G4ee2KNeutralModel ()
 
virtual G4double PeakEnergy () const override
 
virtual G4double ComputeCrossSection (G4double) const override
 
virtual void SampleSecondaries (std::vector< G4DynamicParticle * > *, G4double, const G4ThreeVector &) override
 
- Public Member Functions inherited from G4Vee2hadrons
 G4Vee2hadrons (G4eeCrossSections *cr, G4double vlowEnergy, G4double vhighEnergy, G4double vdelta)
 
virtual ~G4Vee2hadrons ()
 
G4PhysicsVectorPhysicsVector () const
 
G4double LowEnergy () const
 
G4double HighEnergy () const
 

Additional Inherited Members

- Protected Attributes inherited from G4Vee2hadrons
G4eeCrossSectionscross
 

Detailed Description

Definition at line 59 of file G4ee2KNeutralModel.hh.

Constructor & Destructor Documentation

G4ee2KNeutralModel::G4ee2KNeutralModel ( G4eeCrossSections cr,
G4double  maxkinEnergy,
G4double  binWidth 
)
explicit

Definition at line 64 of file G4ee2KNeutralModel.cc.

67 : G4Vee2hadrons(cr,
68  2.0*G4KaonZeroLong::KaonZeroLong()->GetPDGMass(),
69  maxkinEnergy,
70  binWidth)
71 {
72  G4cout << "####G4ee2KNeutralModel####" <<G4endl;
73 
75  massPhi = 1019.46*MeV;
76 }
static G4KaonZeroLong * KaonZeroLong()
G4GLOB_DLL std::ostream G4cout
G4Vee2hadrons(G4eeCrossSections *cr, G4double vlowEnergy, G4double vhighEnergy, G4double vdelta)
G4double GetPDGMass() const
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214

Here is the call graph for this function:

G4ee2KNeutralModel::~G4ee2KNeutralModel ( )
virtual

Definition at line 80 of file G4ee2KNeutralModel.cc.

81 {}

Member Function Documentation

G4double G4ee2KNeutralModel::ComputeCrossSection ( G4double  e) const
overridevirtual

Implements G4Vee2hadrons.

Definition at line 92 of file G4ee2KNeutralModel.cc.

93 {
94  return cross->CrossSection2Kneutral(e);
95 }
G4eeCrossSections * cross
G4double CrossSection2Kneutral(G4double)

Here is the call graph for this function:

G4double G4ee2KNeutralModel::PeakEnergy ( ) const
overridevirtual

Implements G4Vee2hadrons.

Definition at line 85 of file G4ee2KNeutralModel.cc.

86 {
87  return massPhi;
88 }
void G4ee2KNeutralModel::SampleSecondaries ( std::vector< G4DynamicParticle * > *  newp,
G4double  e,
const G4ThreeVector direction 
)
overridevirtual

Implements G4Vee2hadrons.

Definition at line 99 of file G4ee2KNeutralModel.cc.

101 {
102 
103  G4double tkin = 0.5*e - massK;
104  if(tkin < 0.0) tkin = 0.0;
105 
106  G4double cost;
107  do {
108  cost = 2.0*G4UniformRand() - 1.0;
109  // Loop checking, 07-Aug-2015, Vladimir Ivanchenko
110  } while( G4UniformRand() > 1.0 - cost*cost );
111 
112  G4double sint = sqrt(1.0 - cost*cost);
113  G4double phi = twopi * G4UniformRand();
114 
115  G4ThreeVector dir(sint*cos(phi),sint*sin(phi), cost);
116  dir.rotateUz(direction);
117 
118  // create G4DynamicParticle objects
119  G4DynamicParticle* p1 =
121  G4DynamicParticle* p2 =
123  newp->push_back(p1);
124  newp->push_back(p2);
125 }
static G4KaonZeroLong * KaonZeroLong()
static constexpr double twopi
Definition: G4SIunits.hh:76
#define G4UniformRand()
Definition: Randomize.hh:97
static G4KaonZeroShort * KaonZeroShort()
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:


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