4 #include "G4ChordFinder.hh"
12 G4FieldManager* priFM,
13 G4FieldManager* altFM)
14 : G4FieldManager(commonField,0,
false),
15 fPrimaryFM(priFM), fAlternativeFM(altFM),
26 int PID = trk->GetDynamicParticle()->GetDefinition()->GetPDGEncoding();
54 SetDeltaIntersection(fm->GetDeltaIntersection());
55 SetDeltaOneStep(fm->GetDeltaOneStep());
56 G4ChordFinder* cf = fm->GetChordFinder();
57 cf->SetDeltaChord(cf->GetDeltaChord());
69 std::cout <<
" Alternative field manager with";
73 std::cout <<
" Global field manager with";
75 std::cout <<
" DeltaIntersection " << G4FieldManager::GetDeltaIntersection()
76 <<
", DeltaOneStep " << G4FieldManager::GetDeltaOneStep()
77 <<
" and DeltaChord " << G4FieldManager::GetChordFinder()->GetDeltaChord()
78 <<
" for " << trk->GetDynamicParticle()->GetDefinition()->GetPDGEncoding()
79 <<
" with " << trk->GetKineticEnergy()/MeV <<
" MeV in "
80 << trk->GetVolume()->GetName() << std::endl;
G4FieldManager * fCurrentFM
G4FieldManager * fAlternativeFM
virtual void ConfigureForTrack(const G4Track *trk)
const G4FieldManager * CopyValuesAndChordFinder(G4FieldManager *fm)
void print(const G4Track *trk)
G4FieldManager * fPrimaryFM