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.

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 }

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

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

◆ produce()

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

Definition at line 56 of file HGCalBackendLayer1Producer.cc.

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, es);
65  e.put(std::move(be_cluster_output), backendProcess_->name());
66 }

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

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

edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
HGCalBackendLayer1Producer::triggerGeomToken_
edm::ESGetToken< HGCalTriggerGeometryBase, CaloGeometryRecord > triggerGeomToken_
Definition: HGCalBackendLayer1Producer.cc:32
edm::Handle
Definition: AssociativeIterator.h:50
edm::ParameterSet
Definition: ParameterSet.h:47
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
HGCalBackendLayer1Producer::triggerGeometry_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
Definition: HGCalBackendLayer1Producer.cc:31
get
#define get
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
HGCalBackendLayer1Producer::input_cell_
edm::EDGetToken input_cell_
Definition: HGCalBackendLayer1Producer.cc:30
edm::InputTag
Definition: InputTag.h:15
HGCalBackendLayer1Producer::backendProcess_
std::unique_ptr< HGCalBackendLayer1ProcessorBase > backendProcess_
Definition: HGCalBackendLayer1Producer.cc:34
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition: ParameterSet.cc:2128
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37