115 using namespace reco;
121 vector <pair<double, double> > jetdirection;
122 vector<double> jetspt;
124 for (
unsigned jet = 0;
jet<PFJets->size();
jet++) {
125 if(((*PFJets)[
jet].
pt()<jtptthr)||(
abs((*PFJets)[
jet].
eta())>jtetath))
continue;
127 std::pair<double, double>
etaphi((*PFJets)[
jet].
eta(),(*PFJets)[
jet].phi());
128 jetdirection.push_back(etaphi);
129 jetspt.push_back((*PFJets)[
jet].
pt());
134 if (!passed)
return false;
141 if (!(*hoht).empty()) {
142 for (PFClusterCollection::const_iterator ij=(*hoht).begin(); ij!=(*hoht).end(); ij++){
143 double hoenr = (*ij).energy();
144 if (hoenr <hothres)
continue;
148 double hoeta = cluster_pos.eta() ;
149 double hophi = cluster_pos.phi() ;
151 for (
unsigned ijet = 0; ijet< jetdirection.size(); ijet++) {
154 isJetDir=
true;
break;
161 if (isJetDir) {Npass++;}
edm::EDGetTokenT< reco::PFClusterCollection > tok_hoht_
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
U second(std::pair< T, U > const &p)
#define DEFINE_FWK_MODULE(type)
void addDefault(ParameterSetDescription const &psetDescription)
JetHTJetPlusHOFilter(const edm::ParameterSet &)
bool filter(edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::pair< T, T > etaphi(T x, T y, T z)
Abs< T >::type abs(const T &t)
~JetHTJetPlusHOFilter() override
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
XYZPointD XYZPoint
point in space with cartesian internal representation
edm::EDGetTokenT< reco::PFJetCollection > tok_PFJets_