55 for (
int i = 0 ; i < nSecondaries ; i++ )
65 G4bool needOneMoreSec =
false;
74 if ( max_SecA >
int(
theBaseA + 1 - sum_A) )
78 needOneMoreSec =
true;
90 if (
int(
theBaseA + 1 - sum_A) > 1 )
G4cout <<
"More than one neutron is required for the balance of baryon number!" <<
G4endl;
99 if ( resi_pd == NULL )
107 for (
int i = 0 ; i < nSecondaries ; i++ )
132 for (
G4int i = 0 ; i < n_sec ; i++ )
155 if ( slow > beta && beta != 0 )
199 if ( slow > p4.beta() )
204 dif_4p = init_4p_lab - ( secs_4p_lab + p4 );
207 if ( needOneMoreSec && oneMoreSec_pd)
219 if ( slow > p4.beta() )
222 islow = nSecondaries-1;
224 dif_4p = init_4p_lab - ( secs_4p_lab + p4 );
229 if ( dif_4p.v().mag() < std::abs( dif_4p.e() ) )
234 if ( minimum_energy < dif_4p.v().mag() && dif_4p.v().mag() < 1*
MeV )
262 G4double dif_e = dif_4p.e() - ( dif_4p.v() ).mag();
271 G4double e1 = ( dif_4p.e() -dif_4p.v().mag() ) / 2;
273 if ( minimum_energy < e1 )
278 std::sin(std::acos(costh))*std::sin(phi),
299 if ( ke0 + dif_e > 0 )
void SetMomentum(const G4ThreeVector &momentum)
G4HadSecondary * GetSecondary(size_t i)
G4double GetKineticEnergy() const
G4Cache< G4HadFinalState * > theResult
CLHEP::Hep3Vector G4ThreeVector
static G4NeutronHPManager * GetInstance()
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
G4ParticleDefinition * GetDefinition() const
G4int GetAtomicNumber() const
G4GLOB_DLL std::ostream G4cout
static G4Neutron * Neutron()
G4int GetAtomicMass() const
void SetKineticEnergy(G4double aEnergy)
G4LorentzVector Get4Momentum() const
static G4IonTable * GetIonTable()
G4double GetPDGMass() const
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4DynamicParticle * GetParticle()
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void adjust_final_state(G4LorentzVector)
G4int GetNumberOfSecondaries() const
G4ThreeVector GetMomentum() const
CLHEP::HepLorentzVector G4LorentzVector