11 template <
typename ObjType,
typename ObjCollType>
23 template <
typename ObjType,
typename ObjCollType>
25 : token_(consumes<ObjCollType>(config.getParameter<edm::
InputTag>(
"objs"))),
26 selection_(config.getParameter<std::
string>(
"selection")) {
27 produces<edm::ValueMap<bool> >();
30 template <
typename ObjType,
typename ObjCollType>
35 descriptions.
add(
"hltDQMObjSelector", desc);
38 template <
typename ObjType,
typename ObjCollType>
41 event.getByToken(token_, handle);
46 std::vector<bool> selResults;
47 for (
auto&
obj : *handle) {
48 selResults.push_back(selection_(
obj));
50 auto valMap = std::make_unique<edm::ValueMap<bool> >();
52 filler.insert(handle, selResults.begin(), selResults.end());
void produce(edm::Event &, edm::EventSetup const &) override
HLTDQMObjSelector(const edm::ParameterSet &config)
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
tuple config
parse the configuration file
StringCutObjectSelector< ObjType, true > selection_
edm::EDGetTokenT< ObjCollType > token_