Import Geant4 10.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-12-09 12:35:28 +01:00
parent 4ec577e5c4
commit a3452e42ac
3514 changed files with 210500 additions and 89628 deletions
@@ -123,7 +123,7 @@ inline
// calculate momentum of daughter particles in two-body decay
if (e-p1-p2 < 0 )
{
G4HadronicException(__FILE__, __LINE__, "G4GeneralPhaseSpaceDecay::Pmx energy in cms > mass1+mass2");
throw G4HadronicException(__FILE__, __LINE__, "G4GeneralPhaseSpaceDecay::Pmx energy in cms > mass1+mass2");
}
G4double ppp = (e+p1+p2)*(e+p1-p2)*(e-p1+p2)*(e-p1-p2)/(4.0*e*e);
if (ppp>0) return std::sqrt(ppp);
@@ -70,8 +70,9 @@ class G4Parton
int operator!=(const G4Parton &right) const;
G4int GetPDGcode() const;
G4ParticleDefinition * GetDefinition();
void SetDefinition(G4ParticleDefinition * aDefinition); // Uzhi
void DefineMomentumInZ(G4double aLightConeMomentum, G4bool aDirection);
void DefineMomentumInZ(G4double aLightConeMomentum,G4double aLightConeE, G4bool aDirection);
@@ -97,9 +98,11 @@ class G4Parton
private:
G4double GetMass();
private:
public:
G4int PDGencoding;
G4ParticleDefinition * theDefinition;
private:
G4LorentzVector theMomentum;
G4ThreeVector thePosition;
@@ -160,5 +163,11 @@ G4ParticleDefinition * G4Parton::GetDefinition()
return theDefinition;
}
inline void G4Parton::SetDefinition(G4ParticleDefinition * aDefinition) // Uzhi
{
theDefinition = aDefinition;
PDGencoding = theDefinition->GetPDGEncoding();
}
#endif