1 #ifndef PhysicsTools_PatAlgos_EfficiencyLoader_h 2 #define PhysicsTools_PatAlgos_EfficiencyLoader_h 31 template<
typename T,
typename R>
36 std::vector<edm::EDGetTokenT<edm::ValueMap<pat::LookupTableRecord> > >
tokens_;
37 std::vector<edm::Handle< edm::ValueMap<pat::LookupTableRecord> > >
handles_;
40 template<
typename T,
typename R>
bool enabled() const
'true' if this there is at least one efficiency configured
void newEvent(const edm::Event &event)
To be called for each new event, reads in the ValueMaps for efficiencies.
std::vector< std::string > names_
EfficiencyLoader()
Empty constructor.
std::vector< edm::EDGetTokenT< edm::ValueMap< pat::LookupTableRecord > > > tokens_
void setEfficiency(const std::string &name, const pat::LookupTableRecord &value)
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.