#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) | |
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< std::string > | eslabels_ |
Labels of the KinematicResolutionProvider in the EventSetup. More... | |
std::vector< edm::ESHandle< KinematicResolutionProvider > > | handles_ |
Handles to the EventSetup. More... | |
std::vector< std::string > | patlabels_ |
Labels of the resolutions in PAT. More... | |
Definition at line 18 of file KinResolutionsLoader.h.
|
inline |
KinResolutionsLoader::KinResolutionsLoader | ( | const edm::ParameterSet & | iConfig | ) |
Constructor from a PSet.
Definition at line 8 of file KinResolutionsLoader.cc.
References eslabels_, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNamesForType(), handles_, patlabels_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
'true' if this there is at least one efficiency configured
Definition at line 27 of file KinResolutionsLoader.h.
References patlabels_.
Referenced by pat::PATElectronProducer::fillElectron(), pat::PATElectronProducer::fillElectron2(), pat::PATMuonProducer::fillMuon(), pat::PATMETProducer::produce(), pat::PATCompositeCandidateProducer::produce(), pat::PATGenericParticleProducer::produce(), pat::PATPFParticleProducer::produce(), pat::PATJetProducer::produce(), pat::PATTauProducer::produce(), pat::PATPhotonProducer::produce(), pat::PATElectronProducer::produce(), and pat::PATMuonProducer::produce().
|
static |
Method for documentation and validation of PSet.
Definition at line 34 of file KinResolutionsLoader.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptional(), edm::ParameterSetDescription::setAllowAnything(), and edm::ParameterDescriptionNode::setComment().
Referenced by pat::PATMETProducer::fillDescriptions(), pat::PATJetProducer::fillDescriptions(), pat::PATTauProducer::fillDescriptions(), pat::PATElectronProducer::fillDescriptions(), pat::PATPhotonProducer::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 eslabels_, edm::EventSetup::get(), get, handles_, mps_fire::i, dqmiodumpmetadata::n, and patlabels_.
Referenced by pat::PATMETProducer::produce(), pat::PATCompositeCandidateProducer::produce(), pat::PATGenericParticleProducer::produce(), pat::PATPFParticleProducer::produce(), pat::PATJetProducer::produce(), pat::PATTauProducer::produce(), pat::PATElectronProducer::produce(), pat::PATPhotonProducer::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 49 of file KinResolutionsLoader.h.
References handles_, mps_fire::i, dqmiodumpmetadata::n, getGTfromDQMFile::obj, and patlabels_.
Referenced by pat::PATElectronProducer::fillElectron(), pat::PATElectronProducer::fillElectron2(), pat::PATMuonProducer::fillMuon(), pat::PATMETProducer::produce(), pat::PATCompositeCandidateProducer::produce(), pat::PATGenericParticleProducer::produce(), pat::PATPFParticleProducer::produce(), pat::PATJetProducer::produce(), pat::PATTauProducer::produce(), and pat::PATPhotonProducer::produce().
|
private |
Labels of the KinematicResolutionProvider in the EventSetup.
Definition at line 43 of file KinResolutionsLoader.h.
Referenced by KinResolutionsLoader(), and newEvent().
|
private |
Handles to the EventSetup.
Definition at line 45 of file KinResolutionsLoader.h.
Referenced by KinResolutionsLoader(), newEvent(), and setResolutions().
|
private |
Labels of the resolutions in PAT.
Definition at line 41 of file KinResolutionsLoader.h.
Referenced by enabled(), KinResolutionsLoader(), newEvent(), and setResolutions().