CMS 3D CMS Logo

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::TCMETProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 22 of file TCMETProducer.cc.

References SiStripOfflineCRack_cfg::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  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
TCMETAlgo tcMetAlgo_
Definition: TCMETProducer.h:41
bool exists(std::string const &parameterName) const
checks if a parameter exists
void configure(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iConsumesCollector)
Definition: TCMETAlgo.cc:62

◆ ~TCMETProducer()

cms::TCMETProducer::~TCMETProducer ( )
inlineoverride

Definition at line 37 of file TCMETProducer.h.

37 {}

Member Function Documentation

◆ produce()

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

Definition at line 31 of file TCMETProducer.cc.

References TCMETAlgo::CalculateTCMET(), eostools::move(), singleTopDQM_cfi::setup, 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(src, dest)
Definition: eostools.py:511
Definition: event.py:1

Member Data Documentation

◆ tcMetAlgo_

TCMETAlgo cms::TCMETProducer::tcMetAlgo_
private

Definition at line 41 of file TCMETProducer.h.

Referenced by produce(), and TCMETProducer().