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 hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 

Private Attributes

std::unique_ptr< HGCalBackendLayer1ProcessorBasebackendProcess_
 
edm::EDGetToken input_cell_
 
edm::EDGetToken input_sums_
 
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 20 of file HGCalBackendLayer1Producer.cc.

Constructor & Destructor Documentation

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

Definition at line 40 of file HGCalBackendLayer1Producer.cc.

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

40  :
41 input_cell_(consumes<l1t::HGCalTriggerCellBxCollection>(conf.getParameter<edm::InputTag>("InputTriggerCells")))
42 {
43  //setup Backend parameters
44  const edm::ParameterSet& beParamConfig = conf.getParameterSet("ProcessorParameters");
45  const std::string& beProcessorName = beParamConfig.getParameter<std::string>("ProcessorName");
46  HGCalBackendLayer1ProcessorBase* beProc = HGCalBackendLayer1Factory::get()->create(beProcessorName, beParamConfig);
47  backendProcess_.reset(beProc);
48 
49  produces<l1t::HGCalClusterBxCollection>(backendProcess_->name());
50 }
T getParameter(std::string const &) const
std::unique_ptr< HGCalBackendLayer1ProcessorBase > backendProcess_
ParameterSet const & getParameterSet(std::string const &) const
T get(const Candidate &c)
Definition: component.h:55
HGCalBackendLayer1Producer::~HGCalBackendLayer1Producer ( )
inlineoverride

Definition at line 23 of file HGCalBackendLayer1Producer.cc.

References beginRun(), and produce().

23 { }

Member Function Documentation

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

Definition at line 52 of file HGCalBackendLayer1Producer.cc.

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

Referenced by ~HGCalBackendLayer1Producer().

53  {
56 }
edm::ESHandle< HGCalTriggerGeometryBase > triggerGeometry_
std::unique_ptr< HGCalBackendLayer1ProcessorBase > backendProcess_
T get() const
Definition: EventSetup.h:68
T const * product() const
Definition: ESHandle.h:84
void HGCalBackendLayer1Producer::produce ( edm::Event e,
const edm::EventSetup es 
)
override

Definition at line 58 of file HGCalBackendLayer1Producer.cc.

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

Referenced by ~HGCalBackendLayer1Producer().

58  {
59 
60  // Output collections
61  auto be_cluster_output = std::make_unique<l1t::HGCalClusterBxCollection>();
62 
63  // Input collections
65 
66  e.getByToken(input_cell_, trigCellBxColl);
67  backendProcess_->run(trigCellBxColl, *be_cluster_output, es);
68  e.put(std::move(be_cluster_output), backendProcess_->name());
69 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:137
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:579
std::unique_ptr< HGCalBackendLayer1ProcessorBase > backendProcess_
def move(src, dest)
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 31 of file HGCalBackendLayer1Producer.cc.

Referenced by produce().

edm::EDGetToken HGCalBackendLayer1Producer::input_sums_
private

Definition at line 31 of file HGCalBackendLayer1Producer.cc.

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

Definition at line 32 of file HGCalBackendLayer1Producer.cc.

Referenced by beginRun().