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)
 
void putInEvent (edm::Event &evt)
 
void reset ()
 
void run (const l1t::HGCFETriggerDigiCollection &coll, const edm::EventSetup &es)
 
void setGeometry (const HGCalTriggerGeometryBase *const geom)
 
void setProduces (edm::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)

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);
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 36 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, and algorithms_.

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

Definition at line 42 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, and algorithms_.

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

Definition at line 30 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, and algorithms_.

Referenced by setProduces().

30  {
31  for( auto& algo : algorithms_ ) {
32  algo->run(coll, es);
33  }
34 }
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::EDProducer prod) const

Definition at line 23 of file HGCalTriggerBackendProcessor.cc.

References patPFMETCorrections_cff::algo, algorithms_, and run().

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

Member Data Documentation

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