L1Trigger
L1THGCal
src
HGCalTriggerBackendProcessor.cc
Go to the documentation of this file.
1
#include "
L1Trigger/L1THGCal/interface/HGCalTriggerBackendProcessor.h
"
2
3
HGCalTriggerBackendProcessor::HGCalTriggerBackendProcessor
(
const
edm::ParameterSet
& conf,
edm::ConsumesCollector
&&
cc
) {
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
}
10
11
void
HGCalTriggerBackendProcessor::setGeometry
(
const
HGCalTriggerGeometryBase
*
const
geom
) {
12
for
(
const
auto
&
algo
:
algorithms_
) {
13
algo
->setGeometry(
geom
);
14
}
15
}
16
17
void
HGCalTriggerBackendProcessor::setProduces
(
edm::stream::EDProducer<>
&
prod
)
const
{
18
for
(
const
auto
&
algo
:
algorithms_
) {
19
algo
->setProduces(
prod
);
20
}
21
}
22
23
void
HGCalTriggerBackendProcessor::run
(
const
l1t::HGCFETriggerDigiCollection
& coll,
24
const
edm::EventSetup
& es,
25
edm::Event
&
e
) {
26
for
(
auto
&
algo
:
algorithms_
) {
27
algo
->run(coll, es,
e
);
28
}
29
}
30
31
void
HGCalTriggerBackendProcessor::putInEvent
(
edm::Event
& evt) {
32
for
(
auto
&
algo
:
algorithms_
) {
33
algo
->putInEvent(evt);
34
}
35
}
36
37
void
HGCalTriggerBackendProcessor::reset
() {
38
for
(
auto
&
algo
:
algorithms_
) {
39
algo
->reset();
40
}
41
}
HGCalTriggerGeometryBase
Definition:
HGCalTriggerGeometryBase.h:19
HGCalTriggerBackendProcessor::setProduces
void setProduces(edm::stream::EDProducer<> &prod) const
Definition:
HGCalTriggerBackendProcessor.cc:17
HGCalTriggerBackendProcessor.h
edm::SortedCollection
Definition:
SortedCollection.h:49
beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition:
beamerCreator.py:44
HLT_2018_cff.algo_name
algo_name
Definition:
HLT_2018_cff.py:7870
HGCalTriggerBackendProcessor::setGeometry
void setGeometry(const HGCalTriggerGeometryBase *const geom)
Definition:
HGCalTriggerBackendProcessor.cc:11
cmsdt::algo
algo
Definition:
constants.h:164
HGCalTriggerBackendProcessor::algorithms_
std::vector< algo_ptr > algorithms_
Definition:
HGCalTriggerBackendProcessor.h:55
dumpMFGeometry_cfg.prod
prod
Definition:
dumpMFGeometry_cfg.py:24
relativeConstraints.geom
geom
Definition:
relativeConstraints.py:72
HGCalTriggerBackendProcessor::reset
void reset()
Definition:
HGCalTriggerBackendProcessor.cc:37
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::stream::EDProducer<>
edm::EventSetup
Definition:
EventSetup.h:57
get
#define get
cc
HGCalTriggerBackendProcessor::putInEvent
void putInEvent(edm::Event &evt)
Definition:
HGCalTriggerBackendProcessor.cc:31
edm::ParameterSet::getParameterSetVector
VParameterSet const & getParameterSetVector(std::string const &name) const
Definition:
ParameterSet.cc:2153
edm::Event
Definition:
Event.h:73
HGCalTriggerBackendProcessor::run
void run(const l1t::HGCFETriggerDigiCollection &coll, const edm::EventSetup &es, edm::Event &e)
Definition:
HGCalTriggerBackendProcessor.cc:23
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
HGCalTriggerBackendProcessor::HGCalTriggerBackendProcessor
HGCalTriggerBackendProcessor(const edm::ParameterSet &conf, edm::ConsumesCollector &&cc)
Definition:
HGCalTriggerBackendProcessor.cc:3
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16