CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
< SectorProcessorShower
sector_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 ( 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 }
emtf::sector_array< SectorProcessorShower > sector_processors_shower_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
L1TMuonEndCapShowerProducer::~L1TMuonEndCapShowerProducer ( )
override

Definition at line 12 of file L1TMuonEndCapShowerProducer.cc.

12 {}

Member Function Documentation

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

Definition at line 41 of file L1TMuonEndCapShowerProducer.cc.

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

41  {
43  // these are different shower selections that can be enabled
44  desc.add<bool>("enableOneNominalShowers", true);
45  desc.add<bool>("enableOneTightShowers", true);
46  desc.add<bool>("enableTwoLooseShowers", false);
47  desc.add<unsigned>("nLooseShowers", 2);
48  desc.add<unsigned>("nNominalShowers", 1);
49  desc.add<unsigned>("nTightShowers", 1);
50  desc.add<edm::InputTag>("CSCShowerInput", edm::InputTag("simCscTriggerPrimitiveDigis"));
51  descriptions.add("simEmtfShowersDef", desc);
52  descriptions.setComment("This is the generic cfi file for the EMTF shower producer");
53 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void L1TMuonEndCapShowerProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 14 of file L1TMuonEndCapShowerProducer.cc.

References config_, Reference_intrackfit_cff::endcap, edm::Event::getByToken(), emtf::MAX_ENDCAP, emtf::MAX_TRIGSECTOR, emtf::MIN_ENDCAP, emtf::MIN_TRIGSECTOR, eostools::move(), edm::Handle< T >::product(), edm::Event::put(), 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(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 }
constexpr int MIN_ENDCAP
Definition: Common.h:45
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:539
constexpr int MIN_TRIGSECTOR
Definition: Common.h:49
def move
Definition: eostools.py:511
emtf::sector_array< SectorProcessorShower > sector_processors_shower_
T const * product() const
Definition: Handle.h:70
constexpr int MAX_ENDCAP
Definition: Common.h:46
constexpr int MAX_TRIGSECTOR
Definition: Common.h:50
A container for a generic type of digis indexed by some index, implemented with a map&lt;IndexType...

Member Data Documentation

const edm::ParameterSet& L1TMuonEndCapShowerProducer::config_
private

Definition at line 36 of file L1TMuonEndCapShowerProducer.h.

Referenced by produce().

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

Definition at line 38 of file L1TMuonEndCapShowerProducer.h.

Referenced by produce().

edm::EDGetToken L1TMuonEndCapShowerProducer::tokenCSCShower_
private

Definition at line 37 of file L1TMuonEndCapShowerProducer.h.

Referenced by produce().