4 #include "G4ChordFinder.hh"
7 #include "G4PhysicalConstants.hh"
8 #include "G4SystemOfUnits.hh"
15 G4FieldManager* priFM,
16 G4FieldManager* altFM)
17 : G4FieldManager(commonField,0,
false),
18 fPrimaryFM(priFM), fAlternativeFM(altFM),
29 int PID = trk->GetDynamicParticle()->GetDefinition()->GetPDGEncoding();
57 SetDeltaIntersection(fm->GetDeltaIntersection());
58 SetDeltaOneStep(fm->GetDeltaOneStep());
59 G4ChordFinder* cf = fm->GetChordFinder();
60 cf->SetDeltaChord(cf->GetDeltaChord());
72 std::cout <<
" Alternative field manager with";
76 std::cout <<
" Global field manager with";
78 std::cout <<
" DeltaIntersection " << G4FieldManager::GetDeltaIntersection()
79 <<
", DeltaOneStep " << G4FieldManager::GetDeltaOneStep()
80 <<
" and DeltaChord " << G4FieldManager::GetChordFinder()->GetDeltaChord()
81 <<
" for " << trk->GetDynamicParticle()->GetDefinition()->GetPDGEncoding()
82 <<
" with " << trk->GetKineticEnergy()/
MeV <<
" MeV in "
83 << trk->GetVolume()->GetName() << std::endl;
G4FieldManager * fCurrentFM
G4FieldManager * fAlternativeFM
virtual void ConfigureForTrack(const G4Track *trk)
const G4FieldManager * CopyValuesAndChordFinder(G4FieldManager *fm)
Abs< T >::type abs(const T &t)
void print(const G4Track *trk)
G4FieldManager * fPrimaryFM
volatile std::atomic< bool > shutdown_flag false