24 auto it = edm::makeAssociativeIterator< reco::CandidateBaseRef>( *matchResult,
event );
25 auto itEnd = it.end() ;
26 while ( it != itEnd ) {
27 if ( it->first.isNonnull() && it->second.isNonnull() && it->second.isAvailable() ) {
28 if ( it->first.id() == candRef.
id() && it->first.key() == candRef.
key() ) {
49 const std::vector< std::string > matchers( triggerEvent.
triggerMatchers() );
50 for (
size_t iMatch = 0; iMatch < matchers.size(); ++iMatch ) {
51 theContainer[ matchers.at( iMatch ) ] =
triggerMatchObject( candRef, matchers.at( iMatch ),
event, triggerEvent );
64 auto it = edm::makeAssociativeIterator< reco::CandidateBaseRef>( *matchResult,
event );
65 auto itEnd = it.
end() ;
66 while ( it != itEnd ) {
67 if ( it->first.isNonnull() && it->second.isNonnull() && it->second.isAvailable() ) {
68 if ( it->second == objectRef ) {
TriggerObjectRef triggerMatchObject(const reco::CandidateBaseRef &candRef, const TriggerObjectMatch *matchResult, const edm::Event &event, const TriggerEvent &triggerEvent) const
Methods.
std::vector< std::string > triggerMatchers() const
Get a list of all linked trigger matches.
TriggerObjectMatchMap triggerMatchObjects(const reco::CandidateBaseRef &candRef, const edm::Event &event, const TriggerEvent &triggerEvent) const
Get a table of references to all trigger objects matched to a certain physics object given by a refer...
const_iterator end() const
std::map< std::string, TriggerObjectRef > TriggerObjectMatchMap
Container to store match references from different producers (for one PAT object) ...
edm::Ref< TriggerObjectCollection > TriggerObjectRef
Persistent reference to an item in a TriggerObjectCollection.
const TriggerObjectMatch * triggerObjectMatchResult(const std::string &labelMatcher) const
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
Analysis-level trigger event class.
void push_back(const RefToBase< T > &)
reco::CandidateBaseRefVector triggerMatchCandidates(const pat::TriggerObjectRef &objectRef, const TriggerObjectMatch *matchResult, const edm::Event &event, const TriggerEvent &triggerEvent) const