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 hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () 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 7 of file L1TMuonCPPFDigiProducer.cc.

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

Definition at line 15 of file L1TMuonCPPFDigiProducer.cc.

15  {
16 }

Member Function Documentation

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

Definition at line 34 of file L1TMuonCPPFDigiProducer.cc.

34  {
35 }
void L1TMuonCPPFDigiProducer::endStream ( )
overrideprivate

Definition at line 37 of file L1TMuonCPPFDigiProducer.cc.

References DEFINE_FWK_MODULE.

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

Definition at line 18 of file L1TMuonCPPFDigiProducer.cc.

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

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

Member Data Documentation

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

Definition at line 62 of file L1TMuonCPPFDigiProducer.h.

Referenced by produce().