1 #ifndef HelpfulWatchers_SimTracer_h
2 #define HelpfulWatchers_SimTracer_h
42 #define OBSERVES(type) public Observer<const type*>
43 #define UPDATE(type) void update(const type*) { std::cout <<"++ signal " #type<<std::endl; }
75 const G4StepPoint* post = iStep->GetPostStepPoint();
76 const G4ThreeVector pos = post->GetPosition();
77 std::cout <<
"( "<<pos.x()<<
","<<pos.y()<<
","<<pos.z()<<
") ";
78 if(post->GetPhysicalVolume()) {
79 std::cout << post->GetPhysicalVolume()->GetName();
SimTracer(const edm::ParameterSet &pSet)
void update(const DDDWorld *)
This routine will be called when the appropriate signal arrives.
volatile std::atomic< bool > shutdown_flag false