#include <KinResolutionsLoader.h>
Public Member Functions | |
bool | enabled () const |
'true' if this there is at least one efficiency configured More... | |
KinResolutionsLoader () | |
Empty constructor. More... | |
KinResolutionsLoader (const edm::ParameterSet &iConfig, edm::ConsumesCollector) | |
Constructor from a PSet. More... | |
void | newEvent (const edm::Event &event, const edm::EventSetup &setup) |
To be called for each new event, reads in the EventSetup object. More... | |
template<typename T > | |
void | setResolutions (pat::PATObject< T > &obj) const |
Sets the efficiencies for this object, using the reference to the original objects. More... | |
Static Public Member Functions | |
static void | fillDescription (edm::ParameterSetDescription &iDesc) |
Method for documentation and validation of PSet. More... | |
Private Attributes | |
std::vector< edm::ESGetToken< KinematicResolutionProvider, KinematicResolutionRcd > > | estokens_ |
Labels of the KinematicResolutionProvider in the EventSetup. More... | |
std::vector< std::string > | patlabels_ |
Labels of the resolutions in PAT. More... | |
std::vector< KinematicResolutionProvider const * > | resolutions_ |
Handles to the EventSetup. More... | |
Definition at line 21 of file KinResolutionsLoader.h.
|
inline |
KinResolutionsLoader::KinResolutionsLoader | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector | iCollector | ||
) |
Constructor from a PSet.
Definition at line 8 of file KinResolutionsLoader.cc.
References edm::ConsumesCollector::esConsumes(), estokens_, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNamesForType(), label, patlabels_, resolutions_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
'true' if this there is at least one efficiency configured
Definition at line 30 of file KinResolutionsLoader.h.
References patlabels_.
Referenced by pat::PATElectronProducer::fillElectron(), pat::PATElectronProducer::fillElectron2(), pat::PATMuonProducer::fillMuon(), pat::PATCompositeCandidateProducer::produce(), pat::PATGenericParticleProducer::produce(), pat::PATMETProducer::produce(), pat::PATPFParticleProducer::produce(), pat::PATPhotonProducer::produce(), pat::PATTauProducer::produce(), pat::PATJetProducer::produce(), pat::PATElectronProducer::produce(), and pat::PATMuonProducer::produce().
|
static |
Method for documentation and validation of PSet.
Definition at line 33 of file KinResolutionsLoader.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptional(), edm::ParameterSetDescription::setAllowAnything(), and edm::ParameterDescriptionNode::setComment().
Referenced by pat::PATMETProducer::fillDescriptions(), pat::PATPhotonProducer::fillDescriptions(), pat::PATTauProducer::fillDescriptions(), pat::PATJetProducer::fillDescriptions(), pat::PATElectronProducer::fillDescriptions(), and pat::PATMuonProducer::fillDescriptions().
void KinResolutionsLoader::newEvent | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) |
To be called for each new event, reads in the EventSetup object.
Definition at line 27 of file KinResolutionsLoader.cc.
References estokens_, edm::EventSetup::getData(), mps_fire::i, dqmiodumpmetadata::n, patlabels_, and resolutions_.
Referenced by pat::PATCompositeCandidateProducer::produce(), pat::PATMETProducer::produce(), pat::PATGenericParticleProducer::produce(), pat::PATPFParticleProducer::produce(), pat::PATPhotonProducer::produce(), pat::PATJetProducer::produce(), pat::PATTauProducer::produce(), pat::PATElectronProducer::produce(), and pat::PATMuonProducer::produce().
void pat::helper::KinResolutionsLoader::setResolutions | ( | pat::PATObject< T > & | obj | ) | const |
Sets the efficiencies for this object, using the reference to the original objects.
Definition at line 52 of file KinResolutionsLoader.h.
References mps_fire::i, dqmiodumpmetadata::n, getGTfromDQMFile::obj, patlabels_, and resolutions_.
Referenced by pat::PATElectronProducer::fillElectron(), pat::PATElectronProducer::fillElectron2(), pat::PATMuonProducer::fillMuon(), pat::PATCompositeCandidateProducer::produce(), pat::PATGenericParticleProducer::produce(), pat::PATMETProducer::produce(), pat::PATPFParticleProducer::produce(), pat::PATPhotonProducer::produce(), pat::PATTauProducer::produce(), and pat::PATJetProducer::produce().
|
private |
Labels of the KinematicResolutionProvider in the EventSetup.
Definition at line 46 of file KinResolutionsLoader.h.
Referenced by KinResolutionsLoader(), and newEvent().
|
private |
Labels of the resolutions in PAT.
Definition at line 44 of file KinResolutionsLoader.h.
Referenced by enabled(), KinResolutionsLoader(), newEvent(), and setResolutions().
|
private |
Handles to the EventSetup.
Definition at line 48 of file KinResolutionsLoader.h.
Referenced by KinResolutionsLoader(), newEvent(), and setResolutions().