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.

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
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:170
TCMETAlgo::configure
void configure(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iConsumesCollector)
Definition: TCMETAlgo.cc:64
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
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