#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 fillDescription(), newEvent(), haddnano::obj, patlabels_, setResolutions(), and GeneralSetup::setup().
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(), pat::PATPhotonProducer::produce(), pat::PATElectronProducer::produce(), and pat::PATMuonProducer::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 enabled(), pat::PATMETProducer::fillDescriptions(), pat::PATTauProducer::fillDescriptions(), pat::PATJetProducer::fillDescriptions(), pat::PATPhotonProducer::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 28 of file KinResolutionsLoader.cc.
References eslabels_, edm::EventSetup::get(), handles_, mps_fire::i, gen::n, and patlabels_.
Referenced by enabled(), pat::PATMETProducer::produce(), pat::PATCompositeCandidateProducer::produce(), pat::PATGenericParticleProducer::produce(), pat::PATPFParticleProducer::produce(), pat::PATTauProducer::produce(), pat::PATJetProducer::produce(), pat::PATPhotonProducer::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 49 of file KinResolutionsLoader.h.
References handles_, mps_fire::i, gen::n, patlabels_, and pat::PATObject< ObjectType >::setKinResolution().
Referenced by enabled(), 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().
|
private |
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().