Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EpFinderEval.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EpFinderEval.h
1 
2 
3 #ifndef __EpFinderEval_H__
4 #define __EpFinderEval_H__
5 
6 #include <fun4all/SubsysReco.h>
7 #include <string>
8 #include <vector>
9 
10 //Forward declerations
11 class PHCompositeNode;
12 class TFile;
13 class TTree;
14 class EpFinder;
16 class RawTowerContainer;
18 
19 #define PHI_BINS 20
20 
21 #define FPRIM_PHI_BINS 20
22 #define FPRIM_ETA_BINS 20
23 #define RFPRIM_ETA_BINS 5
24 
25 //Brief: basic ntuple and histogram creation for sim evaluation
26 class EpFinderEval: public SubsysReco
27 {
28  public:
29  //Default constructor
30  EpFinderEval(const std::string &name="EpFinderEval");
31 
32  //Initialization, called for initialization
33  int Init(PHCompositeNode *);
34 
35  int InitRun(PHCompositeNode *);
36 
37  //Process Event, called for each event
39 
40  //End, write and close files
41  int End(PHCompositeNode *);
42 
43  //Change output filename
44  void set_filename(const char* file)
45  { if(file) _outfile_name = file; }
46 
47  private:
48  //output filename
50 
51  //Event counter
52  int _event;
53 
54  //User modules
56 
57  //Get all the nodes
59 
60  // Sum tower energy
61  void sumTowerEnergy( PHCompositeNode *topNode, std::string detName );
62 
63  // Determine phi,eta bin
64  int GetPhiBin(float tphi, float numPhiDivisions);
65  int GetEtaBin(float teta, float eta_low, float eta_high, float numEtaDivisions);
66 
67  //TTrees
69 
70  float rplane_angle;
71  float bimpact;
73 
77 
81 
85 
89 
93 
97 
98  float femc_h_clE;
99 
103 
111 
112  // phi binning
113 
114  std::vector<std::pair<int,int>> phi_list[PHI_BINS];
115  std::vector<std::pair<int,int>> rphi_list[PHI_BINS];
116  std::vector<std::pair<int,int>> fprim_phi_list[FPRIM_PHI_BINS];
117  std::vector<std::pair<int,int>> rfprim_phi_list[FPRIM_PHI_BINS];
118 
119 };
120 
121 #endif //* __EpFinderEval_H__ *//