File indexing completed on 2025-08-05 08:17:56
0001 #ifndef G4EVAL_JETEVALUATOR_H
0002 #define G4EVAL_JETEVALUATOR_H
0003
0004
0005
0006
0007
0008
0009
0010 #include <fun4all/SubsysReco.h>
0011
0012 #include <string>
0013
0014 class JetEvalStack;
0015 class PHCompositeNode;
0016 class TFile;
0017 class TNtuple;
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 class JetEvaluator : public SubsysReco
0028 {
0029 public:
0030 JetEvaluator(const std::string &name = "JETEVALUATOR",
0031 const std::string &recojetname = "AntiKt_Tower_r0.3",
0032 const std::string &truthjetname = "AntiKt_Truth_r0.3",
0033 const std::string &filename = "g4eval_jets.root");
0034 ~JetEvaluator() override{};
0035
0036 int Init(PHCompositeNode *topNode) override;
0037 int process_event(PHCompositeNode *topNode) override;
0038 int End(PHCompositeNode *topNode) override;
0039
0040 void set_strict(bool b) { _strict = b; }
0041
0042 private:
0043 std::string _recojetname;
0044 std::string _truthjetname;
0045
0046 unsigned long _ievent = 0;
0047
0048 JetEvalStack *_jetevalstack = nullptr;
0049
0050
0051
0052
0053 bool _strict = false;
0054
0055 bool _do_recojet_eval = true;
0056 bool _do_truthjet_eval = true;
0057
0058 TNtuple *_ntp_recojet = nullptr;
0059 TNtuple *_ntp_truthjet = nullptr;
0060
0061
0062 std::string _filename;
0063 TFile *_tfile = nullptr;
0064
0065
0066 void printInputInfo(PHCompositeNode *topNode);
0067 void fillOutputNtuples(PHCompositeNode *topNode);
0068 void printOutputInfo(PHCompositeNode *topNode);
0069 };
0070
0071 #endif