File indexing completed on 2025-08-05 08:16:07
0001
0002
0003 #ifndef FFARAWMODULES_INTTBCODUMP_H
0004 #define FFARAWMODULES_INTTBCODUMP_H
0005
0006 #include <fun4all/SubsysReco.h>
0007
0008 #include <fstream>
0009 #include <map>
0010 #include <set>
0011 #include <string>
0012
0013 class Fun4AllInputManager;
0014 class PHCompositeNode;
0015 class TFile;
0016 class TTree;
0017
0018 class InttBcoDump : public SubsysReco
0019 {
0020 public:
0021 InttBcoDump(const std::string &name = "MvtxBcoDump");
0022
0023 ~InttBcoDump() override {}
0024
0025 int InitRun(PHCompositeNode *topNode) override;
0026
0027 int process_event(PHCompositeNode *topNode) override;
0028
0029 int End(PHCompositeNode *topNode) override;
0030
0031 void OutFileName(const std::string &name) { outfilename = name; }
0032
0033 private:
0034 TFile *outfile{nullptr};
0035 TTree *ttree{nullptr};
0036 std::map<int, uint64_t> lastbco;
0037 std::map<uint64_t, int> bcoTaggedFees;
0038 std::string outfilename;
0039 int m_id{0};
0040 int m_evt{0};
0041 uint64_t m_bco{0};
0042 int m_nfees{0};
0043 int64_t m_bcodiff{0};
0044 };
0045
0046 #endif