Geant4-11
Public Member Functions | Protected Attributes | Private Attributes
G4ee2KNeutralModel Class Reference

#include <G4ee2KNeutralModel.hh>

Inheritance diagram for G4ee2KNeutralModel:
G4Vee2hadrons

Public Member Functions

G4double ComputeCrossSection (G4double) const override
 
 G4ee2KNeutralModel (const G4ee2KNeutralModel &)=delete
 
 G4ee2KNeutralModel (G4eeCrossSections *, G4double, G4double)
 
G4double HighEnergy () const
 
G4double LowEnergy () const
 
G4ee2KNeutralModeloperator= (const G4ee2KNeutralModel &right)=delete
 
G4double PeakEnergy () const override
 
G4PhysicsVectorPhysicsVector () const
 
void SampleSecondaries (std::vector< G4DynamicParticle * > *, G4double, const G4ThreeVector &) override
 
 ~G4ee2KNeutralModel () override
 

Protected Attributes

G4eeCrossSectionscross
 

Private Attributes

G4double delta
 
G4double highEnergy
 
G4double lowEnergy
 
G4double massK
 
G4double massPhi
 

Detailed Description

Definition at line 58 of file G4ee2KNeutralModel.hh.

Constructor & Destructor Documentation

◆ G4ee2KNeutralModel() [1/2]

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

Definition at line 63 of file G4ee2KNeutralModel.cc.

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

References G4cout, G4endl, G4ParticleDefinition::GetPDGMass(), G4KaonZeroLong::KaonZeroLong(), massK, massPhi, and MeV.

◆ ~G4ee2KNeutralModel()

G4ee2KNeutralModel::~G4ee2KNeutralModel ( )
override

Definition at line 79 of file G4ee2KNeutralModel.cc.

80{}

◆ G4ee2KNeutralModel() [2/2]

G4ee2KNeutralModel::G4ee2KNeutralModel ( const G4ee2KNeutralModel )
delete

Member Function Documentation

◆ ComputeCrossSection()

G4double G4ee2KNeutralModel::ComputeCrossSection ( G4double  e) const
overridevirtual

Implements G4Vee2hadrons.

Definition at line 91 of file G4ee2KNeutralModel.cc.

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

References G4Vee2hadrons::cross, and G4eeCrossSections::CrossSection2Kneutral().

◆ HighEnergy()

G4double G4Vee2hadrons::HighEnergy ( ) const
inlineinherited

◆ LowEnergy()

G4double G4Vee2hadrons::LowEnergy ( ) const
inlineinherited

Definition at line 93 of file G4Vee2hadrons.hh.

93{return lowEnergy;};
G4double lowEnergy

References G4Vee2hadrons::lowEnergy.

Referenced by G4eeToHadronsMultiModel::AddEEModel(), and G4eeToHadronsModel::Initialise().

◆ operator=()

G4ee2KNeutralModel & G4ee2KNeutralModel::operator= ( const G4ee2KNeutralModel right)
delete

◆ PeakEnergy()

G4double G4ee2KNeutralModel::PeakEnergy ( ) const
overridevirtual

Implements G4Vee2hadrons.

Definition at line 84 of file G4ee2KNeutralModel.cc.

85{
86 return massPhi;
87}

References massPhi.

◆ PhysicsVector()

G4PhysicsVector * G4Vee2hadrons::PhysicsVector ( ) const
inlineinherited

◆ SampleSecondaries()

void G4ee2KNeutralModel::SampleSecondaries ( std::vector< G4DynamicParticle * > *  newp,
G4double  e,
const G4ThreeVector direction 
)
overridevirtual

Implements G4Vee2hadrons.

Definition at line 98 of file G4ee2KNeutralModel.cc.

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

References G4UniformRand, G4KaonZeroLong::KaonZeroLong(), G4KaonZeroShort::KaonZeroShort(), massK, CLHEP::Hep3Vector::rotateUz(), and twopi.

Field Documentation

◆ cross

G4eeCrossSections* G4Vee2hadrons::cross
protectedinherited

◆ delta

G4double G4Vee2hadrons::delta
privateinherited

Definition at line 106 of file G4Vee2hadrons.hh.

Referenced by G4Vee2hadrons::G4Vee2hadrons(), and G4Vee2hadrons::PhysicsVector().

◆ highEnergy

G4double G4Vee2hadrons::highEnergy
privateinherited

◆ lowEnergy

G4double G4Vee2hadrons::lowEnergy
privateinherited

◆ massK

G4double G4ee2KNeutralModel::massK
private

Definition at line 80 of file G4ee2KNeutralModel.hh.

Referenced by G4ee2KNeutralModel(), and SampleSecondaries().

◆ massPhi

G4double G4ee2KNeutralModel::massPhi
private

Definition at line 81 of file G4ee2KNeutralModel.hh.

Referenced by G4ee2KNeutralModel(), and PeakEnergy().


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