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
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Private Attributes

TCMETAlgo tcMetAlgo_
 

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, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache 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.

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  }

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

◆ ~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.

31  {
32  auto tcmetcoll = std::make_unique<reco::METCollection>();
33  tcmetcoll->push_back(tcMetAlgo_.CalculateTCMET(event, setup));
34  event.put(std::move(tcmetcoll));
35  }

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

Member Data Documentation

◆ tcMetAlgo_

TCMETAlgo cms::TCMETProducer::tcMetAlgo_
private

Definition at line 41 of file TCMETProducer.h.

Referenced by produce(), and TCMETProducer().

cms::TCMETProducer::tcMetAlgo_
TCMETAlgo tcMetAlgo_
Definition: TCMETProducer.h:41
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet::exists
bool exists(std::string const &parameterName) const
checks if a parameter exists
Definition: ParameterSet.cc:681
TCMETAlgo::CalculateTCMET
reco::MET CalculateTCMET(edm::Event &event, const edm::EventSetup &setup)
Definition: TCMETAlgo.cc:169
TCMETAlgo::configure
void configure(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iConsumesCollector)
Definition: TCMETAlgo.cc:63
eostools.move
def move(src, dest)
Definition: eostools.py:511
SiStripOfflineCRack_cfg.alias
alias
Definition: SiStripOfflineCRack_cfg.py:128
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
event
Definition: event.py:1