CMS 3D CMS Logo

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

#include <L1TMuonEndCapShowerProducer.h>

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

Public Member Functions

 L1TMuonEndCapShowerProducer (const edm::ParameterSet &)
 
 ~L1TMuonEndCapShowerProducer () 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
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Member Functions

void produce (edm::Event &, const edm::EventSetup &) override
 

Private Attributes

emtf::sector_array< SectorProcessorShowersector_processors_shower_
 
edm::EDGetToken tokenCSCShower_
 

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 25 of file L1TMuonEndCapShowerProducer.h.

Constructor & Destructor Documentation

◆ L1TMuonEndCapShowerProducer()

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

Definition at line 17 of file L1TMuonEndCapShowerProducer.cc.

References makeMuonMisalignmentScenario::endcap, nano_mu_digi_cff::sector, and sector_processors_shower_.

18  : tokenCSCShower_(consumes<CSCShowerDigiCollection>(iConfig.getParameter<edm::InputTag>("CSCShowerInput"))),
20  // Make output products
21  produces<l1t::RegionalMuonShowerBxCollection>("EMTF");
22 
23  forEachProcessor([&](const int endcap, const int sector, const int es) {
24  sector_processors_shower_.at(es).configure(iConfig, endcap, sector);
25  });
26 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
emtf::sector_array< SectorProcessorShower > sector_processors_shower_

◆ ~L1TMuonEndCapShowerProducer()

L1TMuonEndCapShowerProducer::~L1TMuonEndCapShowerProducer ( )
override

Definition at line 28 of file L1TMuonEndCapShowerProducer.cc.

28 {}

Member Function Documentation

◆ fillDescriptions()

void L1TMuonEndCapShowerProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 50 of file L1TMuonEndCapShowerProducer.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, ProducerED_cfi::InputTag, and edm::ConfigurationDescriptions::setComment().

50  {
52  // these are different shower selections that can be enabled
53  desc.add<bool>("enableOneLooseShower", true);
54  desc.add<bool>("enableOneNominalShower", true);
55  desc.add<bool>("enableOneTightShower", true);
56  desc.add<bool>("enableTwoLooseShowers", false);
57  desc.add<edm::InputTag>("CSCShowerInput", edm::InputTag("simCscTriggerPrimitiveDigis"));
58  descriptions.add("simEmtfShowersDef", desc);
59  descriptions.setComment("This is the generic cfi file for the EMTF shower producer");
60 }
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produce()

void L1TMuonEndCapShowerProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 30 of file L1TMuonEndCapShowerProducer.cc.

References makeMuonMisalignmentScenario::endcap, iEvent, eostools::move(), edm::Handle< T >::product(), nano_mu_digi_cff::sector, sector_processors_shower_, and tokenCSCShower_.

30  {
31  // Create pointers to output products
32  auto out_showers = std::make_unique<l1t::RegionalMuonShowerBxCollection>();
33  out_showers->clear();
34  out_showers->setBXRange(-2, 2);
35 
37  iEvent.getByToken(tokenCSCShower_, showersH);
38  const CSCShowerDigiCollection& showers = *showersH.product();
39 
40  // ___________________________________________________________________________
41  // Run the sector processors
42  forEachProcessor([&](const int endcap, const int sector, const int es) {
43  sector_processors_shower_.at(es).process(showers, *out_showers);
44  });
45 
46  // Fill the output products
47  iEvent.put(std::move(out_showers), "EMTF");
48 }
T const * product() const
Definition: Handle.h:70
int iEvent
Definition: GenABIO.cc:224
emtf::sector_array< SectorProcessorShower > sector_processors_shower_
def move(src, dest)
Definition: eostools.py:511
A container for a generic type of digis indexed by some index, implemented with a map<IndexType...

Member Data Documentation

◆ sector_processors_shower_

emtf::sector_array<SectorProcessorShower> L1TMuonEndCapShowerProducer::sector_processors_shower_
private

Definition at line 37 of file L1TMuonEndCapShowerProducer.h.

Referenced by L1TMuonEndCapShowerProducer(), and produce().

◆ tokenCSCShower_

edm::EDGetToken L1TMuonEndCapShowerProducer::tokenCSCShower_
private

Definition at line 36 of file L1TMuonEndCapShowerProducer.h.

Referenced by produce().