CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
HGCalTriggerBackendProcessor Class Reference

#include <HGCalTriggerBackendProcessor.h>

Public Types

typedef std::unique_ptr< HGCalTriggerBackendAlgorithmBasealgo_ptr
 

Public Member Functions

 HGCalTriggerBackendProcessor (const edm::ParameterSet &conf, edm::ConsumesCollector &&cc)
 
void putInEvent (edm::Event &evt)
 
void reset ()
 
void run (const l1t::HGCFETriggerDigiCollection &coll, const edm::EventSetup &es, edm::Event &e)
 
void setGeometry (const HGCalTriggerGeometryBase *const geom)
 
void setProduces (edm::stream::EDProducer<> &prod) const
 

Private Attributes

std::vector< algo_ptralgorithms_
 

Detailed Description

Definition at line 30 of file HGCalTriggerBackendProcessor.h.

Member Typedef Documentation

Definition at line 32 of file HGCalTriggerBackendProcessor.h.

Constructor & Destructor Documentation

HGCalTriggerBackendProcessor::HGCalTriggerBackendProcessor ( const edm::ParameterSet conf,
edm::ConsumesCollector &&  cc 
)

Definition at line 3 of file HGCalTriggerBackendProcessor.cc.

References CSCSegmentAlgorithmDF_cfi::algo_name, algorithms_, beamerCreator::create(), reco::get(), edm::ParameterSet::getParameterSetVector(), and AlCaHLTBitMon_QueryRunRegistry::string.

3  {
4  const std::vector<edm::ParameterSet>& be_confs = conf.getParameterSetVector("algorithms");
5  for (const auto& algo_cfg : be_confs) {
6  const std::string& algo_name = algo_cfg.getParameter<std::string>("AlgorithmName");
7  algorithms_.emplace_back(HGCalTriggerBackendAlgorithmFactory::get()->create(algo_name, algo_cfg, cc));
8  }
9 }
VParameterSet const & getParameterSetVector(std::string const &name) const
def create(alignables, pedeDump, additionalData, outputFile, config)
T get(const Candidate &c)
Definition: component.h:55

Member Function Documentation

void HGCalTriggerBackendProcessor::putInEvent ( edm::Event evt)

Definition at line 31 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, and algorithms_.

31  {
32  for (auto& algo : algorithms_) {
33  algo->putInEvent(evt);
34  }
35 }
void HGCalTriggerBackendProcessor::reset ( void  )

Definition at line 37 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, and algorithms_.

37  {
38  for (auto& algo : algorithms_) {
39  algo->reset();
40  }
41 }
void HGCalTriggerBackendProcessor::run ( const l1t::HGCFETriggerDigiCollection coll,
const edm::EventSetup es,
edm::Event e 
)

Definition at line 23 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, and algorithms_.

25  {
26  for (auto& algo : algorithms_) {
27  algo->run(coll, es, e);
28  }
29 }
void HGCalTriggerBackendProcessor::setGeometry ( const HGCalTriggerGeometryBase *const  geom)

Definition at line 11 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, and algorithms_.

11  {
12  for (const auto& algo : algorithms_) {
13  algo->setGeometry(geom);
14  }
15 }
void HGCalTriggerBackendProcessor::setProduces ( edm::stream::EDProducer<> &  prod) const

Definition at line 17 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, and algorithms_.

17  {
18  for (const auto& algo : algorithms_) {
19  algo->setProduces(prod);
20  }
21 }

Member Data Documentation

std::vector<algo_ptr> HGCalTriggerBackendProcessor::algorithms_
private