20 minMht_ ( iConfig.getParameter<
std::vector<double> >(
"minMht") ),
21 mhtLabels_ ( iConfig.getParameter<
std::vector<
edm::InputTag> >(
"mhtLabels") ),
22 nOrs_ ( mhtLabels_.
size() ) {
26 edm::LogError(
"HLTMhtFilter") <<
"inconsistent module configuration!";
29 for(
unsigned int i=0;
i<
nOrs_; ++
i) {
40 std::vector<edm::InputTag> tmp1(1,
edm::InputTag(
"hltMhtProducer"));
41 std::vector<double> tmp2(1, 0.);
44 desc.
add<std::vector<edm::InputTag> >(
"mhtLabels", tmp1);
45 tmp2[0] = 70; desc.
add<std::vector<double> >(
"minMht", tmp2);
46 descriptions.
add(
"hltMhtFilter", desc);
57 for (
unsigned int i = 0;
i <
nOrs_; ++
i) {
65 if (!hmht->empty()) mht = hmht->front().pt();
68 accept = accept || (mht >
minMht_[
i]);
std::vector< double > minMht_
Minimum MHT requirements.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< edm::InputTag > mhtLabels_
Input reco::MET collections to retrieve MHT.
std::vector< edm::EDGetTokenT< reco::METCollection > > m_theMhtToken
number of pairs of MHT
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
void addObject(int id, const reco::RecoEcalCandidateRef &ref)
setters for L3 collections: (id=physics type, and Ref<C>)
HLTMhtFilter(const edm::ParameterSet &iConfig)
bool hltFilter(edm::Event &iEvent, const edm::EventSetup &iSetup, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
void addCollectionTag(const edm::InputTag &collectionTag)
collectionTags
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::Ref< METCollection > METRef
edm references