Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-12-19 09:21:37

0001 #ifndef G4HISTOS_G4SCINTILLATORTOWERTTREE_H
0002 #define G4HISTOS_G4SCINTILLATORTOWERTTREE_H
0003 
0004 #include <fun4all/SubsysReco.h>
0005 
0006 #include <string>
0007 
0008 class Fun4AllHistoManager;
0009 class PHCompositeNode;
0010 class TH1;
0011 
0012 class G4ScintillatorTowerTTree : public SubsysReco
0013 {
0014  public:
0015   G4ScintillatorTowerTTree(const std::string &name = "SCINTILLATORTOWERTTREE");
0016   ~G4ScintillatorTowerTTree() override = default;
0017 
0018   //! full initialization
0019   int Init(PHCompositeNode *) override;
0020 
0021   //! event processing method
0022   int process_event(PHCompositeNode *) override;
0023 
0024   int End(PHCompositeNode *) override;
0025 
0026   void Detector(const std::string &det);
0027 
0028   void SaveScintillatorTowers(const int i = 1) { savetowers = i; }
0029 
0030   void HistoFileName(const std::string &name) { _histofilename = name; }
0031 
0032  private:
0033   std::string _detector;
0034   std::string _outnodename;
0035   std::string _towernodename;
0036   std::string _histofilename;
0037   int savetowers{1};
0038   int evtno{0};
0039   Fun4AllHistoManager *hm{nullptr};
0040   TH1 *etot_hist{nullptr};
0041 };
0042 
0043 #endif