Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mbdAnalysis.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file mbdAnalysis.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef MBDANALYSIS_H
4 #define MBDANALYSIS_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <string>
9 
10 class PHCompositeNode;
11 class TTree;
12 
13 class mbdAnalysis : public SubsysReco
14 {
15  public:
16 
17  mbdAnalysis(const std::string &name = "mbdAnalysis");
18 
19  ~mbdAnalysis() override;
20 
26  int Init(PHCompositeNode *topNode) override;
27 
33  int InitRun(PHCompositeNode *topNode) override;
34 
38  int process_event(PHCompositeNode *topNode) override;
39 
41  int ResetEvent(PHCompositeNode *topNode) override;
42 
44  int EndRun(const int runnumber) override;
45 
47  int End(PHCompositeNode *topNode) override;
48 
50  int Reset(PHCompositeNode * /*topNode*/) override;
51 
52  void Print(const std::string &what = "ALL") const override;
53 
54  private:
55 
56  TFile *out;
57  TTree *T = nullptr;
58  //std::vector<float> adc;
59  //std::vector<float> tdc0;
60  //std::vector<float> tdc1;
61  std::vector<float> pmtcharge;
62  std::vector<float> pmttime;
63  std::vector<float> pmtx;
64  std::vector<float> pmty;
65  std::vector<float> pmtz;
66  std::vector<float> pmtr;
67  std::vector<float> pmtphi;
68 
69 };
70 
71 #endif // MBDANALYSIS_H