EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EvalRootTTreeReco.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EvalRootTTreeReco.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef EVALROOTTTREERECO_H
4 #define EVALROOTTTREERECO_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <string>
9 
10 class PHCompositeNode;
11 
13 {
14  public:
15  EvalRootTTreeReco(const std::string &name = "EvalRootTTreeReco");
16 
17  virtual ~EvalRootTTreeReco();
18 
24  int Init(PHCompositeNode *topNode) override;
25 
31  int InitRun(PHCompositeNode *topNode) override;
32 
36  int process_event(PHCompositeNode *topNode) override;
37 
39  int ResetEvent(PHCompositeNode *topNode) override;
40 
42  int EndRun(const int runnumber) override;
43 
45  int End(PHCompositeNode *topNode) override;
46 
48  int Reset(PHCompositeNode * /*topNode*/) override;
49 
50  void Print(const std::string &what = "ALL") const override;
51 
52  void Detector(const std::string &name);
53 
54  void DropHits(const bool drp = true) { m_DropHitsFlag = drp; }
55 
56  private:
57  bool m_DropHitsFlag = false;
58 
59  std::string m_Detector;
60 
61  std::string m_OutputNode;
62  std::string m_HitNodeName;
63  std::string m_TowerNodeName;
64  std::string m_TowerGeoNodeName;
65  std::string m_ClusterNodeName;
66 };
67 
68 #endif // EVALROOTTTREERECO_H