14 #include "trg/cdc/SteppingAction.h"
24 TRGCDCSteppingAction::TRGCDCSteppingAction()
28 TRGCDCSteppingAction::~TRGCDCSteppingAction()
33 TRGCDCSteppingAction::UserSteppingAction(
const G4Step* aStep)
35 const G4StepPoint& in = * aStep->GetPreStepPoint();
36 const G4StepPoint& out = * aStep->GetPostStepPoint();
37 const double rIn = in.GetPosition().r();
38 const double rOut = out.GetPosition().r();
39 const bool curlBack = rIn > rOut;
41 aStep->GetTrack()->SetTrackStatus(fKillTrackAndSecondaries);
Abstract base class for different kinds of events.