Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TimerStats.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TimerStats.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef FUN4ALLUTILS_TIMERSTATS_H
4 #define FUN4ALLUTILS_TIMERSTATS_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <string> // for string
9 
10 class PHCompositeNode;
11 class CDBTTree;
12 
13 class TimerStats : public SubsysReco
14 {
15  public:
16  TimerStats(const std::string &name = "TimerStats");
17  ~TimerStats() override {}
18  int InitRun(PHCompositeNode *topNode) override;
19  int process_event(PHCompositeNode *topNode) override;
20  int End(PHCompositeNode *topNode) override;
22 
23  private:
24  CDBTTree *cdbttree = nullptr;
25  int iev = 0;
26  std::string outfilename = "timerstats.root";
27 };
28 
29 #endif