6 #include <phparameter/PHParameters.h>
19 #include <Geant4/G4ParticleDefinition.hh>
20 #include <Geant4/G4ReferenceCountedHandle.hh>
21 #include <Geant4/G4Step.hh>
22 #include <Geant4/G4StepPoint.hh>
23 #include <Geant4/G4StepStatus.hh>
24 #include <Geant4/G4String.hh>
25 #include <Geant4/G4SystemOfUnits.hh>
26 #include <Geant4/G4ThreeVector.hh>
27 #include <Geant4/G4TouchableHandle.hh>
28 #include <Geant4/G4Track.hh>
29 #include <Geant4/G4TrackStatus.hh>
30 #include <Geant4/G4Types.hh>
31 #include <Geant4/G4VPhysicalVolume.hh>
32 #include <Geant4/G4VTouchable.hh>
33 #include <Geant4/G4VUserTrackInformation.hh>
44 , m_Detector(detector)
45 , m_Params(parameters)
46 , m_ActiveFlag(m_Params->get_int_param(
"active"))
47 , m_AbsorberActiveFlag(m_Params->get_int_param(
"absorberactive"))
48 , m_BlackHoleFlag(m_Params->get_int_param(
"blackhole"))
83 if (whichactive == -1)
96 if (whichactive == -2)
108 bool geantino =
false;
132 std::cout <<
GetName() <<
": New Hit for " << std::endl;
138 <<
", current trackid: " << aTrack->
GetTrackID() << std::endl;
139 std::cout <<
"phys pre vol: " << volume->
GetName()
196 std::cout <<
GetName() <<
": hit was not created" << std::endl;
202 <<
", current trackid: " << aTrack->
GetTrackID() << std::endl;
203 std::cout <<
"phys pre vol: " << volume->
GetName()
212 std::cout <<
GetName() <<
": hits do not belong to the same track" << std::endl;
214 <<
", current trackid: " << aTrack->
GetTrackID()
298 std::cout <<
"BeamLineMagnetSteppingAction::SetTopNode - unable to find " <<
m_HitNodeName << std::endl;
301 if (!m_AbsorberHitContainer)
305 std::cout <<
"BeamLineMagnetSteppingAction::SetTopNode - unable to find " <<
m_AbsorberNodeName << std::endl;
317 else if (type ==
"G4HIT_ABSORBER")
322 std::cout <<
"Invalid output hit node type " << type << std::endl;