CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HGCalTowerMapProducer Class Reference
Inheritance diagram for HGCalTowerMapProducer:
edm::stream::EDProducer<>

Public Member Functions

void beginRun (const edm::Run &, const edm::EventSetup &) override
 
 HGCalTowerMapProducer (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~HGCalTowerMapProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Private Attributes

edm::EDGetToken input_cell_
 
std::unique_ptr< HGCalTowerMapProcessorBasetowersMapProcess_
 
edm::ESHandle< HGCalTriggerGeometryBasetriggerGeometry_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Detailed Description

Definition at line 18 of file HGCalTowerMapProducer.cc.

Constructor & Destructor Documentation

◆ HGCalTowerMapProducer()

HGCalTowerMapProducer::HGCalTowerMapProducer ( const edm::ParameterSet conf)

Definition at line 36 of file HGCalTowerMapProducer.cc.

37  : input_cell_(consumes<l1t::HGCalTriggerCellBxCollection>(conf.getParameter<edm::InputTag>("InputTriggerCells"))) {
38  //setup TowerMap parameters
39  const edm::ParameterSet& towerMapParamConfig = conf.getParameterSet("ProcessorParameters");
40  const std::string& towerMapProcessorName = towerMapParamConfig.getParameter<std::string>("ProcessorName");
41  towersMapProcess_ = std::unique_ptr<HGCalTowerMapProcessorBase>{
42  HGCalTowerMapFactory::get()->create(towerMapProcessorName, towerMapParamConfig)};
43 
44  produces<l1t::HGCalTowerMapBxCollection>(towersMapProcess_->name());
45 }

References get, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), AlCaHLTBitMon_QueryRunRegistry::string, and towersMapProcess_.

◆ ~HGCalTowerMapProducer()

HGCalTowerMapProducer::~HGCalTowerMapProducer ( )
inlineoverride

Definition at line 21 of file HGCalTowerMapProducer.cc.

21 {}

Member Function Documentation

◆ beginRun()

void HGCalTowerMapProducer::beginRun ( const edm::Run ,
const edm::EventSetup es 
)
override

◆ produce()

void HGCalTowerMapProducer::produce ( edm::Event e,
const edm::EventSetup es 
)
override

Definition at line 52 of file HGCalTowerMapProducer.cc.

52  {
53  // Output collections
54  auto towersMap_output = std::make_unique<l1t::HGCalTowerMapBxCollection>();
55 
56  // Input collections
58 
59  e.getByToken(input_cell_, trigCellBxColl);
60 
61  towersMapProcess_->run(trigCellBxColl, *towersMap_output, es);
62 
63  e.put(std::move(towersMap_output), towersMapProcess_->name());
64 }

References MillePedeFileConverter_cfg::e, input_cell_, eostools::move(), and towersMapProcess_.

Member Data Documentation

◆ input_cell_

edm::EDGetToken HGCalTowerMapProducer::input_cell_
private

Definition at line 28 of file HGCalTowerMapProducer.cc.

Referenced by produce().

◆ towersMapProcess_

std::unique_ptr<HGCalTowerMapProcessorBase> HGCalTowerMapProducer::towersMapProcess_
private

Definition at line 31 of file HGCalTowerMapProducer.cc.

Referenced by beginRun(), HGCalTowerMapProducer(), and produce().

◆ triggerGeometry_

edm::ESHandle<HGCalTriggerGeometryBase> HGCalTowerMapProducer::triggerGeometry_
private

Definition at line 29 of file HGCalTowerMapProducer.cc.

Referenced by beginRun().

edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
edm::Handle
Definition: AssociativeIterator.h:50
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
HGCalTowerMapProducer::towersMapProcess_
std::unique_ptr< HGCalTowerMapProcessorBase > towersMapProcess_
Definition: HGCalTowerMapProducer.cc:31
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
get
#define get
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
eostools.move
def move(src, dest)
Definition: eostools.py:511
HGCalTowerMapProducer::input_cell_
edm::EDGetToken input_cell_
Definition: HGCalTowerMapProducer.cc:28
HGCalTowerMapProducer::triggerGeometry_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
Definition: HGCalTowerMapProducer.cc:29
edm::InputTag
Definition: InputTag.h:15
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition: ParameterSet.cc:2121
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37