EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4HitTTree.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4HitTTree.h
1 #ifndef G4HISTOS_G4HITTTREE_H
2 #define G4HISTOS_G4HITTTREE_H
3 
4 #include <fun4all/SubsysReco.h>
5 
6 #include <string>
7 
9 class PHCompositeNode;
10 class TH1;
11 class TH2;
12 
13 class G4HitTTree : public SubsysReco
14 {
15  public:
16  G4HitTTree(const std::string &name = "HITTTREE");
17  ~G4HitTTree() override {}
18 
20  int Init(PHCompositeNode *) override;
21 
23  int process_event(PHCompositeNode *) override;
24 
25  int End(PHCompositeNode *) override;
26 
27  void Detector(const std::string &det);
28  void BlackHoleName(const std::string &bh);
29 
30  void SaveHits(const int i = 1) { savehits = i; }
31 
32  protected:
33  std::string _detector;
34  std::string _outnodename;
35  std::string _hitnodename;
36  std::string _absorbernodename;
37  std::string _blackholenodename;
38  int savehits;
39  int evtno;
41  TH1 *etot_hist;
43 };
44 
45 #endif