File indexing completed on 2025-08-05 08:18:04
0001 #ifndef G4HISTOS_G4SCINTILLATORSLATTTREE_H
0002 #define G4HISTOS_G4SCINTILLATORSLATTTREE_H
0003
0004 #include <fun4all/SubsysReco.h>
0005
0006 #include <string>
0007
0008 class Fun4AllHistoManager;
0009 class PHCompositeNode;
0010 class TH1;
0011
0012 class G4ScintillatorSlatTTree : public SubsysReco
0013 {
0014 public:
0015 G4ScintillatorSlatTTree(const std::string &name = "SCINTILLATORSLATTTREE");
0016 ~G4ScintillatorSlatTTree() override {}
0017
0018
0019 int Init(PHCompositeNode *) override;
0020
0021
0022 int process_event(PHCompositeNode *) override;
0023
0024 int End(PHCompositeNode *) override;
0025
0026 void Detector(const std::string &det);
0027
0028 void SaveScintillatorSlats(const int i = 1) { saveslats = i; }
0029
0030 void HistoFileName(const std::string &name) { _histofilename = name; }
0031
0032 protected:
0033 std::string _detector;
0034 std::string _outnodename;
0035 std::string _slatnodename;
0036 std::string _histofilename;
0037 int saveslats;
0038 int evtno;
0039 Fun4AllHistoManager *hm;
0040 TH1 *etot_hist;
0041 };
0042
0043 #endif