File indexing completed on 2025-08-05 08:15:42
0001
0002
0003 #ifndef HEPMCJETTRIGGER_H
0004 #define HEPMCJETTRIGGER_H
0005
0006 #include <fun4all/SubsysReco.h>
0007
0008 #include <fastjet/PseudoJet.hh>
0009
0010 #include <string>
0011 #include <vector>
0012
0013 class PHCompositeNode;
0014 namespace HepMC
0015 {
0016 class GenEvent;
0017 }
0018
0019 class HepMCJetTrigger : public SubsysReco
0020 {
0021 public:
0022 HepMCJetTrigger(float trigger_thresh = 10., int n_incom = 1000, bool up_lim = false, const std::string& name = "HepMCJetTrigger");
0023
0024 ~HepMCJetTrigger() override = default;
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041 int process_event(PHCompositeNode* topNode) override;
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051 private:
0052 bool isGoodEvent(HepMC::GenEvent* e1);
0053 std::vector<fastjet::PseudoJet> findAllJets(HepMC::GenEvent* e1);
0054 int jetsAboveThreshold(const std::vector<fastjet::PseudoJet>& jets);
0055 float threshold{0.};
0056 int goal_event_number{1000};
0057 int n_evts{0};
0058 int n_good{0};
0059 bool set_event_limit{false};
0060 };
0061
0062 #endif