Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:18:03

0001 #ifndef G4HISTOS_G4RAWTOWERTTREE_H
0002 #define G4HISTOS_G4RAWTOWERTTREE_H
0003 
0004 #include <fun4all/SubsysReco.h>
0005 
0006 #include <string>
0007 
0008 class Fun4AllHistoManager;
0009 class PHCompositeNode;
0010 class TH1;
0011 
0012 class G4RawTowerTTree : public SubsysReco
0013 {
0014  public:
0015   G4RawTowerTTree(const std::string &name = "RAWTOWERTTREE");
0016   ~G4RawTowerTTree() override {}
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 SaveRawTowers(const int i = 1) { savetowers = 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 _towernodename;
0036   std::string _towergeomnodename;
0037   std::string _histofilename;
0038   int savetowers;
0039   int evtno;
0040   Fun4AllHistoManager *hm;
0041   TH1 *etot_hist;
0042 };
0043 
0044 #endif