File indexing completed on 2025-08-03 08:13:07
0001
0002
0003
0004 #ifndef MBDINFO_H
0005 #define MBDINFO_H
0006
0007 #include <fun4all/SubsysReco.h>
0008
0009 #include <string>
0010 #include <vector>
0011 #include <TMath.h>
0012
0013
0014 class TFile;
0015 class TTree;
0016 class TNtuple;
0017
0018 class PHCompositeNode;
0019
0020 class MBDinfo : public SubsysReco
0021 {
0022 public:
0023
0024 MBDinfo(const std::string &name = "MBDinfo");
0025
0026 ~MBDinfo() override;
0027
0028 int Init(PHCompositeNode *topNode) override;
0029 int InitRun(PHCompositeNode *topNode) override;
0030 int process_event(PHCompositeNode *topNode) override;
0031 int ResetEvent(PHCompositeNode *topNode) override;
0032 int EndRun(const int runnumber) override;
0033 int End(PHCompositeNode *topNode) override;
0034 int Reset(PHCompositeNode * ) override;
0035
0036 void set_filename(const char* file)
0037 { if(file) _outfile_name = file; }
0038
0039 void set_sim(bool dosim)
0040 {
0041 _dosim = dosim;
0042 }
0043
0044 private:
0045 std::string _outfile_name;
0046 bool _dosim = true;
0047 double StoreMBDInfo(std::vector < float > _m);
0048 TNtuple *mbd;
0049 std::vector < float > _f;
0050 float mtower_info[17] = {};
0051 int _event;
0052 float thisvertex;
0053
0054
0055 };
0056
0057 #endif