ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4ScintillatorSlatTTree.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4ScintillatorSlatTTree.h
1 #ifndef G4HISTOS_G4SCINTILLATORSLATTTREE_H
2 #define G4HISTOS_G4SCINTILLATORSLATTTREE_H
3 
4 #include <fun4all/SubsysReco.h>
5 
6 #include <string>
7 
9 class PHCompositeNode;
10 class TH1;
11 
13 {
14  public:
15  G4ScintillatorSlatTTree(const std::string &name = "SCINTILLATORSLATTTREE");
17 
19  int Init(PHCompositeNode *) override;
20 
22  int process_event(PHCompositeNode *) override;
23 
24  int End(PHCompositeNode *) override;
25 
26  void Detector(const std::string &det);
27 
28  void SaveScintillatorSlats(const int i = 1) { saveslats = i; }
29 
30  void HistoFileName(const std::string &name) { _histofilename = name; }
31 
32  protected:
33  std::string _detector;
34  std::string _outnodename;
35  std::string _slatnodename;
36  std::string _histofilename;
37  int saveslats;
38  int evtno;
40  TH1 *etot_hist;
41 };
42 
43 #endif