Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4eeToTwoPiModel Class Reference

#include <G4eeToTwoPiModel.hh>

+ Inheritance diagram for G4eeToTwoPiModel:

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from G4Vee2hadrons
G4eeCrossSectionscross
 

Detailed Description

Definition at line 58 of file G4eeToTwoPiModel.hh.

Constructor & Destructor Documentation

◆ G4eeToTwoPiModel() [1/2]

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

Definition at line 63 of file G4eeToTwoPiModel.cc.

66: G4Vee2hadrons(cr,
67 2.0*G4PionPlus::PionPlus()->GetPDGMass(),
68 maxkinEnergy,
69 binWidth)
70{
71 G4cout << "#####G4eeToTwoPiModel####" << G4endl;
72
73 massPi = G4PionPlus::PionPlus()->GetPDGMass();
74 massRho = 775.5*CLHEP::MeV;
75}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
static G4PionPlus * PionPlus()
Definition: G4PionPlus.cc:97

◆ ~G4eeToTwoPiModel()

G4eeToTwoPiModel::~G4eeToTwoPiModel ( )
override

Definition at line 79 of file G4eeToTwoPiModel.cc.

80{}

◆ G4eeToTwoPiModel() [2/2]

G4eeToTwoPiModel::G4eeToTwoPiModel ( const G4eeToTwoPiModel )
delete

Member Function Documentation

◆ ComputeCrossSection()

G4double G4eeToTwoPiModel::ComputeCrossSection ( G4double  e) const
overridevirtual

Implements G4Vee2hadrons.

Definition at line 91 of file G4eeToTwoPiModel.cc.

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

◆ operator=()

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

◆ PeakEnergy()

G4double G4eeToTwoPiModel::PeakEnergy ( ) const
overridevirtual

Implements G4Vee2hadrons.

Definition at line 84 of file G4eeToTwoPiModel.cc.

85{
86 return massRho;
87}

◆ SampleSecondaries()

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

Implements G4Vee2hadrons.

Definition at line 98 of file G4eeToTwoPiModel.cc.

100{
101
102 G4double tkin = 0.5*e - massPi;
103 if(tkin < 0.0) tkin = 0.0;
104 G4double cost;
105 do {
106 cost = 2.0*G4UniformRand() - 1.0;
107 // Loop checking, 07-Aug-2015, Vladimir Ivanchenko
108 } while( G4UniformRand() > 1.0 - cost*cost );
109
110 G4double sint = sqrt(1.0 - cost*cost);
111 G4double phi = twopi * G4UniformRand();
112
113 G4ThreeVector dir(sint*cos(phi),sint*sin(phi), cost);
114 dir.rotateUz(direction);
115
116 // create G4DynamicParticle objects
119 G4DynamicParticle* pin =
121 newp->push_back(pip);
122 newp->push_back(pin);
123}
double G4double
Definition: G4Types.hh:83
#define G4UniformRand()
Definition: Randomize.hh:52
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:97

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