CMS 3D CMS Logo

TCMETProducer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: METProducers
4 // Class: TCMETProducer
5 //
6 //
7 
8 //____________________________________________________________________________||
10 
13 
15 
16 #include <cstring>
17 
18 //____________________________________________________________________________||
19 namespace cms {
20 
21  //____________________________________________________________________________||
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  }
29 
30  //____________________________________________________________________________||
32  auto tcmetcoll = std::make_unique<reco::METCollection>();
33  tcmetcoll->push_back(tcMetAlgo_.CalculateTCMET(event, setup));
34  event.put(std::move(tcmetcoll));
35  }
36 
37  //____________________________________________________________________________||
39 } // namespace cms
40 
41 //____________________________________________________________________________||
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
reco::MET CalculateTCMET(edm::Event &event, const edm::EventSetup &setup)
Definition: TCMETAlgo.cc:170
TCMETAlgo tcMetAlgo_
Definition: TCMETProducer.h:41
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
bool exists(std::string const &parameterName) const
checks if a parameter exists
TCMETProducer(const edm::ParameterSet &)
Namespace of DDCMS conversion namespace.
void produce(edm::Event &, const edm::EventSetup &) override
void configure(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iConsumesCollector)
Definition: TCMETAlgo.cc:62
def move(src, dest)
Definition: eostools.py:511
Definition: event.py:1