File indexing completed on 2025-08-05 08:11:15
0001 #ifndef TRIGGERVALID_TRIGGERVALID_H
0002 #define TRIGGERVALID_TRIGGERVALID_H
0003
0004 #include <fun4all/SubsysReco.h>
0005 #include <ffarawobjects/Gl1Packet.h>
0006 #include <ffarawobjects/Gl1Packetv1.h>
0007 #include <ffarawobjects/Gl1Packetv2.h>
0008
0009 #include <string>
0010 #include <vector>
0011
0012
0013 class Fun4AllHistoManager;
0014 class PHCompositeNode;
0015 class TFile;
0016 class TNtuple;
0017 class TTree;
0018 class TH2F;
0019 class TH1F;
0020 class TH1;
0021 class TProfile2D;
0022
0023 class TriggerValid : public SubsysReco
0024 {
0025 public:
0026
0027 TriggerValid(const std::string& name = "TriggerValid");
0028
0029
0030 ~TriggerValid() override = default;
0031
0032
0033 int Init(PHCompositeNode*) override;
0034
0035
0036 int process_event(PHCompositeNode*) override;
0037
0038 int process_towers(PHCompositeNode*);
0039 int process_ll1out(PHCompositeNode*);
0040
0041 void set_debug(bool debug) { m_debug = debug; }
0042
0043 private:
0044
0045 int Getpeaktime(TH1* h);
0046
0047 bool m_debug{0};
0048 int _eventcounter{0};
0049 int _range{1};
0050 };
0051
0052 #endif