Import Geant4 10.3.0 source tree
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user