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

#include <G4eeToHadronsMultiModel.hh>

+ Inheritance diagram for G4eeToHadronsMultiModel:

Public Member Functions

 G4eeToHadronsMultiModel (G4int ver=0, const G4String &nam="eeToHadrons")
 
virtual ~G4eeToHadronsMultiModel ()
 
virtual void Initialise (const G4ParticleDefinition *, const G4DataVector &) override
 
virtual G4double CrossSectionPerVolume (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy) override
 
virtual G4double ComputeCrossSectionPerAtom (const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX) override
 
virtual void SampleSecondaries (std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin=0.0, G4double maxEnergy=DBL_MAX) override
 
virtual void ModelDescription (std::ostream &outFile) const override
 
void SetCrossSecFactor (G4double fac)
 
G4double ComputeCrossSectionPerElectron (const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
- Public Member Functions inherited from G4VEmModel
 G4VEmModel (const G4String &nam)
 
virtual ~G4VEmModel ()
 
virtual void Initialise (const G4ParticleDefinition *, const G4DataVector &)=0
 
virtual void SampleSecondaries (std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin=0.0, G4double tmax=DBL_MAX)=0
 
virtual void InitialiseLocal (const G4ParticleDefinition *, G4VEmModel *masterModel)
 
virtual void InitialiseForMaterial (const G4ParticleDefinition *, const G4Material *)
 
virtual void InitialiseForElement (const G4ParticleDefinition *, G4int Z)
 
virtual G4double ComputeDEDXPerVolume (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=DBL_MAX)
 
virtual G4double CrossSectionPerVolume (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
virtual G4double GetPartialCrossSection (const G4Material *, G4int level, const G4ParticleDefinition *, G4double kineticEnergy)
 
virtual G4double ComputeCrossSectionPerAtom (const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A=0., G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
virtual G4double ComputeCrossSectionPerShell (const G4ParticleDefinition *, G4int Z, G4int shellIdx, G4double kinEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
virtual G4double ChargeSquareRatio (const G4Track &)
 
virtual G4double GetChargeSquareRatio (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual G4double GetParticleCharge (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual void StartTracking (G4Track *)
 
virtual void CorrectionsAlongStep (const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double &eloss, G4double &niel, G4double length)
 
virtual G4double Value (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy)
 
virtual G4double MinPrimaryEnergy (const G4Material *, const G4ParticleDefinition *, G4double cut=0.0)
 
virtual G4double MinEnergyCut (const G4ParticleDefinition *, const G4MaterialCutsCouple *)
 
virtual void SetupForMaterial (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual void DefineForRegion (const G4Region *)
 
virtual void ModelDescription (std::ostream &outFile) const
 
void InitialiseElementSelectors (const G4ParticleDefinition *, const G4DataVector &)
 
std::vector< G4EmElementSelector * > * GetElementSelectors ()
 
void SetElementSelectors (std::vector< G4EmElementSelector * > *)
 
virtual G4double ComputeDEDX (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=DBL_MAX)
 
G4double CrossSection (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
G4double ComputeMeanFreePath (const G4ParticleDefinition *, G4double kineticEnergy, const G4Material *, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
G4double ComputeCrossSectionPerAtom (const G4ParticleDefinition *, const G4Element *, G4double kinEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementSelectRandomAtom (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementSelectTargetAtom (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double logKineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementSelectRandomAtom (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
G4int SelectRandomAtomNumber (const G4Material *)
 
G4int SelectIsotopeNumber (const G4Element *)
 
void SetParticleChange (G4VParticleChange *, G4VEmFluctuationModel *f=nullptr)
 
void SetCrossSectionTable (G4PhysicsTable *, G4bool isLocal)
 
G4ElementDataGetElementData ()
 
G4PhysicsTableGetCrossSectionTable ()
 
G4VEmFluctuationModelGetModelOfFluctuations ()
 
G4VEmAngularDistributionGetAngularDistribution ()
 
G4VEmModelGetTripletModel ()
 
void SetTripletModel (G4VEmModel *)
 
void SetAngularDistribution (G4VEmAngularDistribution *)
 
G4double HighEnergyLimit () const
 
G4double LowEnergyLimit () const
 
G4double HighEnergyActivationLimit () const
 
G4double LowEnergyActivationLimit () const
 
G4double PolarAngleLimit () const
 
G4double SecondaryThreshold () const
 
G4bool LPMFlag () const
 
G4bool DeexcitationFlag () const
 
G4bool ForceBuildTableFlag () const
 
G4bool UseAngularGeneratorFlag () const
 
void SetAngularGeneratorFlag (G4bool)
 
void SetHighEnergyLimit (G4double)
 
void SetLowEnergyLimit (G4double)
 
void SetActivationHighEnergyLimit (G4double)
 
void SetActivationLowEnergyLimit (G4double)
 
G4bool IsActive (G4double kinEnergy) const
 
void SetPolarAngleLimit (G4double)
 
void SetSecondaryThreshold (G4double)
 
void SetLPMFlag (G4bool val)
 
void SetDeexcitationFlag (G4bool val)
 
void SetForceBuildTable (G4bool val)
 
void SetFluctuationFlag (G4bool val)
 
void SetMasterThread (G4bool val)
 
G4bool IsMaster () const
 
void SetUseBaseMaterials (G4bool val)
 
G4bool UseBaseMaterials () const
 
G4double MaxSecondaryKinEnergy (const G4DynamicParticle *dynParticle)
 
const G4StringGetName () const
 
void SetCurrentCouple (const G4MaterialCutsCouple *)
 
const G4ElementGetCurrentElement () const
 
const G4IsotopeGetCurrentIsotope () const
 
G4bool IsLocked () const
 
void SetLocked (G4bool)
 
G4VEmModeloperator= (const G4VEmModel &right)=delete
 
 G4VEmModel (const G4VEmModel &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from G4VEmModel
G4ParticleChangeForLossGetParticleChangeForLoss ()
 
G4ParticleChangeForGammaGetParticleChangeForGamma ()
 
virtual G4double MaxSecondaryEnergy (const G4ParticleDefinition *, G4double kineticEnergy)
 
const G4MaterialCutsCoupleCurrentCouple () const
 
void SetCurrentElement (const G4Element *)
 
- Protected Attributes inherited from G4VEmModel
G4ElementDatafElementData
 
G4VParticleChangepParticleChange
 
G4PhysicsTablexSectionTable
 
const G4MaterialpBaseMaterial
 
const std::vector< G4double > * theDensityFactor
 
const std::vector< G4int > * theDensityIdx
 
size_t idxTable
 
G4bool lossFlucFlag
 
G4double inveplus
 
G4double pFactor
 

Detailed Description

Definition at line 63 of file G4eeToHadronsMultiModel.hh.

Constructor & Destructor Documentation

◆ G4eeToHadronsMultiModel()

G4eeToHadronsMultiModel::G4eeToHadronsMultiModel ( G4int  ver = 0,
const G4String nam = "eeToHadrons" 
)
explicit

Definition at line 65 of file G4eeToHadronsMultiModel.cc.

66 : G4VEmModel(mname),
67 csFactor(1.0),
68 nModels(0),
69 verbose(ver),
70 isInitialised(false)
71{
72 thKineticEnergy = DBL_MAX;
73 maxKineticEnergy = 4.521*GeV; //crresponding to 10TeV in lab
74 fParticleChange = nullptr;
75 cross = nullptr;
76 delta = 1.0*MeV; //for bin width
77}
#define DBL_MAX
Definition: templates.hh:62

◆ ~G4eeToHadronsMultiModel()

G4eeToHadronsMultiModel::~G4eeToHadronsMultiModel ( )
virtual

Definition at line 81 of file G4eeToHadronsMultiModel.cc.

82{
83 delete cross;
84}

Member Function Documentation

◆ ComputeCrossSectionPerAtom()

G4double G4eeToHadronsMultiModel::ComputeCrossSectionPerAtom ( const G4ParticleDefinition p,
G4double  kineticEnergy,
G4double  Z,
G4double  A,
G4double  cutEnergy = 0.0,
G4double  maxEnergy = DBL_MAX 
)
overridevirtual

Reimplemented from G4VEmModel.

Definition at line 162 of file G4eeToHadronsMultiModel.cc.

167{
168 return Z*ComputeCrossSectionPerElectron(p, kineticEnergy);
169}
G4double ComputeCrossSectionPerElectron(const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)

◆ ComputeCrossSectionPerElectron()

G4double G4eeToHadronsMultiModel::ComputeCrossSectionPerElectron ( const G4ParticleDefinition ,
G4double  kineticEnergy,
G4double  cutEnergy = 0.0,
G4double  maxEnergy = DBL_MAX 
)
inline

Definition at line 150 of file G4eeToHadronsMultiModel.hh.

154{
155 G4double res = 0.0;
156
157 G4double energy = LabToCM(kineticEnergy);
158
159 if (energy > thKineticEnergy) {
160 for(G4int i=0; i<nModels; i++) {
161 if(energy >= ekinMin[i] && energy <= ekinMax[i]){
162 res += (models[i])->ComputeCrossSectionPerElectron(0,energy);
163 }
164 cumSum[i] = res;
165 }
166 }
167 return res*csFactor;
168}
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
G4double energy(const ThreeVector &p, const G4double m)

Referenced by ComputeCrossSectionPerAtom(), ComputeCrossSectionPerElectron(), and CrossSectionPerVolume().

◆ CrossSectionPerVolume()

G4double G4eeToHadronsMultiModel::CrossSectionPerVolume ( const G4Material mat,
const G4ParticleDefinition p,
G4double  kineticEnergy,
G4double  cutEnergy,
G4double  maxEnergy 
)
overridevirtual

Reimplemented from G4VEmModel.

Definition at line 150 of file G4eeToHadronsMultiModel.cc.

155{
156 return mat->GetElectronDensity()*
157 ComputeCrossSectionPerElectron(p, kineticEnergy);
158}
G4double GetElectronDensity() const
Definition: G4Material.hh:215

◆ Initialise()

void G4eeToHadronsMultiModel::Initialise ( const G4ParticleDefinition ,
const G4DataVector cuts 
)
overridevirtual

Implements G4VEmModel.

Definition at line 88 of file G4eeToHadronsMultiModel.cc.

90{
91 if(!isInitialised) {
92 isInitialised = true;
93
94 //G4cout<<"###Initialise in HadronMultiModel###"<<G4endl;
95
96 cross = new G4eeCrossSections();
97
98 G4eeToTwoPiModel* m2pi =
99 new G4eeToTwoPiModel(cross,maxKineticEnergy,delta);
100 AddEEModel(m2pi,cuts);
101
102 G4eeTo3PiModel* m3pi =
103 new G4eeTo3PiModel(cross,maxKineticEnergy,delta);
104 AddEEModel(m3pi,cuts);
105
106 G4ee2KChargedModel* m2kc =
107 new G4ee2KChargedModel(cross,maxKineticEnergy,delta);
108 AddEEModel(m2kc,cuts);
109
110 G4ee2KNeutralModel* m2kn =
111 new G4ee2KNeutralModel(cross,maxKineticEnergy,delta);
112 AddEEModel(m2kn,cuts);
113
114 G4eeToPGammaModel* mpg1 =
115 new G4eeToPGammaModel(cross,"pi0",maxKineticEnergy,delta);
116 AddEEModel(mpg1,cuts);
117
118 G4eeToPGammaModel* mpg2 =
119 new G4eeToPGammaModel(cross,"eta",maxKineticEnergy,delta);
120 AddEEModel(mpg2,cuts);
121
122 nModels = models.size();
123
124 fParticleChange = GetParticleChangeForGamma();
125 }
126}
G4ParticleChangeForGamma * GetParticleChangeForGamma()
Definition: G4VEmModel.cc:133

◆ ModelDescription()

void G4eeToHadronsMultiModel::ModelDescription ( std::ostream &  outFile) const
overridevirtual

Reimplemented from G4VEmModel.

Definition at line 198 of file G4eeToHadronsMultiModel.cc.

199{
200 if(verbose > 0) {
201 G4double e1 = 0.5*thKineticEnergy*thKineticEnergy/electron_mass_c2
202 - 2.0*electron_mass_c2;
203 G4double e2 = 0.5*maxKineticEnergy*maxKineticEnergy/electron_mass_c2
204 - 2.0*electron_mass_c2;
205 outFile << " e+ annihilation into hadrons active from "
206 << e1/GeV << " GeV to " << e2/GeV << " GeV" << G4endl;
207 }
208}
#define G4endl
Definition: G4ios.hh:57

Referenced by G4eeToHadrons::StreamProcessInfo().

◆ SampleSecondaries()

void G4eeToHadronsMultiModel::SampleSecondaries ( std::vector< G4DynamicParticle * > *  newp,
const G4MaterialCutsCouple couple,
const G4DynamicParticle dp,
G4double  tmin = 0.0,
G4double  maxEnergy = DBL_MAX 
)
overridevirtual

Implements G4VEmModel.

Definition at line 174 of file G4eeToHadronsMultiModel.cc.

179{
180 G4double kinEnergy = dp->GetKineticEnergy();
181 G4double energy = LabToCM(kinEnergy);
182 if (energy > thKineticEnergy) {
183 G4double q = cumSum[nModels-1]*G4UniformRand();
184 for(G4int i=0; i<nModels; i++) {
185 if(q <= cumSum[i]) {
186 (models[i])->SampleSecondaries(newp, couple,dp);
187 if(newp->size() > 0) {
188 fParticleChange->ProposeTrackStatus(fStopAndKill);
189 }
190 break;
191 }
192 }
193 }
194}
@ fStopAndKill
#define G4UniformRand()
Definition: Randomize.hh:52
G4double GetKineticEnergy() const
void ProposeTrackStatus(G4TrackStatus status)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin=0.0, G4double maxEnergy=DBL_MAX) override

Referenced by SampleSecondaries().

◆ SetCrossSecFactor()

void G4eeToHadronsMultiModel::SetCrossSecFactor ( G4double  fac)

Definition at line 212 of file G4eeToHadronsMultiModel.cc.

213{
214 if(fac > 1.0) {
215 csFactor = fac;
216 if(verbose > 0) {
217 G4cout << "### G4eeToHadronsMultiModel: The cross section for "
218 << "G4eeToHadronsMultiModel is increased by "
219 << csFactor << " times" << G4endl;
220 }
221 }
222}
G4GLOB_DLL std::ostream G4cout

Referenced by G4eeToHadrons::InitialiseProcess(), and G4eeToHadrons::SetCrossSecFactor().


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