63 if(targetMass<500*MeV)
71 theNeutron.
Lorentz(theNeutron, -1*theTarget);
77 if (
HasFSData() && !getenv (
"G4NEUTRONHP_USE_ONLY_PHOTONEVAPORATION" ) )
84 thePhotons = theMF6FinalState.
Sample( eKinetic );
87 thePhotons = theFinalStatePhotons.
GetPhotons(eKinetic);
98 G4FragmentVector::iterator it;
100 for(it=products->begin(); it!=products->end(); it++)
104 if ( (*it)->GetParticleDefinition() != 0 )
115 if ( (*it)->GetExcitationEnergy() > 1.0e-2*eV )
117 G4double ex = (*it)->GetExcitationEnergy();
120 aPhoton->
SetMomentum( (*it)->GetMomentum().vect().unit() * ex );
122 thePhotons->push_back(aPhoton);
125 theOne->
SetMomentum( (*it)->GetMomentum().vect() * ( (*it)->GetMomentum().t() - (*it)->GetExcitationEnergy() ) / (*it)->GetMomentum().t() ) ;
127 thePhotons->push_back(theOne);
138 if(thePhotons!=0) nPhotons=thePhotons->size();
154 G4ThreeVector direction( sinth*std::cos(phi), sinth*std::sin(phi), std::cos(theta) );
156 thePhotons->push_back(theOne);
162 if ( nPhotons == 1 && thePhotons->operator[](0)->GetDefinition()->GetBaryonNumber() == 0 )
167 thePhotons->operator[](0)->SetMomentum( Q*direction );
172 for(i=0; i<nPhotons; i++)
174 thePhotons->operator[](i)->Lorentz(*(thePhotons->operator[](i)), theTarget);
179 if ( nPhotons == 1 && thePhotons->operator[](0)->GetDefinition()->GetBaryonNumber() == 0 )
189 -thePhotons->operator[](0)->GetMomentum();
196 G4double theAbsMom = std::sqrt(theResE*theResE - theResMass*theResMass);
203 for(i=0; i<nPhotons; i++)
207 theOne->
SetDefinition(thePhotons->operator[](i)->GetDefinition());
208 theOne->
SetMomentum(thePhotons->operator[](i)->GetMomentum());
210 delete thePhotons->operator[](i);
223 if ( residual ==
false )
241 if ( nPhotons - nNonZero > 0 )
244 std::vector<G4double> vRand;
245 vRand.push_back( 0.0 );
246 for (
G4int j = 0 ; j != nPhotons - nNonZero - 1 ; j++ )
250 vRand.push_back( 1.0 );
251 std::sort( vRand.begin(), vRand.end() );
253 std::vector<G4double> vEPhoton;
254 for (
G4int j = 0 ; j < (
G4int)vRand.size() - 1 ; j++ )
256 vEPhoton.push_back( deltaE * ( vRand[j+1] - vRand[j] ) );
258 std::sort( vEPhoton.begin(), vEPhoton.end() );
260 for (
G4int j = 0 ; j < nPhotons - nNonZero - 1 ; j++ )
267 G4ThreeVector tempVector(en*sinth*std::cos(phi), en*sinth*std::sin(phi), en*std::cos(theta) );
307 std::stringstream ss;
308 ss << static_cast<G4int>(Z);
312 ss << static_cast<G4int>(A);
327 G4String filenameMF6 = dirName+
"/FSMF6/"+sZ+
"_"+sA+sM+
"_"+element_name;
328 std::ifstream dummyIFS(filenameMF6, std::ios::in);
329 if ( dummyIFS.good() ==
true ) hasExactMF6=
true;
347 if ( hasExactMF6 ==
true )
349 std::ifstream theData(filenameMF6, std::ios::in);
350 theMF6FinalState.
Init(theData);
365 if(!dbool || ( Z<2.5 && ( std::abs(
theBaseZ - Z)>0.0001 || std::abs(
theBaseA - A)>0.0001)))
372 std::ifstream theData(filename, std::ios::in);
std::vector< G4Fragment * > G4FragmentVector
CLHEP::HepLorentzVector G4LorentzVector
std::vector< G4ReactionProduct * > G4ReactionProductVector
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
G4ParticleDefinition * GetDefinition() const
G4LorentzVector Get4Momentum() const
void SetMomentum(const G4ThreeVector &momentum)
void SetStatusChange(G4HadFinalStateStatus aS)
G4int GetNumberOfSecondaries() const
void AddSecondary(G4DynamicParticle *aP)
G4HadSecondary * GetSecondary(size_t i)
const G4Material * GetMaterial() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4DynamicParticle * GetParticle()
G4double GetTemperature() const
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType)
G4HadFinalState * ApplyYourself(const G4HadProjectile &theTrack)
void SetNeutron(G4ReactionProduct &aNeutron)
void Init(std::ifstream &aDataFile)
void SetTarget(G4ReactionProduct &aTarget)
G4ReactionProductVector * Sample(G4double anEnergy)
G4HadFinalState theResult
void SetAZMs(G4double anA, G4double aZ, G4int aM, G4NeutronHPDataUsed used)
G4NeutronHPDataUsed GetName(G4int A, G4int Z, G4String base, G4String rest, G4bool &active)
G4bool InitMean(std::ifstream &aDataFile)
void InitEnergies(std::ifstream &aDataFile)
G4ReactionProductVector * GetPhotons(G4double anEnergy)
void InitAngular(std::ifstream &aDataFile)
static G4Neutron * Neutron()
static G4double GetNuclearMass(const G4double A, const G4double Z)
G4ReactionProduct GetBiasedThermalNucleus(G4double aMass, G4ThreeVector aVelocity, G4double temp=-1) const
G4double GetPDGMass() const
G4ParticleDefinition * FindIon(G4int atomicNumber, G4int atomicMass, G4double excitationEnergy)
static G4ParticleTable * GetParticleTable()
virtual G4FragmentVector * BreakItUp(const G4Fragment &nucleus)
void SetMomentum(const G4double x, const G4double y, const G4double z)
G4double GetKineticEnergy() const
G4double GetTotalEnergy() const
G4ThreeVector GetMomentum() const
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
void SetKineticEnergy(const G4double en)
void SetDefinition(G4ParticleDefinition *aParticleDefinition)