Remove G4ParticleDefinition dependance.
This commit is contained in:
parent
df77d6b888
commit
81c231c089
@ -53,14 +53,6 @@ LEMuSRTrackingAction:: ~LEMuSRTrackingAction()
|
|||||||
//! Actions to take at the beginning of a track.
|
//! Actions to take at the beginning of a track.
|
||||||
void LEMuSRTrackingAction::PreUserTrackingAction(const G4Track* theTrack)
|
void LEMuSRTrackingAction::PreUserTrackingAction(const G4Track* theTrack)
|
||||||
{
|
{
|
||||||
// G4cout << theTrack->GetDefinition()->GetParticleName()<<G4endl;
|
|
||||||
GyroMagRatio=GyroMagFactor=0;
|
|
||||||
if(theTrack->GetDefinition()->GetPDGMass()!=0)
|
|
||||||
{
|
|
||||||
GyroMagRatio=theTrack->GetDefinition()->GetGyromagneticRatio();
|
|
||||||
GyroMagFactor=theTrack->GetDefinition()->GetGyromagneticFactor();
|
|
||||||
}
|
|
||||||
// G4cout <<"g ratio [Hz]/[G]"<<GyroMagRatio*s/gauss<<G4endl;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user