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

#include <G4MuonVDNuclearModel.hh>

+ Inheritance diagram for G4MuonVDNuclearModel:

Public Member Functions

 G4MuonVDNuclearModel ()
 
virtual ~G4MuonVDNuclearModel ()
 
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
 
virtual void ModelDescription (std::ostream &outFile) const
 
- Public Member Functions inherited from G4HadronicInteraction
 G4HadronicInteraction (const G4String &modelName="HadronicModel")
 
virtual ~G4HadronicInteraction ()
 
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
 
virtual G4double SampleInvariantT (const G4ParticleDefinition *p, G4double plab, G4int Z, G4int A)
 
virtual G4bool IsApplicable (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
 
G4double GetMinEnergy () const
 
G4double GetMinEnergy (const G4Material *aMaterial, const G4Element *anElement) const
 
void SetMinEnergy (G4double anEnergy)
 
void SetMinEnergy (G4double anEnergy, const G4Element *anElement)
 
void SetMinEnergy (G4double anEnergy, const G4Material *aMaterial)
 
G4double GetMaxEnergy () const
 
G4double GetMaxEnergy (const G4Material *aMaterial, const G4Element *anElement) const
 
void SetMaxEnergy (const G4double anEnergy)
 
void SetMaxEnergy (G4double anEnergy, const G4Element *anElement)
 
void SetMaxEnergy (G4double anEnergy, const G4Material *aMaterial)
 
G4int GetVerboseLevel () const
 
void SetVerboseLevel (G4int value)
 
const G4StringGetModelName () const
 
void DeActivateFor (const G4Material *aMaterial)
 
void ActivateFor (const G4Material *aMaterial)
 
void DeActivateFor (const G4Element *anElement)
 
void ActivateFor (const G4Element *anElement)
 
G4bool IsBlocked (const G4Material *aMaterial) const
 
G4bool IsBlocked (const G4Element *anElement) const
 
void SetRecoilEnergyThreshold (G4double val)
 
G4double GetRecoilEnergyThreshold () const
 
virtual const std::pair< G4double, G4doubleGetFatalEnergyCheckLevels () const
 
virtual std::pair< G4double, G4doubleGetEnergyMomentumCheckLevels () const
 
void SetEnergyMomentumCheckLevels (G4double relativeLevel, G4double absoluteLevel)
 
virtual void ModelDescription (std::ostream &outFile) const
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
virtual void InitialiseModel ()
 
 G4HadronicInteraction (const G4HadronicInteraction &right)=delete
 
const G4HadronicInteractionoperator= (const G4HadronicInteraction &right)=delete
 
G4bool operator== (const G4HadronicInteraction &right) const =delete
 
G4bool operator!= (const G4HadronicInteraction &right) const =delete
 

Additional Inherited Members

- Protected Member Functions inherited from G4HadronicInteraction
void SetModelName (const G4String &nam)
 
G4bool IsBlocked () const
 
void Block ()
 
- Protected Attributes inherited from G4HadronicInteraction
G4HadFinalState theParticleChange
 
G4int verboseLevel
 
G4double theMinEnergy
 
G4double theMaxEnergy
 
G4bool isBlocked
 

Detailed Description

Definition at line 49 of file G4MuonVDNuclearModel.hh.

Constructor & Destructor Documentation

◆ G4MuonVDNuclearModel()

G4MuonVDNuclearModel::G4MuonVDNuclearModel ( )
explicit

Definition at line 71 of file G4MuonVDNuclearModel.cc.

72 : G4HadronicInteraction("G4MuonVDNuclearModel"),isMaster(false)
73{
75 GetCrossSectionDataSet(G4KokoulinMuonNuclearXS::Default_Name());
76
77 SetMinEnergy(0.0);
78 SetMaxEnergy(1*CLHEP::PeV);
79 CutFixed = 0.2*CLHEP::GeV;
80
81 if(!fElementData && G4Threading::IsMasterThread()) {
82 fElementData = new G4ElementData();
83 MakeSamplingTable();
84 isMaster = true;
85 }
86
87 // reuse existing pre-compound model
88 G4GeneratorPrecompoundInterface* precoInterface
92 G4VPreCompoundModel* pre = static_cast<G4VPreCompoundModel*>(p);
93 if(!pre) { pre = new G4PreCompoundModel(); }
94 precoInterface->SetDeExcitation(pre);
95
96 // Build FTFP model
97 ftfp = new G4TheoFSGenerator();
98 ftfp->SetTransport(precoInterface);
99 theFragmentation = new G4LundStringFragmentation();
100 theStringDecay = new G4ExcitedStringDecay(theFragmentation);
101 G4FTFModel* theStringModel = new G4FTFModel;
102 theStringModel->SetFragmentationModel(theStringDecay);
103 ftfp->SetHighEnergyGenerator(theStringModel);
104
105 // Build Bertini cascade
106 bert = new G4CascadeInterface();
107}
static G4CrossSectionDataSetRegistry * Instance()
G4HadronicInteraction * FindModel(const G4String &name)
static G4HadronicInteractionRegistry * Instance()
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static const char * Default_Name()
void SetTransport(G4VIntraNuclearTransportModel *const value)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
void SetDeExcitation(G4VPreCompoundModel *ptr)
void SetFragmentationModel(G4VStringFragmentation *aModel)
G4bool IsMasterThread()
Definition: G4Threading.cc:124

◆ ~G4MuonVDNuclearModel()

G4MuonVDNuclearModel::~G4MuonVDNuclearModel ( )
virtual

Definition at line 109 of file G4MuonVDNuclearModel.cc.

110{
111 delete theFragmentation;
112 delete theStringDecay;
113
114 if(isMaster) {
115 delete fElementData;
116 fElementData = nullptr;
117 }
118}

Member Function Documentation

◆ ApplyYourself()

G4HadFinalState * G4MuonVDNuclearModel::ApplyYourself ( const G4HadProjectile aTrack,
G4Nucleus targetNucleus 
)
virtual

Reimplemented from G4HadronicInteraction.

Definition at line 121 of file G4MuonVDNuclearModel.cc.

123{
125
126 // For very low energy, return initial track
127 G4double epmax = aTrack.GetTotalEnergy() - 0.5*proton_mass_c2;
128 if (epmax <= CutFixed) {
132 return &theParticleChange;
133 }
134
135 // Produce recoil muon and transferred photon
136 G4DynamicParticle* transferredPhoton = CalculateEMVertex(aTrack, targetNucleus);
137
138 // Interact the gamma with the nucleus
139 CalculateHadronicVertex(transferredPhoton, targetNucleus);
140 return &theParticleChange;
141}
@ isAlive
double G4double
Definition: G4Types.hh:83
Hep3Vector unit() const
Hep3Vector vect() const
void SetStatusChange(G4HadFinalStateStatus aS)
void SetEnergyChange(G4double anEnergy)
void SetMomentumChange(const G4ThreeVector &aV)
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4double GetTotalEnergy() const

◆ ModelDescription()

void G4MuonVDNuclearModel::ModelDescription ( std::ostream &  outFile) const
virtual

Reimplemented from G4HadronicInteraction.

Definition at line 388 of file G4MuonVDNuclearModel.cc.

389{
390 outFile << "G4MuonVDNuclearModel handles the inelastic scattering\n"
391 << "of mu- and mu+ from nuclei using the equivalent photon\n"
392 << "approximation in which the incoming lepton generates a\n"
393 << "virtual photon at the electromagnetic vertex, and the\n"
394 << "virtual photon is converted to a real photon. At low\n"
395 << "energies, the photon interacts directly with the nucleus\n"
396 << "using the Bertini cascade. At high energies the photon\n"
397 << "is converted to a pi0 which interacts using the FTFP\n"
398 << "model. The muon-nuclear cross sections of R. Kokoulin \n"
399 << "are used to generate the virtual photon spectrum\n";
400}

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