ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4PhenixStackingAction.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4PhenixStackingAction.cc
2 #include "PHG4StackingAction.h"
3 
5 {
6  while (actions_.begin() != actions_.end())
7  {
8  delete actions_.back();
9  actions_.pop_back();
10  }
11 }
12 
13 
14 //_________________________________________________________________
16 {
17  // loop over registered actions, and process
19  for( ActionList::const_iterator iter = actions_.begin(); iter != actions_.end(); ++iter )
20  {
21  if(*iter)
22  {
23  G4ClassificationOfNewTrack cret = (*iter)->ClassifyNewTrack(aTrack);
24  if (cret != fUrgent)
25  {
26  retcode = cret;
27  }
28  }
29  }
30  return retcode;
31 }
32 
33 //_________________________________________________________________
35 {
36  // loop over registered actions, and process
37  for( ActionList::const_iterator iter = actions_.begin(); iter != actions_.end(); ++iter )
38  {
39  if(*iter)
40  {
41  (*iter)->PrepareNewEvent();
42  }
43  }
44  return;
45 }