CMS 3D CMS Logo

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

Public Member Functions

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

std::unique_ptr< HGCalBackendLayer2ProcessorBasebackendProcess_
 
edm::EDGetToken input_clusters_
 
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 19 of file HGCalBackendLayer2Producer.cc.

Constructor & Destructor Documentation

◆ HGCalBackendLayer2Producer()

HGCalBackendLayer2Producer::HGCalBackendLayer2Producer ( const edm::ParameterSet conf)

Definition at line 37 of file HGCalBackendLayer2Producer.cc.

38  : input_clusters_(consumes<l1t::HGCalClusterBxCollection>(conf.getParameter<edm::InputTag>("InputCluster"))) {
39  //setup Backend parameters
40  const edm::ParameterSet& beParamConfig = conf.getParameterSet("ProcessorParameters");
41  const std::string& beProcessorName = beParamConfig.getParameter<std::string>("ProcessorName");
42  backendProcess_ = std::unique_ptr<HGCalBackendLayer2ProcessorBase>{
43  HGCalBackendLayer2Factory::get()->create(beProcessorName, beParamConfig)};
44 
45  produces<l1t::HGCalMulticlusterBxCollection>(backendProcess_->name());
46 }

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

◆ ~HGCalBackendLayer2Producer()

HGCalBackendLayer2Producer::~HGCalBackendLayer2Producer ( )
inlineoverride

Definition at line 22 of file HGCalBackendLayer2Producer.cc.

22 {}

Member Function Documentation

◆ beginRun()

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

◆ produce()

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

Definition at line 53 of file HGCalBackendLayer2Producer.cc.

53  {
54  // Output collections
55  auto be_multicluster_output = std::make_unique<l1t::HGCalMulticlusterBxCollection>();
56 
57  // Input collections
59 
60  e.getByToken(input_clusters_, trigCluster2DBxColl);
61 
62  backendProcess_->run(trigCluster2DBxColl, *be_multicluster_output, es);
63 
64  e.put(std::move(be_multicluster_output), backendProcess_->name());
65 }

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

Member Data Documentation

◆ backendProcess_

std::unique_ptr<HGCalBackendLayer2ProcessorBase> HGCalBackendLayer2Producer::backendProcess_
private

Definition at line 32 of file HGCalBackendLayer2Producer.cc.

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

◆ input_clusters_

edm::EDGetToken HGCalBackendLayer2Producer::input_clusters_
private

Definition at line 29 of file HGCalBackendLayer2Producer.cc.

Referenced by produce().

◆ triggerGeometry_

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

Definition at line 30 of file HGCalBackendLayer2Producer.cc.

Referenced by beginRun().

edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
HGCalBackendLayer2Producer::triggerGeometry_
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
Definition: HGCalBackendLayer2Producer.cc:30
edm::Handle
Definition: AssociativeIterator.h:50
HGCalBackendLayer2Producer::input_clusters_
edm::EDGetToken input_clusters_
Definition: HGCalBackendLayer2Producer.cc:29
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
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
HGCalBackendLayer2Producer::backendProcess_
std::unique_ptr< HGCalBackendLayer2ProcessorBase > backendProcess_
Definition: HGCalBackendLayer2Producer.cc:32
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