Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:14:00

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
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 * /*topNode*/) override;
0035   
0036   void set_filename(const char* file)
0037   { if(file) _outfile_name = file; }
0038     
0039  private:
0040  std::string _outfile_name;
0041  double StoreMBDInfo(std::vector < float > _m);
0042   TNtuple *mbd;
0043   std::vector < float > _f;
0044   float mtower_info[5] = {};
0045   int _event;
0046 
0047 
0048 
0049 };
0050 
0051 #endif // MBDINFO_H