CMS 3D CMS Logo

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

#include <TCMETProducer.h>

Inheritance diagram for cms::TCMETProducer:
edm::stream::EDProducer<>

Public Member Functions

void produce (edm::Event &, const edm::EventSetup &) override
 
 TCMETProducer (const edm::ParameterSet &)
 
 ~TCMETProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Private Attributes

TCMETAlgo tcMetAlgo_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T...>
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T...>
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 34 of file TCMETProducer.h.

Constructor & Destructor Documentation

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

Definition at line 22 of file TCMETProducer.cc.

References HLT_FULL_cff::alias, TCMETAlgo::configure(), edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, and tcMetAlgo_.

22  {
23  std::string alias = iConfig.exists("alias") ? iConfig.getParameter<std::string>("alias") : "";
24 
25  produces<reco::METCollection>().setBranchAlias(alias);
26 
27  tcMetAlgo_.configure(iConfig, consumesCollector());
28  }
TCMETAlgo tcMetAlgo_
Definition: TCMETProducer.h:41
bool exists(std::string const &parameterName) const
checks if a parameter exists
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
void configure(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iConsumesCollector)
Definition: TCMETAlgo.cc:62
cms::TCMETProducer::~TCMETProducer ( )
inlineoverride

Definition at line 37 of file TCMETProducer.h.

37 {}

Member Function Documentation

void TCMETProducer::produce ( edm::Event event,
const edm::EventSetup setup 
)
override

Definition at line 31 of file TCMETProducer.cc.

References TCMETAlgo::CalculateTCMET(), eostools::move(), and tcMetAlgo_.

31  {
32  auto tcmetcoll = std::make_unique<reco::METCollection>();
33  tcmetcoll->push_back(tcMetAlgo_.CalculateTCMET(event, setup));
34  event.put(std::move(tcmetcoll));
35  }
reco::MET CalculateTCMET(edm::Event &event, const edm::EventSetup &setup)
Definition: TCMETAlgo.cc:170
TCMETAlgo tcMetAlgo_
Definition: TCMETProducer.h:41
def move
Definition: eostools.py:511

Member Data Documentation

TCMETAlgo cms::TCMETProducer::tcMetAlgo_
private

Definition at line 41 of file TCMETProducer.h.

Referenced by produce(), and TCMETProducer().