16 for (
auto const& it : conf.
getParameter<std::vector<std::string>>(
"inputClassifiers")) {
17 srcMVAs.push_back(consumes<MVACollection>(
edm::InputTag(it,
"MVAValues")));
18 srcQuals.push_back(consumes<QualityMaskCollection>(
edm::InputTag(it,
"QualityMasks")));
21 produces<MVACollection>(
"MVAValues");
22 produces<QualityMaskCollection>(
"QualityMasks");
27 desc.add<std::vector<std::string>>(
"inputClassifiers", std::vector<std::string>());
28 descriptions.add(
"ClassifierMerger",
desc);
32 using MVACollection = std::vector<float>;
33 using QualityMaskCollection = std::vector<unsigned char>;
39 auto size = (*hmva).size();
45 auto mvas = std::make_unique<MVACollection>(*hmva);
46 auto quals = std::make_unique<QualityMaskCollection>(*hqual);
48 for (
auto i = 1
U;
i < srcQuals.size(); ++
i) {
50 auto const& iq = *hqual;
60 std::vector<edm::EDGetTokenT<MVACollection>> srcMVAs;
61 std::vector<edm::EDGetTokenT<QualityMaskCollection>> srcQuals;
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
virtual void produce(StreamID, Event &, EventSetup const &) const =0