File indexing completed on 2025-08-05 08:18:10
0001 #include "PHG4PhenixSteppingAction.h"
0002 #include "PHG4SteppingAction.h"
0003
0004 PHG4PhenixSteppingAction::~PHG4PhenixSteppingAction()
0005 {
0006 while (actions_.begin() != actions_.end())
0007 {
0008 delete actions_.back();
0009 actions_.pop_back();
0010 }
0011 }
0012
0013
0014 void PHG4PhenixSteppingAction::UserSteppingAction(const G4Step* aStep)
0015 {
0016
0017 bool hit_was_used = false;
0018 for (ActionList::const_iterator iter = actions_.begin(); iter != actions_.end(); ++iter)
0019 {
0020 if (*iter)
0021 {
0022 hit_was_used |= (*iter)->UserSteppingAction(aStep, hit_was_used);
0023 }
0024 }
0025 }