ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4PhenixTrackingAction.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4PhenixTrackingAction.cc
2 #include "PHG4TrackingAction.h"
3 
4 #include <iostream>
5 
7 {
8  while (actions_.begin() != actions_.end())
9  {
10  delete actions_.back();
11  actions_.pop_back();
12  }
13 }
14 
15 void
17 {
18 
19  if ( Verbosity()>0 ) std::cout << "PHG4PhenixTrackingAction::PreUserTrackingAction" << std::endl;
20 
21  // loop over registered actions, and process
22  for( ActionList::const_iterator iter = actions_.begin(); iter != actions_.end(); ++iter )
23  {
24  if (*iter)
25  {
26  if ( Verbosity()>0 ) std::cout << "PHG4PhenixTrackingAction::PreUserTrackingAction - processing " << *iter << std::endl;
27  (*iter)->PreUserTrackingAction(track);
28  }
29  }
30 
31 }
32 
33 void
35 {
36 
37  if ( Verbosity()>0 ) std::cout << "PHG4PhenixTrackingAction::PostUserTrackingAction" << std::endl;
38 
39  // loop over registered actions, and process
40  for( ActionList::const_iterator iter = actions_.begin(); iter != actions_.end(); ++iter )
41  {
42  if (*iter)
43  {
44  if ( Verbosity()>0 ) std::cout << "PHG4PhenixTrackingAction::PostUserTrackingAction - processing " << *iter << std::endl;
45  (*iter)->PostUserTrackingAction(track);
46  }
47  }
48 
49 }