File indexing completed on 2025-08-05 08:13:27
0001
0002
0003 #ifndef MBDANALYSIS_H
0004 #define MBDANALYSIS_H
0005
0006 #include <fun4all/SubsysReco.h>
0007
0008 #include <string>
0009
0010 class PHCompositeNode;
0011 class TTree;
0012 class EventHeader;
0013
0014 class mbdAnalysis : public SubsysReco
0015 {
0016 public:
0017
0018 mbdAnalysis(const std::string &name = "mbdAnalysis");
0019
0020 ~mbdAnalysis() override;
0021
0022
0023
0024
0025
0026
0027 int Init(PHCompositeNode *topNode) override;
0028
0029
0030
0031
0032
0033
0034 int InitRun(PHCompositeNode *topNode) override;
0035
0036
0037
0038
0039 int process_event(PHCompositeNode *topNode) override;
0040
0041
0042 int ResetEvent(PHCompositeNode *topNode) override;
0043
0044
0045 int EndRun(const int runnumber) override;
0046
0047
0048 int End(PHCompositeNode *topNode) override;
0049
0050
0051 int Reset(PHCompositeNode * ) override;
0052
0053 void Print(const std::string &what = "ALL") const override;
0054
0055 private:
0056
0057 TTree *T;
0058
0059
0060
0061 std::vector<float> pmtcharge;
0062 std::vector<float> pmttime;
0063 std::vector<float> pmtx;
0064 std::vector<float> pmty;
0065 std::vector<float> pmtz;
0066 std::vector<float> pmtr;
0067 std::vector<float> pmtphi;
0068 float cent;
0069 float vertex;
0070 float evtPlaneAngle;
0071
0072 TFile *out;
0073 std::string Outfile = "commissioning.root";
0074
0075 };
0076
0077 #endif