64 if(targetMass<500*
MeV)
72 theNeutron.
Lorentz(theNeutron, -1*theTarget);
78 if (
HasFSData() && !getenv (
"G4NEUTRONHP_USE_ONLY_PHOTONEVAPORATION" ) )
85 thePhotons = theMF6FinalState.
Sample( eKinetic );
88 thePhotons = theFinalStatePhotons.
GetPhotons(eKinetic);
99 G4FragmentVector::iterator it;
101 for(it=products->begin(); it!=products->end(); it++)
105 if ( (*it)->GetParticleDefinition() != 0 )
117 if ( (*it)->GetExcitationEnergy() > 1.0e-2*
eV )
119 G4double ex = (*it)->GetExcitationEnergy();
122 aPhoton->
SetMomentum( (*it)->GetMomentum().vect().unit() * ex );
124 thePhotons->push_back(aPhoton);
127 theOne->
SetMomentum( (*it)->GetMomentum().vect() * ( (*it)->GetMomentum().t() - (*it)->GetExcitationEnergy() ) / (*it)->GetMomentum().t() ) ;
129 thePhotons->push_back(theOne);
138 if(thePhotons!=0) nPhotons=thePhotons->size();
151 G4ThreeVector direction( sinth*std::cos(phi), sinth*std::sin(phi), std::cos(theta) );
153 thePhotons->push_back(theOne);
159 if ( nPhotons == 1 && thePhotons->operator[](0)->GetDefinition()->GetBaryonNumber() == 0 )
168 thePhotons->operator[](0)->SetMomentum( Q*direction );
174 for(i=0; i<nPhotons; i++)
176 thePhotons->operator[](i)->Lorentz(*(thePhotons->operator[](i)), theTarget);
181 if ( nPhotons == 1 && thePhotons->operator[](0)->GetDefinition()->GetBaryonNumber() == 0 )
193 -thePhotons->operator[](0)->GetMomentum();
200 G4double theAbsMom = std::sqrt(theResE*theResE - theResMass*theResMass);
207 for(i=0; i<nPhotons; i++)
211 theOne->
SetDefinition(thePhotons->operator[](i)->GetDefinition());
212 theOne->
SetMomentum(thePhotons->operator[](i)->GetMomentum());
214 delete thePhotons->operator[](i);
229 if ( residual ==
false )
247 if ( nPhotons - nNonZero > 0 )
250 std::vector<G4double> vRand;
251 vRand.push_back( 0.0 );
252 for (
G4int j = 0 ; j != nPhotons - nNonZero - 1 ; j++ )
256 vRand.push_back( 1.0 );
259 std::vector<G4double> vEPhoton;
260 for (
G4int j = 0 ; j < (
G4int)vRand.size() - 1 ; j++ )
262 vEPhoton.push_back( deltaE * ( vRand[j+1] - vRand[j] ) );
264 std::sort( vEPhoton.begin(), vEPhoton.end() );
266 for (
G4int j = 0 ; j < nPhotons - nNonZero - 1 ; j++ )
273 G4ThreeVector tempVector(en*sinth*std::cos(phi), en*sinth*std::sin(phi), en*std::cos(theta) );
278 theOne->SetMomentum( tempVector );
313 std::stringstream ss;
314 ss << static_cast<G4int>(
Z);
318 ss << static_cast<G4int>(A);
333 G4String filenameMF6 = dirName+
"/FSMF6/"+sZ+
"_"+sA+sM+
"_"+element_name;
341 if ( theData.good() == true ) {
343 theMF6FinalState.
Init(theData);
358 if(!dbool || ( Z<2.5 && ( std::abs(
theBaseZ - Z)>0.0001 || std::abs(
theBaseA - A)>0.0001)))
G4ReactionProductVector * GetPhotons(G4double anEnergy)
void SetTarget(G4ReactionProduct &aTarget)
static G4double GetNuclearMass(const G4double A, const G4double Z)
void SetMomentum(const G4ThreeVector &momentum)
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
G4HadSecondary * GetSecondary(size_t i)
G4HadFinalState * ApplyYourself(const G4HadProjectile &theTrack)
void SetKineticEnergy(const G4double en)
static G4NeutronHPManager * GetInstance()
void SetMomentum(const G4double x, const G4double y, const G4double z)
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
G4ParticleDefinition * GetDefinition() const
void GetDataStream(G4String, std::istringstream &iss)
G4NeutronHPDataUsed GetName(G4int A, G4int Z, G4String base, G4String rest, G4bool &active)
void SetStatusChange(G4HadFinalStateStatus aS)
std::vector< G4ReactionProduct * > G4ReactionProductVector
void InitAngular(std::istream &aDataFile)
G4ReactionProduct GetBiasedThermalNucleus(G4double aMass, G4ThreeVector aVelocity, G4double temp=-1) const
G4HadFinalState theResult
const G4ParticleDefinition * GetDefinition() const
G4double GetIonMass(G4int Z, G4int A, G4int L=0, G4int lvl=0) const
void SetNeutron(G4ReactionProduct &aNeutron)
G4double GetKineticEnergy() const
G4bool DoNotAdjustFinalState()
G4ErrorTarget * theTarget
void InitEnergies(std::istream &aDataFile)
std::vector< G4Fragment * > G4FragmentVector
static G4Neutron * Neutron()
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType)
const G4LorentzVector & Get4Momentum() const
G4LorentzVector Get4Momentum() const
static G4IonTable * GetIonTable()
G4double GetKineticEnergy() const
G4double GetTotalEnergy() const
G4bool InitMean(std::istream &aDataFile)
G4double GetPDGMass() const
G4DynamicParticle * GetParticle()
void SetDefinition(G4ParticleDefinition *aParticleDefinition)
G4ThreeVector GetMomentum() const
G4double GetTemperature() const
virtual G4FragmentVector * BreakItUp(const G4Fragment &nucleus)
const G4Material * GetMaterial() const
G4ReactionProductVector * Sample(G4double anEnergy)
void SetAZMs(G4double anA, G4double aZ, G4int aM, G4NeutronHPDataUsed used)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
G4int GetNumberOfSecondaries() const
void AddSecondary(G4DynamicParticle *aP)
void Init(std::istream &aDataFile)
CLHEP::HepLorentzVector G4LorentzVector