ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MomentumEvaluator.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MomentumEvaluator.h
1 #ifndef G4EVAL_MOMENTUMEVALUATOR_H
2 #define G4EVAL_MOMENTUMEVALUATOR_H
3 
4 #include <fun4all/SubsysReco.h>
5 
6 #include <string>
7 
8 class PHCompositeNode;
9 class TNtuple;
10 
12 {
13  public:
14  MomentumEvaluator(const std::string &fname, float pt_s = 0.1, float pz_s = 0.2, unsigned int n_l = 62, unsigned int n_i = 2, unsigned int n_r = 50, float i_z = 10., float o_z = 80.);
15  ~MomentumEvaluator() override;
16 
17  int Init(PHCompositeNode *topNode) override;
18  int process_event(PHCompositeNode *topNode) override;
19  int End(PHCompositeNode *topNode) override;
20 
21  private:
22  TNtuple *ntp_true;
23  TNtuple *ntp_reco;
26  unsigned int event_counter;
27  std::string file_name;
28  unsigned int n_inner_layers;
29  unsigned int n_required_layers;
32 };
33 
34 #endif