File indexing completed on 2025-08-05 08:17:57
0001 #ifndef G4EVAL_MOMENTUMEVALUATOR_H
0002 #define G4EVAL_MOMENTUMEVALUATOR_H
0003
0004 #include <fun4all/SubsysReco.h>
0005
0006 #include <string>
0007
0008 class PHCompositeNode;
0009 class TNtuple;
0010
0011 class MomentumEvaluator : public SubsysReco
0012 {
0013 public:
0014 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.);
0015 ~MomentumEvaluator() override;
0016
0017 int Init(PHCompositeNode *topNode) override;
0018 int process_event(PHCompositeNode *topNode) override;
0019 int End(PHCompositeNode *topNode) override;
0020
0021 private:
0022 TNtuple *ntp_true;
0023 TNtuple *ntp_reco;
0024 float pt_search_scale;
0025 float pz_search_scale;
0026 unsigned int event_counter;
0027 std::string file_name;
0028 unsigned int n_inner_layers;
0029 unsigned int n_required_layers;
0030 float inner_z_length;
0031 float outer_z_length;
0032 };
0033
0034 #endif