L1TriggerConfig
L1TConfigProducers
src
L1TMuonEndCapForestOnlineProxy.cc
Go to the documentation of this file.
1
#include <iostream>
2
#include <fstream>
3
4
#include "
FWCore/Framework/interface/ModuleFactory.h
"
5
#include "
FWCore/Framework/interface/ESProducer.h
"
6
#include "
FWCore/Framework/interface/ESHandle.h
"
7
#include "
CondFormats/L1TObjects/interface/L1TMuonEndCapForest.h
"
8
#include "
CondFormats/DataRecord/interface/L1TMuonEndCapForestRcd.h
"
9
#include "
CondFormats/DataRecord/interface/L1TMuonEndCapForestO2ORcd.h
"
10
11
class
L1TMuonEndCapForestOnlineProxy
:
public
edm::ESProducer
{
12
private
:
13
edm::ESGetToken<L1TMuonEndCapForest, L1TMuonEndCapForestRcd>
baseSettings_token
;
14
15
public
:
16
std::unique_ptr<L1TMuonEndCapForest>
produce
(
const
L1TMuonEndCapForestO2ORcd
&
record
);
17
18
L1TMuonEndCapForestOnlineProxy
(
const
edm::ParameterSet
&);
19
~L1TMuonEndCapForestOnlineProxy
(
void
)
override
{}
20
};
21
22
L1TMuonEndCapForestOnlineProxy::L1TMuonEndCapForestOnlineProxy
(
const
edm::ParameterSet
& iConfig) :
edm
::
ESProducer
() {
23
setWhatProduced
(
this
).setConsumes(
baseSettings_token
);
24
}
25
26
std::unique_ptr<L1TMuonEndCapForest>
L1TMuonEndCapForestOnlineProxy::produce
(
const
L1TMuonEndCapForestO2ORcd
&
record
) {
27
const
L1TMuonEndCapForestRcd
& baseRcd =
record
.template getRecord<L1TMuonEndCapForestRcd>();
28
auto
const
& baseSettings = baseRcd.
get
(
baseSettings_token
);
29
30
return
std::make_unique<L1TMuonEndCapForest>(baseSettings);
31
}
32
33
//define this as a plug-in
34
DEFINE_FWK_EVENTSETUP_MODULE
(
L1TMuonEndCapForestOnlineProxy
);
L1TMuonEndCapForestOnlineProxy::baseSettings_token
edm::ESGetToken< L1TMuonEndCapForest, L1TMuonEndCapForestRcd > baseSettings_token
Definition:
L1TMuonEndCapForestOnlineProxy.cc:13
mixOne_cfi.ESProducer
ESProducer
Definition:
mixOne_cfi.py:33
ESHandle.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:138
ESProducer.h
GlobalPosition_Frontier_DevDB_cff.record
record
Definition:
GlobalPosition_Frontier_DevDB_cff.py:10
L1TMuonEndCapForestOnlineProxy::L1TMuonEndCapForestOnlineProxy
L1TMuonEndCapForestOnlineProxy(const edm::ParameterSet &)
Definition:
L1TMuonEndCapForestOnlineProxy.cc:22
L1TMuonEndCapForestRcd.h
L1TMuonEndCapForestRcd
Definition:
L1TMuonEndCapForestRcd.h:11
L1TMuonEndCapForest.h
L1TMuonEndCapForestO2ORcd.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::ESGetToken< L1TMuonEndCapForest, L1TMuonEndCapForestRcd >
L1TMuonEndCapForestOnlineProxy
Definition:
L1TMuonEndCapForestOnlineProxy.cc:11
ModuleFactory.h
L1TMuonEndCapForestOnlineProxy::produce
std::unique_ptr< L1TMuonEndCapForest > produce(const L1TMuonEndCapForestO2ORcd &record)
Definition:
L1TMuonEndCapForestOnlineProxy.cc:26
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
L1TMuonEndCapForestO2ORcd
Definition:
L1TMuonEndCapForestO2ORcd.h:9
edm::ESProducer
Definition:
ESProducer.h:101
edm::eventsetup::EventSetupRecordImplementation::get
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
Definition:
EventSetupRecordImplementation.h:74
L1TMuonEndCapForestOnlineProxy::~L1TMuonEndCapForestOnlineProxy
~L1TMuonEndCapForestOnlineProxy(void) override
Definition:
L1TMuonEndCapForestOnlineProxy.cc:19
Generated for CMSSW Reference Manual by
1.8.16