69 if(targetMass<500*
MeV)
78 theNeutron.
Lorentz(theNeutron, -1*theTarget);
90 thePhotons = theMF6FinalState.
Sample( eKinetic );
92 thePhotons = theFinalStatePhotons.
GetPhotons(eKinetic);
94 if ( thePhotons == NULL ) {
95 throw G4HadronicException(__FILE__, __LINE__,
"Final state data for photon is not properly allocated");
108 G4FragmentVector::iterator it;
110 for(it=products->begin(); it!=products->end(); it++)
114 if ( (*it)->GetParticleDefinition() != 0 )
125 if ( (*it)->GetExcitationEnergy() > 1.0e-2*
eV )
127 G4double ex = (*it)->GetExcitationEnergy();
130 aPhoton->
SetMomentum( (*it)->GetMomentum().vect().unit() * ex );
132 thePhotons->push_back(aPhoton);
135 theOne->
SetMomentum( (*it)->GetMomentum().vect() * ( (*it)->GetMomentum().t() - (*it)->GetExcitationEnergy() ) / (*it)->GetMomentum().t() ) ;
137 thePhotons->push_back(theOne);
146 nPhotons=thePhotons->size();
159 G4ThreeVector direction( sinth*std::cos(phi), sinth*std::sin(phi), std::cos(theta) );
161 thePhotons->push_back(theOne);
167 if ( nPhotons == 1 && thePhotons->operator[](0)->GetDefinition()->GetBaryonNumber() == 0 )
174 thePhotons->operator[](0)->SetMomentum( Q*direction );
180 for(i=0; i<nPhotons; i++)
182 thePhotons->operator[](i)->Lorentz(*(thePhotons->operator[](i)), theTarget);
187 if ( nPhotons == 1 && thePhotons->operator[](0)->GetDefinition()->GetBaryonNumber() == 0 )
197 -thePhotons->operator[](0)->GetMomentum();
214 for(i=0; i<nPhotons; i++)
218 theOne->
SetDefinition(thePhotons->operator[](i)->GetDefinition());
219 theOne->
SetMomentum(thePhotons->operator[](i)->GetMomentum());
221 delete thePhotons->operator[](i);
234 if ( residual ==
false )
250 if ( nPhotons - nNonZero > 0 )
253 std::vector<G4double> vRand;
254 vRand.push_back( 0.0 );
255 for (
G4int j = 0 ; j != nPhotons - nNonZero - 1 ; j++ )
259 vRand.push_back( 1.0 );
260 std::sort( vRand.begin(), vRand.end() );
262 std::vector<G4double> vEPhoton;
263 for (
G4int j = 0 ; j < (
G4int)vRand.size() - 1 ; j++ )
265 vEPhoton.push_back( deltaE * ( vRand[j+1] - vRand[j] ) );
267 std::sort( vEPhoton.begin(), vEPhoton.end() );
269 for (
G4int j = 0 ; j < nPhotons - nNonZero - 1 ; j++ )
276 G4ThreeVector tempVector(en*sinth*std::cos(phi), en*sinth*std::sin(phi), en*std::cos(theta) );
281 theOne->SetMomentum( tempVector );
316 std::stringstream ss;
317 ss << static_cast<G4int>(
Z);
321 ss << static_cast<G4int>(
A);
336 G4String filenameMF6 = dirName+
"/FSMF6/"+sZ+
"_"+sA+sM+
"_"+element_name;
339 std::istringstream theData(std::ios::in);
344 if ( theData.good() == true ) {
346 theMF6FinalState.
Init(theData);
361 if(!dbool || ( Z<2.5 && ( std::abs(
theBaseZ - Z)>0.0001 || std::abs(
theBaseA - A)>0.0001)))
virtual void SetICM(G4bool)
static G4ParticleHPManager * GetInstance()
G4FragmentVector * BreakItUp(const G4Fragment &theNucleus)
static G4double GetNuclearMass(const G4double A, const G4double Z)
G4Cache< G4HadFinalState * > theResult
void SetMomentum(const G4ThreeVector &momentum)
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
G4HadSecondary * GetSecondary(size_t i)
void SetKineticEnergy(const G4double en)
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetProjectileRP(G4ReactionProduct &aIncidentPart)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *)
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
void SetAZMs(G4double anA, G4double aZ, G4int aM, G4ParticleHPDataUsed used)
void GetDataStream(G4String, std::istringstream &iss)
G4HadFinalState * ApplyYourself(const G4HadProjectile &theTrack)
static const G4double eps
G4ParticleDefinition * GetDefinition() const
G4ReactionProductVector * Sample(G4double anEnergy)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
static constexpr double twopi
void SetStatusChange(G4HadFinalStateStatus aS)
std::vector< G4ReactionProduct * > G4ReactionProductVector
G4ReactionProduct GetBiasedThermalNucleus(G4double aMass, G4ThreeVector aVelocity, G4double temp=-1) const
double A(double temperature)
const G4ParticleDefinition * GetDefinition() const
G4bool InitMean(std::istream &aDataFile)
G4double GetIonMass(G4int Z, G4int A, G4int L=0, G4int lvl=0) const
G4double GetKineticEnergy() const
G4ErrorTarget * theTarget
std::vector< G4Fragment * > G4FragmentVector
static constexpr double eV
static G4Neutron * Neutron()
const G4LorentzVector & Get4Momentum() const
G4LorentzVector Get4Momentum() const
static G4IonTable * GetIonTable()
G4double GetKineticEnergy() const
G4double GetTotalEnergy() const
G4double GetPDGMass() const
G4DynamicParticle * GetParticle()
void SetTarget(G4ReactionProduct &aTarget)
G4ReactionProductVector * GetPhotons(G4double anEnergy)
G4ThreeVector GetMomentum() const
G4double GetTemperature() const
G4ParticleHPDataUsed GetName(G4int A, G4int Z, G4String base, G4String rest, G4bool &active)
static constexpr double MeV
const G4Material * GetMaterial() const
static constexpr double pi
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
void InitEnergies(std::istream &aDataFile)
G4bool DoNotAdjustFinalState()
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void InitAngular(std::istream &aDataFile)
void Put(const value_type &val) const
G4int GetNumberOfSecondaries() const
void Init(std::istream &aDataFile)
CLHEP::HepLorentzVector G4LorentzVector