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 | 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
< HGCalBackendLayer1ProcessorBase
backendProcess_
 
edm::EDGetToken input_cell_
 
edm::EDGetToken input_sums_
 
edm::ESHandle
< HGCalTriggerGeometryBase
triggerGeometry_
 
edm::ESGetToken
< HGCalTriggerGeometryBase,
CaloGeometryRecord
triggerGeomToken_
 

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 ( 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 }
edm::ESGetToken< HGCalTriggerGeometryBase, CaloGeometryRecord > triggerGeomToken_
std::unique_ptr< HGCalBackendLayer1ProcessorBase > backendProcess_
ParameterSet const & getParameterSet(std::string const &) const
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
#define get
HGCalBackendLayer1Producer::~HGCalBackendLayer1Producer ( )
inlineoverride

Definition at line 23 of file HGCalBackendLayer1Producer.cc.

23 {}

Member Function Documentation

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< class >::product(), triggerGeometry_, and triggerGeomToken_.

51  {
54 }
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
edm::ESGetToken< HGCalTriggerGeometryBase, CaloGeometryRecord > triggerGeomToken_
std::unique_ptr< HGCalBackendLayer1ProcessorBase > backendProcess_
T const * product() const
Definition: ESHandle.h:86
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:157
void HGCalBackendLayer1Producer::produce ( edm::Event e,
const edm::EventSetup es 
)
override

Definition at line 56 of file HGCalBackendLayer1Producer.cc.

References backendProcess_, edm::Event::getByToken(), input_cell_, eostools::move(), and edm::Event::put().

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 }
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
std::unique_ptr< HGCalBackendLayer1ProcessorBase > backendProcess_
def move
Definition: eostools.py:511

Member Data Documentation

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

Definition at line 34 of file HGCalBackendLayer1Producer.cc.

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

edm::EDGetToken HGCalBackendLayer1Producer::input_cell_
private

Definition at line 30 of file HGCalBackendLayer1Producer.cc.

Referenced by produce().

edm::EDGetToken HGCalBackendLayer1Producer::input_sums_
private

Definition at line 30 of file HGCalBackendLayer1Producer.cc.

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

Definition at line 31 of file HGCalBackendLayer1Producer.cc.

Referenced by beginRun().

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

Definition at line 32 of file HGCalBackendLayer1Producer.cc.

Referenced by beginRun().