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 4 of file HGCalTriggerBackendProcessor.cc.

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

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

Member Function Documentation

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

Definition at line 38 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, and algorithms_.

38  {
39  for( auto& algo : algorithms_ ) {
40  algo->putInEvent(evt);
41  }
42 }
void HGCalTriggerBackendProcessor::reset ( void  )

Definition at line 44 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, and algorithms_.

44  {
45  for( auto& algo : algorithms_ ) {
46  algo->reset();
47  }
48 }
void HGCalTriggerBackendProcessor::run ( const l1t::HGCFETriggerDigiCollection coll,
const edm::EventSetup es,
edm::Event e 
)

Definition at line 29 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, and algorithms_.

32  {
33  for( auto& algo : algorithms_ ) {
34  algo->run(coll, es,e);
35  }
36 }
void HGCalTriggerBackendProcessor::setGeometry ( const HGCalTriggerGeometryBase *const  geom)

Definition at line 16 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, and algorithms_.

16  {
17  for( const auto& algo : algorithms_ ) {
18  algo->setGeometry(geom);
19  }
20 }
void HGCalTriggerBackendProcessor::setProduces ( edm::stream::EDProducer<> &  prod) const

Definition at line 23 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, and algorithms_.

23  {
24  for( const auto& algo : algorithms_ ) {
25  algo->setProduces(prod);
26  }
27 }

Member Data Documentation

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