10 #include <phparameter/PHParameters.h>
25 #include <Geant4/G4ParticleDefinition.hh>
26 #include <Geant4/G4ReferenceCountedHandle.hh>
27 #include <Geant4/G4Step.hh>
28 #include <Geant4/G4StepPoint.hh>
29 #include <Geant4/G4StepStatus.hh>
30 #include <Geant4/G4String.hh>
31 #include <Geant4/G4SystemOfUnits.hh>
32 #include <Geant4/G4ThreeVector.hh>
33 #include <Geant4/G4TouchableHandle.hh>
34 #include <Geant4/G4Track.hh>
35 #include <Geant4/G4TrackStatus.hh>
36 #include <Geant4/G4Types.hh>
37 #include <Geant4/G4VPhysicalVolume.hh>
38 #include <Geant4/G4VTouchable.hh>
39 #include <Geant4/G4VUserTrackInformation.hh>
50 , m_Detector(detector)
51 , m_Params(parameters)
52 , m_ActiveFlag(m_Params->get_int_param(
"active"))
53 , m_BlackHoleFlag(m_Params->get_int_param(
"blackhole"))
76 auto killtrack =
const_cast<G4Track *
>(aTrack);
107 std::cout <<
"PHG4MicromegasSteppingAction::UserSteppingAction - " <<
GetName() <<
": New Hit for " << std::endl;
115 std::cout <<
"phys pre vol: " << volume->
GetName() <<
" post vol : " << touchpost->
GetVolume()->
GetName() << std::endl;
158 m_hit->set_trkid(
pp->GetUserTrackId());
171 std::cout <<
GetName() <<
": hit was not created" << std::endl;
178 std::cout <<
"phys pre vol: " << volume->
GetName() <<
" post vol : " << touchpost->
GetVolume()->
GetName() << std::endl;
188 std::cout <<
GetName() <<
": hits do not belong to the same track" << std::endl;
190 <<
", current trackid: " << aTrack->
GetTrackID()
278 m_hitContainer = findNode::getClass<PHG4HitContainer>(topNode, hitnodename);
279 if (!
m_hitContainer) std::cout <<
"PHG4MicromegasSteppingAction::SetTopNode - unable to find " << hitnodename << std::endl;