File indexing completed on 2025-08-05 08:16:19
0001
0002
0003 #ifndef FUN4ALLUTILS_TIMERSTATS_H
0004 #define FUN4ALLUTILS_TIMERSTATS_H
0005
0006 #include <fun4all/SubsysReco.h>
0007
0008 #include <string> // for string
0009
0010 class PHCompositeNode;
0011 class CDBTTree;
0012
0013 class TimerStats : public SubsysReco
0014 {
0015 public:
0016 TimerStats(const std::string &name = "TimerStats");
0017 ~TimerStats() override {}
0018 int InitRun(PHCompositeNode *topNode) override;
0019 int process_event(PHCompositeNode *topNode) override;
0020 int End(PHCompositeNode *topNode) override;
0021 void OutFileName(const std::string &name) { outfilename = name; }
0022
0023 private:
0024 CDBTTree *cdbttree = nullptr;
0025 int iev = 0;
0026 std::string outfilename = "timerstats.root";
0027 };
0028
0029 #endif