CMS 3D CMS Logo

CollectionCountEventSelector.h
Go to the documentation of this file.
1 #ifndef CommonTools_UtilAlgos_CollectionCountEventSelector_h
2 #define CommonTools_UtilAlgos_CollectionCountEventSelector_h
3 
24 
25 template <typename C,
26  typename S = AnySelector,
27  typename N = MinNumberSelector,
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
bool operator()(edm::Event &evt, const edm::EventSetup &) const override
N sizeSelect_
minimum number of entries in a collection
S make(const edm::ParameterSet &cfg)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:526
edm::EDGetTokenT< C > srcToken_
source collection label
def template(fileName, svg, replaceme="REPLACEME")
Definition: svgfig.py:521
static void fillPSetDescription(edm::ParameterSetDescription &desc)
#define N
Definition: blowfish.cc:9
CollectionCountEventSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
constructor
fixed size matrix
HLT enums.
static std::string const source
Definition: EdmProvDump.cc:49