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