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

#include <G4ee2KChargedModel.hh>

Inheritance diagram for G4ee2KChargedModel:
G4Vee2hadrons

Public Member Functions

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

Protected Attributes

G4eeCrossSectionscross
 

Private Attributes

G4double delta
 
G4double highEnergy
 
G4double lowEnergy
 
G4double massK
 
G4double massPhi
 

Detailed Description

Definition at line 58 of file G4ee2KChargedModel.hh.

Constructor & Destructor Documentation

◆ G4ee2KChargedModel() [1/2]

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

Definition at line 63 of file G4ee2KChargedModel.cc.

66: G4Vee2hadrons(cr,
67 2.0*G4KaonPlus::KaonPlus()->GetPDGMass(),
68 maxkinEnergy,
69 binWidth)
70{
71 G4cout << "####G4ee2KChargedModel####" << 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 G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:112
G4Vee2hadrons(G4eeCrossSections *cr, G4double vlowEnergy, G4double vhighEnergy, G4double vdelta)

References G4cout, G4endl, G4ParticleDefinition::GetPDGMass(), G4KaonPlus::KaonPlus(), massK, massPhi, and MeV.

◆ ~G4ee2KChargedModel()

G4ee2KChargedModel::~G4ee2KChargedModel ( )
override

Definition at line 79 of file G4ee2KChargedModel.cc.

80{}

◆ G4ee2KChargedModel() [2/2]

G4ee2KChargedModel::G4ee2KChargedModel ( const G4ee2KChargedModel )
delete

Member Function Documentation

◆ ComputeCrossSection()

G4double G4ee2KChargedModel::ComputeCrossSection ( G4double  e) const
overridevirtual

Implements G4Vee2hadrons.

Definition at line 91 of file G4ee2KChargedModel.cc.

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

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

◆ 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=()

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

◆ PeakEnergy()

G4double G4ee2KChargedModel::PeakEnergy ( ) const
overridevirtual

Implements G4Vee2hadrons.

Definition at line 84 of file G4ee2KChargedModel.cc.

85{
86 return massPhi;
87}

References massPhi.

◆ PhysicsVector()

G4PhysicsVector * G4Vee2hadrons::PhysicsVector ( ) const
inlineinherited

◆ SampleSecondaries()

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

Implements G4Vee2hadrons.

Definition at line 98 of file G4ee2KChargedModel.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 G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:112

References G4UniformRand, G4KaonMinus::KaonMinus(), G4KaonPlus::KaonPlus(), 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 G4ee2KChargedModel::massK
private

Definition at line 80 of file G4ee2KChargedModel.hh.

Referenced by G4ee2KChargedModel(), and SampleSecondaries().

◆ massPhi

G4double G4ee2KChargedModel::massPhi
private

Definition at line 81 of file G4ee2KChargedModel.hh.

Referenced by G4ee2KChargedModel(), and PeakEnergy().


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