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  : cppf_emulator_(std::make_unique<EmulateCPPF>(iConfig, consumesCollector()))
8 // cppf_emulator_(new EmulateCPPF(iConfig, consumesCollector()))
9 {
10  // produces<l1t::CPPFDigiCollection>("rpcDigi");
11  produces<l1t::CPPFDigiCollection>("recHit");
12 }
13 
15 
17  // Create pointers to the collections which will store the cppfDigis
18  // auto cppf_rpcDigi = std::make_unique<l1t::CPPFDigiCollection>();
19  auto cppf_recHit = std::make_unique<l1t::CPPFDigiCollection>();
20 
21  // Main CPPF emulation process: emulates CPPF output from RPCDigi or RecHit
22  // inputs From src/EmulateCPPF.cc cppf_emulator_->process(iEvent, iSetup,
23  // *cppf_rpcDigi, *cppf_recHit);
24  cppf_emulator_->process(iEvent, iSetup, *cppf_recHit);
25 
26  // Fill the output collections
27  // iEvent.put(std::move(cppf_rpcDigi), "rpcDigi");
28  iEvent.put(std::move(cppf_recHit), "recHit");
29 }
30 
32 
34 
35 // Define this as a plug-in
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