CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
pat::PATMETProducer Class Reference

Produces the pat::MET. More...

#include "PhysicsTools/PatAlgos/interface/PATMETProducer.h"

Inheritance diagram for pat::PATMETProducer:
edm::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 PATMETProducer (const edm::ParameterSet &iConfig)
 
virtual void produce (edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
 ~PATMETProducer ()
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
- Public Member Functions inherited from edm::stream::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

const reco::METCovMatrix getMETCovMatrix (const edm::Event &event, const edm::EventSetup &iSetup) const
 

Private Attributes

bool addEfficiencies_
 
bool addGenMET_
 
bool addMuonCorr_
 
bool addResolutions_
 
bool calculateMETSignificance_
 
pat::helper::EfficiencyLoader efficiencyLoader_
 
GreaterByEt< METeTComparator_
 
edm::EDGetTokenT< edm::View
< reco::GenMET > > 
genMETToken_
 
std::string jetResPhiType_
 
std::string jetResPtType_
 
std::string jetSFType_
 
edm::EDGetTokenT< edm::View
< reco::Jet > > 
jetToken_
 
std::vector< edm::EDGetTokenT
< edm::View< reco::Candidate > > > 
lepTokens_
 
metsig::METSignificancemetSigAlgo_
 
edm::InputTag metSrc_
 
edm::EDGetTokenT< edm::View
< reco::MET > > 
metToken_
 
edm::InputTag muonSrc_
 
edm::EDGetTokenT< edm::View
< reco::Candidate > > 
pfCandToken_
 
pat::helper::KinResolutionsLoader resolutionLoader_
 
edm::EDGetTokenT< double > rhoToken_
 
pat::PATUserDataHelper< pat::METuserDataHelper_
 
bool useUserData_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDProducerBase
typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Produces the pat::MET.

The PATMETProducer produces the analysis-level pat::MET starting from a collection of objects of METType.

Author
Steven Lowette
Version
Id:
PATMETProducer.h,v 1.10 2009/06/25 23:49:35 gpetrucc Exp

Definition at line 38 of file PATMETProducer.h.

Constructor & Destructor Documentation

PATMETProducer::PATMETProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 18 of file PATMETProducer.cc.

PATMETProducer::~PATMETProducer ( )

Definition at line 67 of file PATMETProducer.cc.

Member Function Documentation

void PATMETProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 135 of file PATMETProducer.cc.

const reco::METCovMatrix PATMETProducer::getMETCovMatrix ( const edm::Event event,
const edm::EventSetup iSetup 
) const
private

Definition at line 167 of file PATMETProducer.cc.

void PATMETProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overridevirtual

Implements edm::stream::EDProducerBase.

Definition at line 71 of file PATMETProducer.cc.

Member Data Documentation

bool pat::PATMETProducer::addEfficiencies_
private

Definition at line 63 of file PATMETProducer.h.

bool pat::PATMETProducer::addGenMET_
private

Definition at line 54 of file PATMETProducer.h.

bool pat::PATMETProducer::addMuonCorr_
private

Definition at line 58 of file PATMETProducer.h.

bool pat::PATMETProducer::addResolutions_
private

Definition at line 56 of file PATMETProducer.h.

bool pat::PATMETProducer::calculateMETSignificance_
private

Definition at line 70 of file PATMETProducer.h.

pat::helper::EfficiencyLoader pat::PATMETProducer::efficiencyLoader_
private

Definition at line 64 of file PATMETProducer.h.

GreaterByEt<MET> pat::PATMETProducer::eTComparator_
private

Definition at line 61 of file PATMETProducer.h.

edm::EDGetTokenT<edm::View<reco::GenMET> > pat::PATMETProducer::genMETToken_
private

Definition at line 55 of file PATMETProducer.h.

std::string pat::PATMETProducer::jetResPhiType_
private

Definition at line 77 of file PATMETProducer.h.

std::string pat::PATMETProducer::jetResPtType_
private

Definition at line 76 of file PATMETProducer.h.

std::string pat::PATMETProducer::jetSFType_
private

Definition at line 78 of file PATMETProducer.h.

edm::EDGetTokenT<edm::View<reco::Jet> > pat::PATMETProducer::jetToken_
private

Definition at line 72 of file PATMETProducer.h.

std::vector< edm::EDGetTokenT<edm::View<reco::Candidate> > > pat::PATMETProducer::lepTokens_
private

Definition at line 74 of file PATMETProducer.h.

metsig::METSignificance* pat::PATMETProducer::metSigAlgo_
private

Definition at line 71 of file PATMETProducer.h.

edm::InputTag pat::PATMETProducer::metSrc_
private

Definition at line 52 of file PATMETProducer.h.

edm::EDGetTokenT<edm::View<reco::MET> > pat::PATMETProducer::metToken_
private

Definition at line 53 of file PATMETProducer.h.

edm::InputTag pat::PATMETProducer::muonSrc_
private

Definition at line 59 of file PATMETProducer.h.

edm::EDGetTokenT<edm::View<reco::Candidate> > pat::PATMETProducer::pfCandToken_
private

Definition at line 73 of file PATMETProducer.h.

pat::helper::KinResolutionsLoader pat::PATMETProducer::resolutionLoader_
private

Definition at line 57 of file PATMETProducer.h.

edm::EDGetTokenT<double> pat::PATMETProducer::rhoToken_
private

Definition at line 75 of file PATMETProducer.h.

pat::PATUserDataHelper<pat::MET> pat::PATMETProducer::userDataHelper_
private

Definition at line 67 of file PATMETProducer.h.

bool pat::PATMETProducer::useUserData_
private

Definition at line 66 of file PATMETProducer.h.