Remove G4ParticleDefinition dependance.

This commit is contained in:
paraiso
2006-02-24 14:34:55 +00:00
parent dbf68bfae2
commit cd724f2691
17 changed files with 324 additions and 192 deletions

View File

@ -69,7 +69,7 @@
#include "G4ForceCondition.hh"
#include "G4ParticleChangeForTransport.hh"
#include "LEMuSRParticleChangeForSR.hh"
#include "G4EventManager.hh"
/*!
* This class is a public class of the G4VRestProcess class,
@ -114,15 +114,20 @@ public:
G4double
//! The magnetic field vector at the point[4] position.
B[3],
//! The spin rotation angle computed in the RotateSpin method
rotation_angle;
//! The rotation frequency
fqz,
//! The spin rotation angle computed in the RotateSpin method
rotation_angle;
G4double
//! The initial time.
itime,
//! The final time.
ftime,
//! The time variation.
deltatime;
//! The final time.
ftime,
//! The time variation.
deltatime;
G4ThreeVector SpinDirection;
//! The particle change object which stores all the proposed modification of the particle's state.
@ -134,7 +139,12 @@ public:
void RotateSpin(const G4Step&, G4ThreeVector, G4double);
//! Returns the precession frequency according to the particle:
/*!
*- For muons and all other particles \f$ \gamma= 8.5062e+7*rad/(s*kGauss)\f$
*- For muonium \f$ \gamma=*rad/(s*kGauss) \f$
*/
G4double GetGyromagneticRatio();
inline G4double GetMeanLifeTime(const G4Track&, G4ForceCondition* condition)
{