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
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

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<>
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 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
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:148
HGCalBackendLayer1Producer::triggerGeometry_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
Definition: HGCalBackendLayer1Producer.cc:31
get
#define get
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