Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
analysis.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file analysis.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef ANALYSIS_H
4 #define ANALYSIS_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <string>
9 #include <TF1.h>
10 #include<string.h>
11 #include<TProfile.h>
12 #include<TH1.h>
13 #include<TH2.h>
14 #include <TFile.h>
15 #include <TTree.h>
16 
17 
19 
20 class PHCompositeNode;
21 class TF1;
22 class TH1D;
23 class TH2D;
24 class TTree;
25 
26 class analysis : public SubsysReco
27 {
28  public:
29 
30  analysis(const std::string &name = "analysis");
31 
32  virtual ~analysis();
33 
39  void SetOutputFileName(std::string outfilename)
40  {
41  m_outfilename = outfilename;
42  }
43 
44  int Init(PHCompositeNode *topNode) override;
45 
51  int InitRun(PHCompositeNode *topNode) override;
52 
56  int process_event(PHCompositeNode *topNode) override;
57 
59  int ResetEvent(PHCompositeNode *topNode) override;
60 
62  int EndRun(const int runnumber) override;
63 
65  int End(PHCompositeNode *topNode) override;
66 
68  int Reset(PHCompositeNode * /*topNode*/) override;
69 
70  void Print(const std::string &what = "ALL") const override;
71 
72  private:
73  //---------------------------------------------
74  //define the histogram manager
75  //---------------------------------------------
78 
79  //-------------------------------------------------------------------------------
80  //define some vectors in which we store jet information
81  //-------------------------------------------------------------------------------
82 
83  std::vector<float> m_tjet_pt;
84  std::vector<float> m_tjet_phi;
85  std::vector<float> m_tjet_eta;
86  std::vector<float> m_rjet_pt;
87  std::vector<float> m_rjet_phi;
88  std::vector<float> m_rjet_eta;
89  std::vector<float> m_dr;
93 
94  float m_tjet_pt2;
95 
96 
97 
98  TFile* outfile;
99 
100 };
101 
102 #endif // ANALYSIS_H