71 if (iConfig.
existsAs<std::vector<unsigned int> >(
"maskedChannels"))
75 if (iConfig.
existsAs<std::vector<int> >(
"maskedChannels")) {
76 std::vector<int> tVec=iConfig.
getParameter<std::vector<int> >(
"maskedChannels");
77 if ( !tVec.empty() ) {
78 edm::LogError(
"cfg error") <<
"masked list of channels missing from HLT menu. Migration from vector of ints to vector of uints needed for this release";
101 desc.
add<
double>(
"threshold",3.0);
102 desc.
add<
int>(
"minNHitsNeg",1);
103 desc.
add<
int>(
"minNHitsPos",1);
104 desc.
add<
bool>(
"doCoincidence",
true);
105 std::vector<unsigned int>
temp;
106 desc.
add<std::vector<unsigned int> >(
"maskedChannels",
temp)->
107 setComment(
" # now by raw detid, not hashed id");
108 descriptions.
add(
"hltHcalSimpleRecHitFilter",desc);
130 int nHitsNeg=0, nHitsPos=0;
131 for (
auto hit : *crudeHits) {
140 if (
hit.
id().zside()<0) ++nHitsNeg;
T getParameter(std::string const &) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
~HLTHcalSimpleRecHitFilter() override
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< unsigned int > maskedList_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
HLTHcalSimpleRecHitFilter(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::InputTag HcalRecHitCollection_
edm::EDGetTokenT< HFRecHitCollection > HcalRecHitsToken_