CMS 3D CMS Logo

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

Public Member Functions

void beginRun (const edm::Run &, const edm::EventSetup &) override
 
 HGCalBackendLayer1Producer (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~HGCalBackendLayer1Producer () 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
 

Private Attributes

std::unique_ptr< HGCalBackendLayer1ProcessorBasebackendProcess_
 
edm::EDGetToken input_cell_
 
edm::EDGetToken input_sums_
 
edm::ESHandle< HGCalTriggerGeometryBasetriggerGeometry_
 
edm::ESGetToken< HGCalTriggerGeometryBase, CaloGeometryRecordtriggerGeomToken_
 

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 20 of file HGCalBackendLayer1Producer.cc.

Constructor & Destructor Documentation

◆ HGCalBackendLayer1Producer()

HGCalBackendLayer1Producer::HGCalBackendLayer1Producer ( const edm::ParameterSet conf)

Definition at line 39 of file HGCalBackendLayer1Producer.cc.

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

40  : input_cell_(consumes<l1t::HGCalTriggerCellBxCollection>(conf.getParameter<edm::InputTag>("InputTriggerCells"))),
41  triggerGeomToken_(esConsumes<HGCalTriggerGeometryBase, CaloGeometryRecord, edm::Transition::BeginRun>()) {
42  //setup Backend parameters
43  const edm::ParameterSet& beParamConfig = conf.getParameterSet("ProcessorParameters");
44  const std::string& beProcessorName = beParamConfig.getParameter<std::string>("ProcessorName");
45  backendProcess_ = std::unique_ptr<HGCalBackendLayer1ProcessorBase>{
46  HGCalBackendLayer1Factory::get()->create(beProcessorName, beParamConfig)};
47 
48  produces<l1t::HGCalClusterBxCollection>(backendProcess_->name());
49 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
ParameterSet const & getParameterSet(std::string const &) const
edm::ESGetToken< HGCalTriggerGeometryBase, CaloGeometryRecord > triggerGeomToken_
std::unique_ptr< HGCalBackendLayer1ProcessorBase > backendProcess_
#define get

◆ ~HGCalBackendLayer1Producer()

HGCalBackendLayer1Producer::~HGCalBackendLayer1Producer ( )
inlineoverride

Definition at line 23 of file HGCalBackendLayer1Producer.cc.

23 {}

Member Function Documentation

◆ beginRun()

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

Definition at line 51 of file HGCalBackendLayer1Producer.cc.

References backendProcess_, edm::EventSetup::getHandle(), edm::ESHandle< T >::product(), triggerGeometry_, and triggerGeomToken_.

51  {
54 }
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
T const * product() const
Definition: ESHandle.h:86
edm::ESGetToken< HGCalTriggerGeometryBase, CaloGeometryRecord > triggerGeomToken_
std::unique_ptr< HGCalBackendLayer1ProcessorBase > backendProcess_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:151

◆ produce()

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

Definition at line 56 of file HGCalBackendLayer1Producer.cc.

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

56  {
57  // Output collections
58  auto be_cluster_output = std::make_unique<l1t::HGCalClusterBxCollection>();
59 
60  // Input collections
62 
63  e.getByToken(input_cell_, trigCellBxColl);
64  backendProcess_->run(trigCellBxColl, *be_cluster_output);
65  e.put(std::move(be_cluster_output), backendProcess_->name());
66 }
std::unique_ptr< HGCalBackendLayer1ProcessorBase > backendProcess_
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

◆ backendProcess_

std::unique_ptr<HGCalBackendLayer1ProcessorBase> HGCalBackendLayer1Producer::backendProcess_
private

Definition at line 34 of file HGCalBackendLayer1Producer.cc.

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

◆ input_cell_

edm::EDGetToken HGCalBackendLayer1Producer::input_cell_
private

Definition at line 30 of file HGCalBackendLayer1Producer.cc.

Referenced by produce().

◆ input_sums_

edm::EDGetToken HGCalBackendLayer1Producer::input_sums_
private

Definition at line 30 of file HGCalBackendLayer1Producer.cc.

◆ triggerGeometry_

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

Definition at line 31 of file HGCalBackendLayer1Producer.cc.

Referenced by beginRun().

◆ triggerGeomToken_

edm::ESGetToken<HGCalTriggerGeometryBase, CaloGeometryRecord> HGCalBackendLayer1Producer::triggerGeomToken_
private

Definition at line 32 of file HGCalBackendLayer1Producer.cc.

Referenced by beginRun().