Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackingIterationCounter.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackingIterationCounter.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef TRACKINGITERATIONCOUNTER_H
4 #define TRACKINGITERATIONCOUNTER_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <string>
9 
10 class PHCompositeNode;
11 class SvtxTrackMap;
12 class TrackSeed;
14 
16 {
17  public:
18  TrackingIterationCounter(const std::string &name = "TrackingIterationCounter");
19 
20  ~TrackingIterationCounter() override;
21 
22  int Init(PHCompositeNode *topNode) override;
23  int InitRun(PHCompositeNode *topNode) override;
24  int process_event(PHCompositeNode *topNode) override;
25  int End(PHCompositeNode *topNode) override;
26 
27  void iteration(const short int iter) { m_iteration = iter; }
28 
29  private:
30  int getNodes(PHCompositeNode *topNode);
31  int createNodes(PHCompositeNode *topNode);
33  short int m_iteration = 1;
34 
37 };
38 
39 #endif // TRACKINGITERATIONCOUNTER_H