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 
6 
8  cppf_emulator_(std::make_unique<EmulateCPPF>(iConfig, consumesCollector()))
9  //cppf_emulator_(new EmulateCPPF(iConfig, consumesCollector()))
10 {
11  // produces<l1t::CPPFDigiCollection>("rpcDigi");
12  produces<l1t::CPPFDigiCollection>("recHit");
13 }
14 
16 }
17 
19 
20  // Create pointers to the collections which will store the cppfDigis
21  // auto cppf_rpcDigi = std::make_unique<l1t::CPPFDigiCollection>();
22  auto cppf_recHit = std::make_unique<l1t::CPPFDigiCollection>();
23 
24  // Main CPPF emulation process: emulates CPPF output from RPCDigi or RecHit inputs
25  // From src/EmulateCPPF.cc
26  // cppf_emulator_->process(iEvent, iSetup, *cppf_rpcDigi, *cppf_recHit);
27  cppf_emulator_->process(iEvent, iSetup, *cppf_recHit);
28 
29  // Fill the output collections
30  // iEvent.put(std::move(cppf_rpcDigi), "rpcDigi");
31  iEvent.put(std::move(cppf_recHit), "recHit");
32 }
33 
35 }
36 
38 }
39 
40 // Define this as a plug-in
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:137
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
L1TMuonCPPFDigiProducer(const edm::ParameterSet &)
void produce(edm::Event &event, const edm::EventSetup &setup) override
void beginStream(edm::StreamID) override
int iEvent
Definition: GenABIO.cc:230
std::unique_ptr< EmulateCPPF > cppf_emulator_
def move(src, dest)
Definition: eostools.py:510