CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
L1TMuonCPPFDigiProducer Class Reference

#include <L1TMuonCPPFDigiProducer.h>

Inheritance diagram for L1TMuonCPPFDigiProducer:
edm::stream::EDProducer<>

Public Member Functions

 L1TMuonCPPFDigiProducer (const edm::ParameterSet &)
 
 ~L1TMuonCPPFDigiProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Private Member Functions

void beginStream (edm::StreamID) override
 
void endStream () override
 
void produce (edm::Event &event, const edm::EventSetup &setup) override
 

Private Attributes

std::unique_ptr< EmulateCPPFcppf_emulator_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Detailed Description

Definition at line 49 of file L1TMuonCPPFDigiProducer.h.

Constructor & Destructor Documentation

L1TMuonCPPFDigiProducer::L1TMuonCPPFDigiProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 6 of file L1TMuonCPPFDigiProducer.cc.

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 }
std::unique_ptr< EmulateCPPF > cppf_emulator_
L1TMuonCPPFDigiProducer::~L1TMuonCPPFDigiProducer ( )
override

Definition at line 14 of file L1TMuonCPPFDigiProducer.cc.

14 {}

Member Function Documentation

void L1TMuonCPPFDigiProducer::beginStream ( edm::StreamID  iID)
overrideprivate

Definition at line 31 of file L1TMuonCPPFDigiProducer.cc.

31 {}
void L1TMuonCPPFDigiProducer::endStream ( )
overrideprivate

Definition at line 33 of file L1TMuonCPPFDigiProducer.cc.

References DEFINE_FWK_MODULE.

33 {}
void L1TMuonCPPFDigiProducer::produce ( edm::Event event,
const edm::EventSetup setup 
)
overrideprivate

Definition at line 16 of file L1TMuonCPPFDigiProducer.cc.

References cppf_emulator_, eostools::move(), and edm::Event::put().

16  {
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 }
int iEvent
Definition: GenABIO.cc:224
std::unique_ptr< EmulateCPPF > cppf_emulator_
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

std::unique_ptr<EmulateCPPF> L1TMuonCPPFDigiProducer::cppf_emulator_
private

Definition at line 60 of file L1TMuonCPPFDigiProducer.h.

Referenced by produce().