00001 #ifndef jetsubstructureutils_subjetfinder_header 00002 #define jetsubstructureutils_subjetfinder_header 00003 00004 #include "JetSubStructureUtils/SubstructureCalculator.h" 00005 #include <vector> 00006 #include "fastjet/JetDefinition.hh" 00007 00008 namespace JetSubStructureUtils { 00009 class SubjetFinder : public SubstructureCalculator<std::vector<fastjet::PseudoJet> > { 00010 public: 00011 SubjetFinder(fastjet::JetAlgorithm fj_jetalg = fastjet::kt_algorithm, float jet_radius = 0.3, float pt_min = 5000, int exclusive_njets = -1); 00012 00013 using SubstructureCalculator::result; 00014 virtual std::vector<fastjet::PseudoJet> result(const fastjet::PseudoJet &jet) const; 00015 00016 virtual void setCOM(bool doCOM){ m_doCOM = doCOM;} 00017 00018 private: 00019 fastjet::JetAlgorithm m_fj_jetalg; 00020 float m_jetrad; 00021 float m_ptmin; 00022 int m_exclusivenjets; 00023 bool m_doCOM; 00024 }; 00025 } 00026 00027 #endif