58 fme = electron_mass_c2;
60 fMv2 = 0.7056*GeV*GeV;
71 fMaxEnergy = 10000.*GeV;
89 fEnergyVector =
nullptr;
95 fAngleTable =
nullptr;
103 outFile <<
"G4NeutronElectronElModel is a neutrino-electron (neutral current) elastic scattering\n"
104 <<
"model which uses the standard model \n"
105 <<
"transfer parameterization. The model is fully relativistic\n";
115 return (pName ==
"neutron" && energy >= fMinEnergy && energy <= fMaxEnergy);
122 G4double result = 0., sum, Tkin, dt, t1, t2;
123 G4int iTkin, jTransfer;
128 for( iTkin = 0; iTkin < fEnergyBin; iTkin++)
138 for( jTransfer = 0; jTransfer < fAngleBin; jTransfer++)
147 vectorT->
PutValue(jTransfer, t1, sum);
150 fAngleTable->insertAt(iTkin,vectorT);
162 G4int iTkin, iTransfer;
164 for( iTkin = 0; iTkin < fEnergyBin; iTkin++)
166 if( Tkin < fEnergyVector->Energy(iTkin) )
break;
168 if ( iTkin >= fEnergyBin ) iTkin = fEnergyBin-1;
169 if ( iTkin < 0 ) iTkin = 0;
175 for( iTransfer = 0; iTransfer < fAngleBin; iTransfer++)
177 if(
position <= (*(*fAngleTable)(iTkin))(iTransfer) )
break;
179 if (iTransfer >= fAngleBin-1) iTransfer = fAngleBin-1;
198 if( iTransfer == 0 || iTransfer == fAngleBin-1 )
200 randTransfer = (*fAngleTable)(iTkin)->Energy(iTransfer);
204 if ( iTransfer >=
G4int((*fAngleTable)(iTkin)->GetVectorLength()) )
206 iTransfer =
G4int((*fAngleTable)(iTkin)->GetVectorLength() - 1);
208 y1 = (*(*fAngleTable)(iTkin))(iTransfer-1);
209 y2 = (*(*fAngleTable)(iTkin))(iTransfer);
211 x1 = (*fAngleTable)(iTkin)->Energy(iTransfer-1);
212 x2 = (*fAngleTable)(iTkin)->Energy(iTransfer);
217 if ( x1 == x2 ) randTransfer = x2;
226 randTransfer = x1 + (
position - y1 )*( x2 - x1 )/delta;
241 G4double result = 1., q2, znq2, znf, znf2, znf4;
243 znq2 = 1. + 2.*fee*x/fM;
251 result /= ( x + fAm )*znq2*znq2*znf4;
253 result *= ( 1 - x )/( 1 + q2/4./fM2 ) + 2.*x;
286 eTkin /= 1.+2.*fee*sin2ht/fM;
292 if( eTkin > fCutEnergy )
294 G4double ePlab = sqrt( eTkin*(eTkin + 2.*fme) );
300 if( cost > 1. ) cost = 1.;
301 if( cost < -1. ) cost = -1.;
303 G4double sint = std::sqrt( (1.0 - cost)*(1.0 + cost) );
306 G4ThreeVector eP( sint*std::cos(phi), sint*std::sin(phi), cost );
330 else if( eTkin > 0.0 )
G4double epsilon(G4double density, G4double temperature)
Hep3Vector boostVector() const
HepLorentzVector & boost(double, double, double)
static G4Electron * Electron()
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
void SetEnergyChange(G4double anEnergy)
void SetMomentumChange(const G4ThreeVector &aV)
void SetLocalEnergyDeposit(G4double aE)
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4double GetTotalEnergy() const
G4double LowestEnergyLimit() const
void SetLowestEnergyLimit(G4double value)
G4HadFinalState theParticleChange
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
virtual void ModelDescription(std::ostream &) const
G4double SampleSin2HalfTheta(G4double Tkin)
G4double CalculateAm(G4double momentum)
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
G4NeutronElectronElModel(const G4String &name="n-e-elastic")
virtual ~G4NeutronElectronElModel()
G4double XscIntegrand(G4double x)
virtual G4bool IsApplicable(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
G4double GetTransfer(G4int iTkin, G4int iTransfer, G4double position)
G4double GetPDGMass() const
const G4String & GetParticleName() const
void PutValue(const std::size_t index, const G4double e, const G4double value)
static G4int GetModelID(const G4int modelIndex)
G4double GetLowEdgeEnergy(const std::size_t index) const