57const G4int G4MuonVDNuclearModel::zdat[] = {1, 4, 13, 29, 92};
58const G4double G4MuonVDNuclearModel::adat[] = {1.01,9.01,26.98,63.55,238.03};
59const G4double G4MuonVDNuclearModel::tdat[] = {
60 1.e3,2.e3,3.e3,4.e3,5.e3,6.e3,7.e3,8.e3,9.e3,
61 1.e4,2.e4,3.e4,4.e4,5.e4,6.e4,7.e4,8.e4,9.e4,
62 1.e5,2.e5,3.e5,4.e5,5.e5,6.e5,7.e5,8.e5,9.e5,
63 1.e6,2.e6,3.e6,4.e6,5.e6,6.e6,7.e6,8.e6,9.e6,
64 1.e7,2.e7,3.e7,4.e7,5.e7,6.e7,7.e7,8.e7,9.e7,
65 1.e8,2.e8,3.e8,4.e8,5.e8,6.e8,7.e8,8.e8,9.e8,
66 1.e9,2.e9,3.e9,4.e9,5.e9,6.e9,7.e9,8.e9,9.e9,
67 1.e10,2.e10,3.e10,4.e10,5.e10,6.e10,7.e10,8.e10,9.e10,1.e11};
79 CutFixed = 0.2*CLHEP::GeV;
111 delete theFragmentation;
112 delete theStringDecay;
116 fElementData =
nullptr;
128 if (epmax <= CutFixed) {
139 CalculateHadronicVertex(transferredPhoton, targetNucleus);
155 G4double epmax = TotalEnergy - 0.5*proton_mass_c2;
163 for (
G4int iz = 0; iz < nzdat; ++iz) {
164 del = std::abs(lnZ - g4calc->
logZ(zdat[iz]));
172 for (
G4int it = 0; it < ntdat; ++it) {
173 del = std::abs(
G4Log(KineticEnergy)-
G4Log(tdat[it]) );
187 for(iy = 0; iy<NBIN; ++iy) {
190 if(pvv >= r) {
break; }
203 G4double tmin = Mass*Mass*yy*yy/(1.-yy);
204 G4double tmax = 2.*proton_mass_c2*ep;
217 G4double w3 = tmax*(tmin+t1)/(tmin*w2);
232 eda <<
" While count exceeded " <<
G4endl;
238 rej = (1.-t/tmax)*(y1*(1.-tmin/t)+y2)/(y3*(1.-t/t2));
243 0.5*(t-tmin)/(2.*(TotalEnergy*(TotalEnergy-ep)-Mass*Mass)-tmin);
244 G4double theta = std::acos(1. - 2.*sinth2);
248 G4double dirx = sinth*std::cos(phi);
249 G4double diry = sinth*std::sin(phi);
253 finalDirection.rotateUz(ParticleDirection);
256 G4double finalMomentum = std::sqrt(NewKinEnergy*(NewKinEnergy+2.*Mass) );
258 G4double initMomentum = std::sqrt(KineticEnergy*(TotalEnergy+Mass) );
266 G4LorentzVector primaryMomentum(initMomentum*ParticleDirection, TotalEnergy);
283 if (gammaE < 10*GeV) {
290 G4double piMom = std::sqrt(piKE*(piKE + 2*piMass) );
305void G4MuonVDNuclearModel::MakeSamplingTable()
325 for (
G4int iz = 0; iz < nzdat; ++iz) {
326 AtomicNumber = zdat[iz];
327 AtomicWeight = adat[iz]*(g/mole);
332 for (
G4int it = 0; it < ntdat; ++it) {
335 Maxep = TotalEnergy - 0.5*proton_mass_c2;
341 c =
G4Log(Maxep/CutFixed);
344 dy = (ymax-ymin)/NBIN;
350 for (
G4int i = 0; i < NBIN; ++i) {
356 ep = CutFixed*
G4Exp(c*x);
364 pv->PutValue(nbin, it, CrossSection);
370 if (CrossSection > 0.0) {
371 for (
G4int ib = 0; ib <= nbin; ++ib) {
372 pvv = pv->GetValue(ib, it);
373 pvv = pvv/CrossSection;
374 pv->PutValue(ib, it, pvv);
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";
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4double G4Log(G4double x)
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &theNucleus)
static G4CrossSectionDataSetRegistry * Instance()
const G4ThreeVector & GetMomentumDirection() const
G4double GetTotalEnergy() const
void InitialiseForElement(G4int Z, G4PhysicsVector *v)
G4Physics2DVector * GetElement2DData(G4int Z)
void SetStatusChange(G4HadFinalStateStatus aS)
void AddSecondaries(const std::vector< G4HadSecondary > &addSecs)
void SetEnergyChange(G4double anEnergy)
void SetMomentumChange(const G4ThreeVector &aV)
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4double GetTotalEnergy() const
G4HadronicInteraction * FindModel(const G4String &name)
static G4HadronicInteractionRegistry * Instance()
G4HadFinalState theParticleChange
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static const char * Default_Name()
G4double ComputeDDMicroscopicCrossSection(G4double incidentKE, G4double Z, G4double A, G4double epsilon)
static G4MuonMinus * MuonMinus()
virtual void ModelDescription(std::ostream &outFile) const
virtual ~G4MuonVDNuclearModel()
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
G4double GetPDGMass() const
G4double GetValue(std::size_t idx, std::size_t idy) const
G4double GetX(std::size_t index) const
static G4PionZero * PionZero()
static G4Pow * GetInstance()
G4double logZ(G4int Z) const
void SetTransport(G4VIntraNuclearTransportModel *const value)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
G4HadFinalState * ApplyYourself(const G4HadProjectile &thePrimary, G4Nucleus &theNucleus) override
void SetDeExcitation(G4VPreCompoundModel *ptr)
void SetFragmentationModel(G4VStringFragmentation *aModel)