5 #include "G4ChordFinder.hh" 8 #include "CLHEP/Units/SystemOfUnits.h" 15 G4FieldManager* priFM,
16 G4FieldManager* altFM)
18 fPrimaryFM(priFM), fAlternativeFM(altFM),
29 int PID = trk->GetDynamicParticle()->GetDefinition()->GetPDGEncoding();
54 SetDeltaIntersection(fm->GetDeltaIntersection());
55 SetDeltaOneStep(fm->GetDeltaOneStep());
56 G4ChordFinder* cf = fm->GetChordFinder();
57 cf->SetDeltaChord(cf->GetDeltaChord());
67 ?
"Alternative field manager with" 68 :
"Global field manager with";
71 << ss <<
" DeltaIntersection= " << G4FieldManager::GetDeltaIntersection()
72 <<
", DeltaOneStep= " << G4FieldManager::GetDeltaOneStep()
73 <<
", DeltaChord= " << G4FieldManager::GetChordFinder()->GetDeltaChord()
74 <<
" for " << trk->GetDynamicParticle()->GetDefinition()->GetPDGEncoding()
75 <<
" with " << trk->GetKineticEnergy()/
CLHEP::GeV <<
" GeV in " 76 << trk->GetVolume()->GetName();
G4FieldManager * fCurrentFM
G4FieldManager * fAlternativeFM
const G4FieldManager * CopyValuesAndChordFinder(G4FieldManager *fm)
Abs< T >::type abs(const T &t)
void print(const G4Track *trk)
G4FieldManager * fPrimaryFM
void ConfigureForTrack(const G4Track *trk) override