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 }

◆ ~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.

41  {
43  // these are different shower selections that can be enabled
44  desc.add<bool>("enableOneNominalShowers", true);
45  desc.add<bool>("enableTwoLooseShowers", false);
46  desc.add<unsigned>("nLooseShowers", 2);
47  desc.add<unsigned>("nNominalShowers", 1);
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 }

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

◆ produce()

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

Definition at line 14 of file L1TMuonEndCapShowerProducer.cc.

14  {
15  // Create pointers to output products
16  auto out_showers = std::make_unique<l1t::RegionalMuonShowerBxCollection>();
17  out_showers->clear();
18  out_showers->setBXRange(0, 0);
19 
21  iEvent.getByToken(tokenCSCShower_, showersH);
22  const CSCShowerDigiCollection& showers = *showersH.product();
23 
24  // ___________________________________________________________________________
25  // Run the sector processors
26 
28  for (int sector = emtf::MIN_TRIGSECTOR; sector <= emtf::MAX_TRIGSECTOR; ++sector) {
30  (sector - emtf::MIN_TRIGSECTOR);
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 }

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

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().

L1TMuonEndCapShowerProducer::sector_processors_shower_
emtf::sector_array< SectorProcessorShower > sector_processors_shower_
Definition: L1TMuonEndCapShowerProducer.h:38
edm::Handle::product
T const * product() const
Definition: Handle.h:70
emtf::MIN_TRIGSECTOR
constexpr int MIN_TRIGSECTOR
Definition: Common.h:49
MuonDigiCollection
A container for a generic type of digis indexed by some index, implemented with a map<IndexType,...
Definition: MuonDigiCollection.h:87
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
emtf::MAX_ENDCAP
constexpr int MAX_ENDCAP
Definition: Common.h:46
makeMuonMisalignmentScenario.endcap
endcap
Definition: makeMuonMisalignmentScenario.py:320
L1TMuonEndCapShowerProducer::config_
const edm::ParameterSet & config_
Definition: L1TMuonEndCapShowerProducer.h:36
edm::Handle
Definition: AssociativeIterator.h:50
emtf::MAX_TRIGSECTOR
constexpr int MAX_TRIGSECTOR
Definition: Common.h:50
L1TMuonEndCapShowerProducer::tokenCSCShower_
edm::EDGetToken tokenCSCShower_
Definition: L1TMuonEndCapShowerProducer.h:37
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
emtf::MIN_ENDCAP
constexpr int MIN_ENDCAP
Definition: Common.h:45
edm::ConfigurationDescriptions::setComment
void setComment(std::string const &value)
Definition: ConfigurationDescriptions.cc:48
iEvent
int iEvent
Definition: GenABIO.cc:224
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::InputTag
Definition: InputTag.h:15