Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #ifndef FINDREJECTS_H
0002 #define FINDREJECTS_H
0003 
0004 #include <fun4all/SubsysReco.h>
0005 
0006 #include <string>
0007 
0008 // Forward declarations
0009 class TriggerAnalyzer;
0010 class TNtuple;
0011 class PHCompositeNode;
0012 class TH2F;
0013 class Fun4AllHistoManager;
0014 class TrashInfo;
0015 class FindRejects : public SubsysReco
0016 {
0017  public:
0018   //! constructor
0019   FindRejects(const std::string& name = "FindRejects", const std::string& outfile = "testQA.root"); //int nevents = 100);
0020 
0021   //! destructor
0022   ~FindRejects() override;
0023 
0024   //! full initialization
0025   int Init(PHCompositeNode*) override;
0026 
0027   //! event processing method
0028   int process_event(PHCompositeNode*) override;
0029 
0030   //! end of run method
0031   int End(PHCompositeNode*) override;
0032 
0033  private:
0034 
0035   Fun4AllHistoManager *hm{nullptr};
0036   TNtuple *tn{nullptr};
0037   TH2F* h_emcal{nullptr};
0038   TH2F* h_hcalout{nullptr};
0039   TH2F* h_hcalout_time{nullptr};
0040 
0041   int _eventcounter{0};
0042   int _eventcount{0};
0043   int _range{1};
0044   std::string m_outfilename;
0045   float m_maxcut = 15.;
0046   TriggerAnalyzer *m_triggeranalyzer{nullptr};
0047 };
0048 
0049 #endif