1 #ifndef CommonTools_UtilAlgos_AssociatedVariableCollectionSelector_h 2 #define CommonTools_UtilAlgos_AssociatedVariableCollectionSelector_h 38 varToken_(iC.consumes<VarCollection>(cfg.
template getParameter<
edm::InputTag>(
"var"))),
40 const_iterator
begin()
const {
return selected_.begin(); }
41 const_iterator
end()
const {
return selected_.end(); }
46 for(
size_t idx = 0;
idx < c->size(); ++
idx) {
48 addRef_(selected_, c, idx);
65 struct AssociatedVariableCollectionSelectorEventSetupInit {
72 template<
typename I,
typename V,
typename S,
typename O,
typename C,
typename R>
helper::MatcherGetRef< C >::ref_type getRef(const Handle< C > &c, size_t k)
edm::EDGetTokenT< VarCollection > varToken_
const_iterator end() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
S make(const edm::ParameterSet &cfg)
static void init(S &s, const edm::Event &evt, const edm::EventSetup &es)
AssociatedVariableCollectionSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
const_iterator begin() const
container::const_iterator const_iterator
const std::complex< double > I
def template(fileName, svg, replaceme="REPLACEME")
Functor that operates on <T>
AssociatedVariableCollectionSelectorEventSetupInit< AssociatedVariableCollectionSelector< I, V, S, O, C, R > > type
InputCollection collection
void select(const edm::Handle< InputCollection > &c, const edm::Event &evt, const edm::EventSetup &)