84 std::pair<G4double,G4double> ratios;
90 G4cout <<
"G4QuasiElasticChannel::ratios " << ratios.first <<
" x " <<ratios.second
91 <<
" = " << ratios.first*ratios.second <<
G4endl;
94 return ratios.first*ratios.second;
110 }
while (index < 0 || index >= static_cast<G4int>(nucleons.size()));
128 G4cout<<
"G4QElChan::Scatter: neutron - proton? A ="<<A<<
", Z="<<Z<<
", projName="
133 G4double residualNucleusEnergy=std::sqrt(
sqr(residualNucleusMass) +
135 pNucleon.
setE(targetNucleusMass-residualNucleusEnergy);
138 std::pair<G4LorentzVector,G4LorentzVector>
result;
144 if (result.first.e() > 0.)
145 scatteredHadron4Mom=result.second;
156 - result.first - result.second;
158 || (std::abs(EpConservation.
e()) > 0.1 *
MeV ) )
160 G4cout <<
"Warning - G4QuasiElasticChannel::Scatter E-p non conservation : "
161 << EpConservation <<
G4endl;
168 ktv->push_back(sPrim);
169 if (result.first.e() > 0.)
172 ktv->push_back(sNuc);
178 ktv->push_back(rNuc);
182 residualNucleus4Mom/=resA;
187 ktv->push_back(rNuc);
191 G4cout<<
"G4QElC::Scat: Nucleon: "<<result.first <<
" mass "<<result.first.mag() <<
G4endl;
192 G4cout<<
"G4QElC::Scat: Project: "<<result.second<<
" mass "<<result.second.mag()<<
G4endl;
G4QuasiElRatios * theQuasiElastic
CLHEP::Hep3Vector G4ThreeVector
static G4ParticleTable * GetParticleTable()
static constexpr double MeV
virtual const std::vector< G4Nucleon > & GetNucleons()=0
G4KineticTrackVector * Scatter(G4Nucleus &theNucleus, const G4DynamicParticle &thePrimary)
const G4String & GetParticleName() const
G4IonTable * GetIonTable() const
G4double GetPDGCharge() const
G4double GetPDGMass() const
G4ParticleDefinition * GetDefinition() const
virtual void Init(G4int theA, G4int theZ)=0
virtual G4double GetMass()=0
G4LorentzVector Get4Momentum() const
double A(double temperature)
G4double GetFraction(G4Nucleus &theNucleus, const G4DynamicParticle &thePrimary)
G4double G4ParticleHPJENDLHEData::G4double result
G4V3DNucleus * the3DNucleus
std::pair< G4double, G4double > GetRatios(G4double pIU, G4int prPDG, G4int tgZ, G4int tgN)
static G4Neutron * Neutron()
G4int GetPDGEncoding() const
G4GLOB_DLL std::ostream G4cout
std::pair< G4LorentzVector, G4LorentzVector > Scatter(G4int NPDG, G4LorentzVector N4M, G4int pPDG, G4LorentzVector p4M)
G4double GetTotalMomentum() const
CLHEP::HepLorentzVector G4LorentzVector
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)