#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) const |
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::PATMuonProducer::produce(), pat::PATPFParticleProducer::produce(), pat::PATTauProducer::produce(), pat::PATJetProducer::produce(), pat::PATPhotonProducer::produce(), and pat::PATElectronProducer::produce().
|
static |
Method for documentation and validation of PSet.
Definition at line 36 of file KinResolutionsLoader.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptional(), edm::ParameterSetDescription::setAllowAnything(), and edm::ParameterDescriptionNode::setComment().
Referenced by pat::PATMETProducer::fillDescriptions(), pat::PATMuonProducer::fillDescriptions(), pat::PATTauProducer::fillDescriptions(), pat::PATJetProducer::fillDescriptions(), pat::PATPhotonProducer::fillDescriptions(), and pat::PATElectronProducer::fillDescriptions().
void KinResolutionsLoader::newEvent | ( | const edm::Event & | event, |
const edm::EventSetup & | setup | ||
) | const |
To be called for each new event, reads in the EventSetup object.
Definition at line 28 of file KinResolutionsLoader.cc.
References eslabels_, edm::EventSetup::get(), handles_, i, n, and patlabels_.
Referenced by pat::PATMETProducer::produce(), pat::PATCompositeCandidateProducer::produce(), pat::PATGenericParticleProducer::produce(), pat::PATPFParticleProducer::produce(), pat::PATMuonProducer::produce(), pat::PATTauProducer::produce(), pat::PATJetProducer::produce(), pat::PATPhotonProducer::produce(), and pat::PATElectronProducer::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_, i, n, patlabels_, and pat::PATObject< ObjectType >::setKinResolution().
Referenced by pat::PATElectronProducer::fillElectron(), pat::PATElectronProducer::fillElectron2(), pat::PATMuonProducer::fillMuon(), pat::PATMETProducer::produce(), pat::PATCompositeCandidateProducer::produce(), pat::PATGenericParticleProducer::produce(), pat::PATPFParticleProducer::produce(), pat::PATTauProducer::produce(), pat::PATJetProducer::produce(), and pat::PATPhotonProducer::produce().
|
private |
Labels of the KinematicResolutionProvider in the EventSetup.
Definition at line 42 of file KinResolutionsLoader.h.
Referenced by KinResolutionsLoader(), and newEvent().
|
mutableprivate |
Handles to the EventSetup.
Definition at line 44 of file KinResolutionsLoader.h.
Referenced by KinResolutionsLoader(), newEvent(), and setResolutions().
|
private |
Labels of the resolutions in PAT.
Definition at line 40 of file KinResolutionsLoader.h.
Referenced by enabled(), KinResolutionsLoader(), newEvent(), and setResolutions().