CMS 3D CMS Logo

ObjectCountEventSelector.h
Go to the documentation of this file.
1 #ifndef CommonTools_UtilAlgos_ObjectCountEventSelector_h
2 #define CommonTools_UtilAlgos_ObjectCountEventSelector_h
3 
24 
25 template <typename C,
26  typename S = AnySelector,
27  typename N = MinNumberSelector,
28  typename CS = typename helper::CollectionFilterTrait<C, S, N>::type>
30 public:
33  : srcToken_(iC.consumes<C>(cfg.template getParameter<edm::InputTag>("src"))),
34  select_(reco::modules::make<S>(cfg, iC)),
35  sizeSelect_(reco::modules::make<N>(cfg, iC)) {}
36 
38  desc.add<edm::InputTag>("src", edm::InputTag());
39  reco::modules::fillPSetDescription<S>(desc);
40  reco::modules::fillPSetDescription<N>(desc);
41  }
42 
43  bool operator()(edm::Event& evt, const edm::EventSetup&) const override {
47  }
48 
49 private:
52 
55 
58 };
59 
60 #endif
ObjectCountEventSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
constructor
S make(const edm::ParameterSet &cfg)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:539
def template(fileName, svg, replaceme="REPLACEME")
Definition: svgfig.py:521
#define N
Definition: blowfish.cc:9
N sizeSelect_
minimum number of entries in a collection
fixed size matrix
HLT enums.
bool operator()(edm::Event &evt, const edm::EventSetup &) const override
static std::string const source
Definition: EdmProvDump.cc:46
edm::EDGetTokenT< C > srcToken_
source collection label
static void fillPSetDescription(edm::ParameterSetDescription &desc)