Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:11:13

0001 #ifndef EMULATORHISTOS_H
0002 #define EMULATORHISTOS_H
0003 
0004 #include <fun4all/SubsysReco.h>
0005 
0006 #include <string>
0007 #include <vector>
0008 
0009 // Forward declarations
0010 class Fun4AllHistoManager;
0011 class PHCompositeNode;
0012 class TFile;
0013 class TNtuple;
0014 class TTree;
0015 class TH2F;
0016 class TH1F;
0017 class TH1;
0018 class TProfile2D;
0019 
0020 class EmulatorHistos : public SubsysReco
0021 {
0022  public:
0023   //! constructor
0024   EmulatorHistos(const std::string& name = "EmulatorHistos");
0025 
0026   //! destructor
0027   ~EmulatorHistos() override = default;
0028 
0029   //! full initialization
0030   int Init(PHCompositeNode*) override;
0031   int End(PHCompositeNode*) override;
0032   //! event processing method
0033   int process_event(PHCompositeNode*) override;
0034   int process_towers(PHCompositeNode*);
0035   int process_ll1out(PHCompositeNode*);
0036 
0037   void set_debug(bool debug) { m_debug = debug; }
0038 
0039  private:
0040 
0041   int Getpeaktime(TH1* h);
0042 
0043   bool m_debug{0};
0044   int i_event{0};
0045   int _range{1};
0046 };
0047 
0048 #endif