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
edm::StreamID
Definition: StreamID.h:30
L1TMuonCPPFDigiProducer
Definition: L1TMuonCPPFDigiProducer.h:49
EmulateCPPF
Definition: EmulateCPPF.h:10
L1TMuonCPPFDigiProducer::endStream
void endStream() override
Definition: L1TMuonCPPFDigiProducer.cc:33
L1TMuonCPPFDigiProducer::beginStream
void beginStream(edm::StreamID) override
Definition: L1TMuonCPPFDigiProducer.cc:31
L1TMuonCPPFDigiProducer::L1TMuonCPPFDigiProducer
L1TMuonCPPFDigiProducer(const edm::ParameterSet &)
Definition: L1TMuonCPPFDigiProducer.cc:6
L1TMuonCPPFDigiProducer::produce
void produce(edm::Event &event, const edm::EventSetup &setup) override
Definition: L1TMuonCPPFDigiProducer.cc:16
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
L1TMuonCPPFDigiProducer::~L1TMuonCPPFDigiProducer
~L1TMuonCPPFDigiProducer() override
Definition: L1TMuonCPPFDigiProducer.cc:14
edm::ParameterSet
Definition: ParameterSet.h:36
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:57
L1TMuonCPPFDigiProducer::cppf_emulator_
std::unique_ptr< EmulateCPPF > cppf_emulator_
Definition: L1TMuonCPPFDigiProducer.h:60
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
edm::Event
Definition: Event.h:73
L1TMuonCPPFDigiProducer.h