Import Geant4 5.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:57:27 +02:00
parent 330b82b769
commit 37fff30d2e
5733 changed files with 263867 additions and 74574 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VDecayChannel.cc,v 1.12 2001/08/17 00:14:29 kurasige Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4VDecayChannel.cc,v 1.15 2002/11/20 15:05:56 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// ------------------------------------------------------------
@@ -275,7 +275,8 @@ void G4VDecayChannel::FillDaughters()
if ((numberOfDaughters <=0) || (daughters_name == 0) ){
#ifdef G4VERBOSE
if (verboseLevel>0) {
G4cout << "G4VDecayChannel::FillDaughters ";
G4cout << "G4VDecayChannel::FillDaughters ";
G4cout << "[ " << parent->GetParticleName() << " ]";
G4cout << "numberOfDaughters is not defined yet";
}
#endif
@@ -294,6 +295,7 @@ void G4VDecayChannel::FillDaughters()
#ifdef G4VERBOSE
if (verboseLevel>0) {
G4cout << "G4VDecayChannel::FillDaughters ";
G4cout << "[ " << parent->GetParticleName() << " ]";
G4cout << index << "-th daughter is not defined yet" << G4endl;
}
#endif
@@ -307,6 +309,7 @@ void G4VDecayChannel::FillDaughters()
#ifdef G4VERBOSE
if (verboseLevel>0) {
G4cout << "G4VDecayChannel::FillDaughters ";
G4cout << "[ " << parent->GetParticleName() << " ]";
G4cout << index << ":" << *daughters_name[index];
G4cout << " is not defined !!" << G4endl;
G4cout << " The BR of this decay mode is set to zero " << G4endl;
@@ -326,14 +329,14 @@ void G4VDecayChannel::FillDaughters()
} // end loop over all daughters
// check sum of daghter mass
const G4double AllowanceOfMassDifference = 1.0 * MeV;
if ( (sumofdaughtermass > parentmass + AllowanceOfMassDifference) ||
( (parent->GetParticleType() != "nucleus") &&
(sumofdaughtermass > parentmass ) ) ){
G4double widthMass = parent->GetPDGWidth();
if ( (parent->GetParticleType() != "nucleus") &&
(sumofdaughtermass > parentmass + 5*widthMass) ){
// !!! illegal mass !!!
#ifdef G4VERBOSE
if (GetVerboseLevel()>0) {
G4cout << "G4VDecayChannel::FillDaughters ";
G4cout << "[ " << parent->GetParticleName() << " ]";
G4cout << " Energy/Momentum conserevation breaks " <<G4endl;
if (GetVerboseLevel()>1) {
G4cout << " parent:" << *parent_name;
@@ -344,12 +347,9 @@ void G4VDecayChannel::FillDaughters()
G4cout << "[GeV/c/c]" <<G4endl;
}
}
G4cout << " The BR of this decay mode is set to zero " << G4endl;
}
#endif
SetBR(0.0);
return;
}
}
}
@@ -454,3 +454,7 @@ void G4VDecayChannel::DumpInfo()
G4cout << G4endl;
}
const G4String& G4VDecayChannel::GetNoName() const
{
return noName;
}