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

const edm::ParameterSetconfig_
 
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 4 of file L1TMuonEndCapShowerProducer.cc.

5  : config_(iConfig),
6  tokenCSCShower_(consumes<CSCShowerDigiCollection>(iConfig.getParameter<edm::InputTag>("CSCShowerInput"))),
8  // Make output products
9  produces<l1t::RegionalMuonShowerBxCollection>("EMTF");
10 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
emtf::sector_array< SectorProcessorShower > sector_processors_shower_

◆ ~L1TMuonEndCapShowerProducer()

L1TMuonEndCapShowerProducer::~L1TMuonEndCapShowerProducer ( )
override

Definition at line 12 of file L1TMuonEndCapShowerProducer.cc.

12 {}

Member Function Documentation

◆ fillDescriptions()

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

Definition at line 41 of file L1TMuonEndCapShowerProducer.cc.

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

41  {
43  // these are different shower selections that can be enabled
44  desc.add<bool>("enableOneLooseShower", true);
45  desc.add<bool>("enableOneNominalShower", true);
46  desc.add<bool>("enableOneTightShower", true);
47  desc.add<bool>("enableTwoLooseShowers", false);
48  desc.add<edm::InputTag>("CSCShowerInput", edm::InputTag("simCscTriggerPrimitiveDigis"));
49  descriptions.add("simEmtfShowersDef", desc);
50  descriptions.setComment("This is the generic cfi file for the EMTF shower producer");
51 }
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 14 of file L1TMuonEndCapShowerProducer.cc.

References config_, makeMuonMisalignmentScenario::endcap, iEvent, emtf::MAX_ENDCAP, emtf::MAX_TRIGSECTOR, emtf::MIN_ENDCAP, emtf::MIN_TRIGSECTOR, eostools::move(), edm::Handle< T >::product(), nano_mu_digi_cff::sector, sector_processors_shower_, and tokenCSCShower_.

14  {
15  // Create pointers to output products
16  auto out_showers = std::make_unique<l1t::RegionalMuonShowerBxCollection>();
17  out_showers->clear();
18  out_showers->setBXRange(-2, 2);
19 
21  iEvent.getByToken(tokenCSCShower_, showersH);
22  const CSCShowerDigiCollection& showers = *showersH.product();
23 
24  // ___________________________________________________________________________
25  // Run the sector processors
26 
31 
32  sector_processors_shower_.at(es).configure(config_, endcap, sector);
33  sector_processors_shower_.at(es).process(showers, *out_showers);
34  }
35  }
36 
37  // Fill the output products
38  iEvent.put(std::move(out_showers), "EMTF");
39 }
constexpr int MIN_ENDCAP
Definition: Common.h:45
T const * product() const
Definition: Handle.h:70
constexpr int MIN_TRIGSECTOR
Definition: Common.h:49
int iEvent
Definition: GenABIO.cc:224
emtf::sector_array< SectorProcessorShower > sector_processors_shower_
constexpr int MAX_ENDCAP
Definition: Common.h:46
constexpr int MAX_TRIGSECTOR
Definition: Common.h:50
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

◆ config_

const edm::ParameterSet& L1TMuonEndCapShowerProducer::config_
private

Definition at line 36 of file L1TMuonEndCapShowerProducer.h.

Referenced by produce().

◆ sector_processors_shower_

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

Definition at line 38 of file L1TMuonEndCapShowerProducer.h.

Referenced by produce().

◆ tokenCSCShower_

edm::EDGetToken L1TMuonEndCapShowerProducer::tokenCSCShower_
private

Definition at line 37 of file L1TMuonEndCapShowerProducer.h.

Referenced by produce().