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
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

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<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 49 of file L1TMuonCPPFDigiProducer.h.

Constructor & Destructor Documentation

◆ L1TMuonCPPFDigiProducer()

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::~L1TMuonCPPFDigiProducer ( )
override

Definition at line 14 of file L1TMuonCPPFDigiProducer.cc.

14 {}

Member Function Documentation

◆ beginStream()

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

Definition at line 31 of file L1TMuonCPPFDigiProducer.cc.

31 {}

◆ endStream()

void L1TMuonCPPFDigiProducer::endStream ( )
overrideprivate

Definition at line 33 of file L1TMuonCPPFDigiProducer.cc.

33 {}

◆ produce()

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

Definition at line 16 of file L1TMuonCPPFDigiProducer.cc.

References cppf_emulator_, iEvent, and eostools::move().

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

◆ cppf_emulator_

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

Definition at line 60 of file L1TMuonCPPFDigiProducer.h.

Referenced by produce().