Geant4 11.1.1
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")
 
 ~G4eeToHadronsMultiModel () override
 
void Initialise (const G4ParticleDefinition *, const G4DataVector &) override
 
G4double CrossSectionPerVolume (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy) override
 
G4double ComputeCrossSectionPerAtom (const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX) override
 
void SampleSecondaries (std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin=0.0, G4double maxEnergy=DBL_MAX) override
 
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)
 
G4eeToHadronsMultiModeloperator= (const G4eeToHadronsMultiModel &right)=delete
 
 G4eeToHadronsMultiModel (const G4eeToHadronsMultiModel &)=delete
 
- 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 *, const G4double &length, G4double &eloss)
 
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 FillNumberOfSecondaries (G4int &numberOfTriplets, G4int &numberOfRecoil)
 
virtual void ModelDescription (std::ostream &outFile) const
 
void InitialiseElementSelectors (const G4ParticleDefinition *, const G4DataVector &)
 
std::vector< G4EmElementSelector * > * GetElementSelectors ()
 
void SetElementSelectors (std::vector< G4EmElementSelector * > *)
 
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)
 
const G4ElementGetCurrentElement (const G4Material *mat=nullptr) const
 
G4int SelectRandomAtomNumber (const G4Material *) const
 
const G4IsotopeGetCurrentIsotope (const G4Element *elm=nullptr) const
 
G4int SelectIsotopeNumber (const G4Element *) const
 
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 *)
 
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 = nullptr
 
G4VParticleChangepParticleChange = nullptr
 
G4PhysicsTablexSectionTable = nullptr
 
const G4MaterialpBaseMaterial = nullptr
 
const std::vector< G4double > * theDensityFactor = nullptr
 
const std::vector< G4int > * theDensityIdx = nullptr
 
G4double inveplus
 
G4double pFactor = 1.0
 
size_t currentCoupleIndex = 0
 
size_t basedCoupleIndex = 0
 
G4bool lossFlucFlag = true
 

Detailed Description

Definition at line 63 of file G4eeToHadronsMultiModel.hh.

Constructor & Destructor Documentation

◆ G4eeToHadronsMultiModel() [1/2]

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

Definition at line 65 of file G4eeToHadronsMultiModel.cc.

66 : G4VEmModel(mname), verbose(ver)
67{
68 maxKineticEnergy = 4.521*CLHEP::GeV; //crresponding to 10TeV in lab
69 delta = 1.0*CLHEP::MeV; //for bin width
70}

◆ ~G4eeToHadronsMultiModel()

G4eeToHadronsMultiModel::~G4eeToHadronsMultiModel ( )
override

Definition at line 74 of file G4eeToHadronsMultiModel.cc.

75{
76 delete cross;
77}

◆ G4eeToHadronsMultiModel() [2/2]

G4eeToHadronsMultiModel::G4eeToHadronsMultiModel ( const G4eeToHadronsMultiModel )
delete

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 153 of file G4eeToHadronsMultiModel.cc.

158{
159 return Z*ComputeCrossSectionPerElectron(p, kineticEnergy);
160}
const G4int Z[17]
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 
)

Definition at line 164 of file G4eeToHadronsMultiModel.cc.

167{
168 G4double res = 0.0;
169
170 G4double energy = LabToCM(kineticEnergy);
171
172 if (energy > thKineticEnergy) {
173 for(G4int i=0; i<nModels; i++) {
174 if(energy >= ekinMin[i] && energy <= ekinMax[i]){
175 res += (models[i])->ComputeCrossSectionPerElectron(0,energy);
176 }
177 cumSum[i] = res;
178 }
179 }
180 return res*csFactor;
181}
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 141 of file G4eeToHadronsMultiModel.cc.

146{
147 return mat->GetElectronDensity()*
148 ComputeCrossSectionPerElectron(p, kineticEnergy);
149}
G4double GetElectronDensity() const
Definition: G4Material.hh:212

◆ Initialise()

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

Implements G4VEmModel.

Definition at line 81 of file G4eeToHadronsMultiModel.cc.

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

◆ ModelDescription()

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

Reimplemented from G4VEmModel.

Definition at line 209 of file G4eeToHadronsMultiModel.cc.

210{
211 if(verbose > 0) {
212 G4double e1 = 0.5*thKineticEnergy*thKineticEnergy/electron_mass_c2
213 - 2.0*electron_mass_c2;
214 G4double e2 = 0.5*maxKineticEnergy*maxKineticEnergy/electron_mass_c2
215 - 2.0*electron_mass_c2;
216 outFile << " e+ annihilation into hadrons active from "
217 << e1/GeV << " GeV to " << e2/GeV << " GeV" << G4endl;
218 }
219}
#define G4endl
Definition: G4ios.hh:57

Referenced by G4eeToHadrons::StreamProcessInfo().

◆ operator=()

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

◆ 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 185 of file G4eeToHadronsMultiModel.cc.

190{
191 G4double kinEnergy = dp->GetKineticEnergy();
192 G4double energy = LabToCM(kinEnergy);
193 if (energy > thKineticEnergy) {
194 G4double q = cumSum[nModels-1]*G4UniformRand();
195 for(G4int i=0; i<nModels; ++i) {
196 if(q <= cumSum[i]) {
197 (models[i])->SampleSecondaries(newp, couple,dp);
198 if(newp->size() > 0) {
199 fParticleChange->ProposeTrackStatus(fStopAndKill);
200 }
201 break;
202 }
203 }
204 }
205}
@ fStopAndKill
#define G4UniformRand()
Definition: Randomize.hh:52
G4double GetKineticEnergy() const
void ProposeTrackStatus(G4TrackStatus status)
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 223 of file G4eeToHadronsMultiModel.cc.

224{
225 if(fac > 1.0) {
226 csFactor = fac;
227 if(verbose > 0) {
228 G4cout << "### G4eeToHadronsMultiModel: The cross section for "
229 << "G4eeToHadronsMultiModel is increased by "
230 << csFactor << " times" << G4endl;
231 }
232 }
233}
G4GLOB_DLL std::ostream G4cout

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


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