1 #ifndef PhysicsTools_PatAlgos_EfficiencyLoader_h
2 #define PhysicsTools_PatAlgos_EfficiencyLoader_h
14 namespace pat {
namespace helper {
30 template<
typename T,
typename R>
35 std::vector<edm::InputTag>
tags_;
36 mutable std::vector<edm::Handle< edm::ValueMap<pat::LookupTableRecord> > >
handles_;
39 template<
typename T,
typename R>
bool enabled() const
'true' if this there is at least one efficiency configured
std::vector< std::string > names_
EfficiencyLoader()
Empty constructor.
void setEfficiency(const std::string &name, const pat::LookupTableRecord &value)
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
void setEfficiencies(pat::PATObject< T > &obj, const R &originalRef) const
Sets the efficiencies for this object, using the reference to the original objects.
std::vector< edm::Handle< edm::ValueMap< pat::LookupTableRecord > > > handles_
Templated PAT object container.
std::vector< edm::InputTag > tags_
void newEvent(const edm::Event &event) const
To be called for each new event, reads in the ValueMaps for efficiencies.