21 : usePt_(iConfig.getParameter<
bool>(
"usePt")),
22 excludePFMuons_(iConfig.getParameter<
bool>(
"excludePFMuons")),
23 minNJetHt_(iConfig.getParameter<
int>(
"minNJetHt")),
24 minNJetMht_(iConfig.getParameter<
int>(
"minNJetMht")),
25 minPtJetHt_(iConfig.getParameter<double>(
"minPtJetHt")),
26 minPtJetMht_(iConfig.getParameter<double>(
"minPtJetMht")),
27 maxEtaJetHt_(iConfig.getParameter<double>(
"maxEtaJetHt")),
28 maxEtaJetMht_(iConfig.getParameter<double>(
"maxEtaJetMht")),
29 jetsLabel_(iConfig.getParameter<
edm::
InputTag>(
"jetsLabel")),
30 pfCandidatesLabel_(iConfig.getParameter<
edm::
InputTag>(
"pfCandidatesLabel")) {
35 produces<reco::METCollection>();
45 desc.add<
bool>(
"usePt",
false);
46 desc.add<
bool>(
"excludePFMuons",
false);
47 desc.add<
int>(
"minNJetHt", 0);
48 desc.add<
int>(
"minNJetMht", 0);
49 desc.add<
double>(
"minPtJetHt", 40.);
50 desc.add<
double>(
"minPtJetMht", 30.);
51 desc.add<
double>(
"maxEtaJetHt", 3.);
52 desc.add<
double>(
"maxEtaJetMht", 5.);
55 descriptions.
add(
"hltHtMhtProducer",
desc);
73 int nj_ht = 0, nj_mht = 0;
74 double ht = 0., mhx = 0., mhy = 0.;
76 for (
auto const& aJet : *
jets) {
77 double const pt =
usePt_ ? aJet.pt() : aJet.et();
78 double const eta = aJet.eta();
79 double const phi = aJet.phi();