Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
isoCluster.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file isoCluster.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef ISOCLUSTER_H
4 #define ISOCLUSTER_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <string>
9 
10 #include <vector>
11 
12 class PHCompositeNode;
13 class TFile;
14 class TTree;
15 
16 class isoCluster : public SubsysReco
17 {
18  public:
19 
20  isoCluster(const std::string &name = "isoCluster");
21 
22  ~isoCluster() override;
23 
29  int Init(PHCompositeNode *topNode) override;
30 
36  int InitRun(PHCompositeNode *topNode) override;
37 
41  int process_event(PHCompositeNode *topNode) override;
42 
44  int ResetEvent(PHCompositeNode *topNode) override;
45 
47  int EndRun(const int runnumber) override;
48 
50  int End(PHCompositeNode *topNode) override;
51 
53  int Reset(PHCompositeNode * /*topNode*/) override;
54 
55  void Print(const std::string &what = "ALL") const override;
56 
57  void setGenEvent(int eventGet) {getEvent = eventGet;}
58 
59  private:
60 
61  TTree *T;
62  //cluster information
63  std::vector<float> m_clusterPhi;
64  std::vector<float> m_clusterEta;
65  std::vector<float> m_clusterE;
66  std::vector<float> m_clusterPt;
67  std::vector<float> m_clusterEtIso;
68  std::vector<float> m_clusterChisq;
69 
70  //truth particle information
71  std::vector<float> m_photonPhi;
72  std::vector<float> m_photonEta;
73  std::vector<float> m_photonE;
74  std::vector<float> m_photonPt;
75 
76  TFile *fout;
78  int getEvent;
79 };
80 
81 #endif // ISOCLUSTER_H