1 #ifndef GenericSelectorByValueMap_h
2 #define GenericSelectorByValueMap_h
37 template <
typename T,
typename C>
71 template <
typename T,
typename C>
75 m_cut(config.getParameter<
cut_type>(
"cut"))
78 produces<edm::RefToBaseVector<candidate_type> >();
83 template <
typename T,
typename C>
90 event.getByToken(token_electrons, h_electrons);
95 event.getByToken(token_selection, h_selection);
98 for (
unsigned int i = 0;
i < electrons.
size(); ++
i) {
100 if (selectionMap[ptr] > m_cut)
101 candidates->push_back(ptr);
105 event.put(candidates);
110 #endif // GenericSelectorByValueMap_h
GenericSelectorByValueMap(edm::ParameterSet const &config)
RefToBase< value_type > refAt(size_type i) const
edm::EDGetTokenT< edm::ValueMap< selection_type > > token_selection
details::template CompatibleConfigurationType< selection_type >::type cut_type
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::EDGetTokenT< edm::View< candidate_type > > token_electrons
void produce(edm::Event &event, edm::EventSetup const &setup)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")