CMS 3D CMS Logo

L1TMuonCPPFDigiProducer.cc
Go to the documentation of this file.
1 // Emulator that takes RPC hits and produces CPPFDigis to send to EMTF
2 // Author Alejandro Segura -- Universidad de los Andes
3 
5 
7  const edm::ParameterSet &iConfig)
8  : cppf_emulator_(
9  std::make_unique<EmulateCPPF>(iConfig, consumesCollector()))
10 // cppf_emulator_(new EmulateCPPF(iConfig, consumesCollector()))
11 {
12  // produces<l1t::CPPFDigiCollection>("rpcDigi");
13  produces<l1t::CPPFDigiCollection>("recHit");
14 }
15 
17 
19  const edm::EventSetup &iSetup) {
20 
21  // Create pointers to the collections which will store the cppfDigis
22  // auto cppf_rpcDigi = std::make_unique<l1t::CPPFDigiCollection>();
23  auto cppf_recHit = std::make_unique<l1t::CPPFDigiCollection>();
24 
25  // Main CPPF emulation process: emulates CPPF output from RPCDigi or RecHit
26  // inputs From src/EmulateCPPF.cc cppf_emulator_->process(iEvent, iSetup,
27  // *cppf_rpcDigi, *cppf_recHit);
28  cppf_emulator_->process(iEvent, iSetup, *cppf_recHit);
29 
30  // Fill the output collections
31  // iEvent.put(std::move(cppf_rpcDigi), "rpcDigi");
32  iEvent.put(std::move(cppf_recHit), "recHit");
33 }
34 
36 
38 
39 // Define this as a plug-in
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:125
L1TMuonCPPFDigiProducer(const edm::ParameterSet &)
void produce(edm::Event &event, const edm::EventSetup &setup) override
void beginStream(edm::StreamID) override
int iEvent
Definition: GenABIO.cc:224
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
std::unique_ptr< EmulateCPPF > cppf_emulator_
def move(src, dest)
Definition: eostools.py:511