Import Geant4 7.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ParticleChange.icc,v 1.10 2004/05/08 15:28:11 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
// $Id: G4ParticleChange.icc,v 1.12 2004/12/02 06:38:00 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-03 $
|
||||
//
|
||||
//
|
||||
inline
|
||||
@@ -191,165 +191,7 @@ inline
|
||||
G4double mass
|
||||
) const
|
||||
{
|
||||
G4double tMomentum = sqrt(energy*energy + 2*energy*mass);
|
||||
G4double tMomentum = std::sqrt(energy*energy + 2*energy*mass);
|
||||
return direction*tMomentum;
|
||||
}
|
||||
|
||||
|
||||
// Following methods will be removed in release 7.0
|
||||
|
||||
inline
|
||||
G4double G4ParticleChange::GetEnergyChange() const
|
||||
{
|
||||
return GetEnergy();
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetEnergyChange(G4double energy)
|
||||
{
|
||||
ProposeEnergy(energy);
|
||||
}
|
||||
|
||||
|
||||
inline
|
||||
const G4ThreeVector* G4ParticleChange::GetMomentumChange() const
|
||||
{
|
||||
return GetMomentumDirection();
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetMomentumChange(
|
||||
G4double Px,
|
||||
G4double Py,
|
||||
G4double Pz )
|
||||
{
|
||||
ProposeMomentumDirection(Px, Py, Pz);
|
||||
}
|
||||
inline
|
||||
|
||||
void G4ParticleChange::SetMomentumChange(const G4ThreeVector& P)
|
||||
{
|
||||
ProposeMomentumDirection(P);
|
||||
}
|
||||
|
||||
inline
|
||||
const G4ThreeVector* G4ParticleChange::GetMomentumDirectionChange() const
|
||||
{
|
||||
return GetMomentumDirection();
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetMomentumDirectionChange(
|
||||
G4double Px,
|
||||
G4double Py,
|
||||
G4double Pz )
|
||||
{
|
||||
ProposeMomentumDirection(Px, Py, Pz);
|
||||
}
|
||||
inline
|
||||
|
||||
void G4ParticleChange::SetMomentumDirectionChange(const G4ThreeVector& P)
|
||||
{
|
||||
ProposeMomentumDirection(P);
|
||||
}
|
||||
|
||||
inline
|
||||
const G4ThreeVector* G4ParticleChange::GetPolarizationChange() const
|
||||
{
|
||||
return GetPolarization();
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetPolarizationChange( const G4ThreeVector& finalPoralization)
|
||||
{
|
||||
ProposePolarization(finalPoralization);
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetPolarizationChange(
|
||||
G4double Px,
|
||||
G4double Py,
|
||||
G4double Pz )
|
||||
{
|
||||
ProposePolarization(Px, Py, Pz);
|
||||
}
|
||||
|
||||
inline
|
||||
const G4ThreeVector* G4ParticleChange::GetPositionChange() const
|
||||
{
|
||||
return GetPosition();
|
||||
}
|
||||
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetPositionChange(const G4ThreeVector& finalPosition)
|
||||
{
|
||||
ProposePosition(finalPosition);
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetPositionChange(G4double x,G4double y, G4double z)
|
||||
{
|
||||
ProposePosition(x, y, z);
|
||||
}
|
||||
|
||||
inline
|
||||
G4double G4ParticleChange::GetProperTimeChange() const
|
||||
{
|
||||
return GetProperTime();
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetProperTimeChange(G4double tau)
|
||||
{
|
||||
ProposeProperTime(tau);
|
||||
}
|
||||
|
||||
|
||||
inline
|
||||
G4double G4ParticleChange::GetTimeChange() const
|
||||
{
|
||||
return GetGlobalTime();
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetTimeChange(G4double t)
|
||||
{
|
||||
ProposeGlobalTime(t);
|
||||
}
|
||||
|
||||
inline
|
||||
G4double G4ParticleChange::GetMassChange() const
|
||||
{
|
||||
return GetMass();
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetMassChange(G4double t)
|
||||
{
|
||||
ProposeMass(t);
|
||||
}
|
||||
|
||||
inline
|
||||
G4double G4ParticleChange::GetChargeChange() const
|
||||
{
|
||||
return GetCharge();
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetChargeChange(G4double t)
|
||||
{
|
||||
ProposeCharge(t);
|
||||
}
|
||||
|
||||
inline
|
||||
G4double G4ParticleChange::GetWeightChange() const
|
||||
{
|
||||
return GetWeight();
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChange::SetWeightChange(G4double w)
|
||||
{
|
||||
ProposeWeight(w);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user