Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HitCountEval.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file HitCountEval.h
1 
18 #ifndef __HitCountEval_H__
19 #define __HitCountEval_H__
20 
21 #include <string>
22 #include <TTree.h>
23 #include <TH1F.h>
24 #include <phool/PHCompositeNode.h>
27 #include <fun4all/SubsysReco.h>
28 
29 #define NHITCONTAINERS 10
30 
31 #define NELEMS(a) (sizeof(a)/sizeof(a[0]))
32 class HitCountEval: public SubsysReco
33 {
34  public:
35  HitCountEval(const std::string &name = "HitCountEval",
36  const std::string &file_name = "g4eval.root");
37  int Init(PHCompositeNode *const);
38  int process_event(PHCompositeNode *const);
39  int End(PHCompositeNode *const);
40  void set_filename(const char *const file);
41  private:
43 
44  unsigned event;
45  static const char *const hit_containers[NHITCONTAINERS];
46 
51 
52  /* For Trees */
53  Float_t hit_x;
54  Float_t hit_y;
55  Float_t hit_z;
56  Float_t hit_px;
57  Float_t hit_py;
58  Float_t hit_pz;
62 
63  Int_t hit_id;
64  Int_t hit_layer;
65  Int_t hit_event;
66 
69 };
70 
71 #endif //* __HitCountEval_H__ *//