1 #ifndef PhysicsTools_UtilAlgos_interface_EDFilterValueMapWrapper_h 2 #define PhysicsTools_UtilAlgos_interface_EDFilterValueMapWrapper_h 13 #include <boost/shared_ptr.hpp> 17 template<
class T,
class C>
29 produces<edm::ValueMap<int>>();
36 auto objsToPut = std::make_unique<C>();
39 event.getByToken(
src_, h_c );
40 std::vector<int> bitOut;
42 for (
typename C::const_iterator ibegin = h_c->begin(), iend = h_c->end(),
i = ibegin;
i != iend; ++
i ){
47 filler.
insert(h_c,bitOut.begin(),bitOut.end());
T getParameter(std::string const &) const
C::const_iterator const_iterator
void insert(const H &h, I begin, I end)
edm::EDGetTokenT< C > src_
InputTag of the input source.
FilterValueMapWrapper(const edm::ParameterSet &cfg)
default contructor. Declares the output (type "C") and the filter (of type T, operates on C::value_ty...
C::iterator iterator
some convenient typedefs. Recall that C is a container class.
void produce(edm::Event &event, const edm::EventSetup &eventSetup) override
everything which has to be done during the event loop. NOTE: We can't use the eventSetup in FWLite so...
boost::shared_ptr< T > filter_
shared pointer to analysis class of type BasicAnalyzer
~FilterValueMapWrapper() override
default destructor