L1TriggerConfig
L1TConfigProducers
src
L1TMuonOverlapParamsOnlineProxy.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
7
#include "
CondFormats/L1TObjects/interface/L1TMuonOverlapParams.h
"
8
#include "
CondFormats/DataRecord/interface/L1TMuonOverlapParamsRcd.h
"
9
#include "
CondFormats/DataRecord/interface/L1TMuonOverlapParamsO2ORcd.h
"
10
11
class
L1TMuonOverlapParamsOnlineProxy
:
public
edm::ESProducer
{
12
private
:
13
edm::ESGetToken<L1TMuonOverlapParams, L1TMuonOverlapParamsRcd>
baseSettings_token
;
14
15
public
:
16
std::unique_ptr<L1TMuonOverlapParams>
produce
(
const
L1TMuonOverlapParamsO2ORcd
&
record
);
17
18
L1TMuonOverlapParamsOnlineProxy
(
const
edm::ParameterSet
&);
19
~L1TMuonOverlapParamsOnlineProxy
(
void
)
override
{}
20
};
21
22
L1TMuonOverlapParamsOnlineProxy::L1TMuonOverlapParamsOnlineProxy
(
const
edm::ParameterSet
& iConfig) :
edm
::
ESProducer
() {
23
setWhatProduced
(
this
).setConsumes(
baseSettings_token
);
24
}
25
26
std::unique_ptr<L1TMuonOverlapParams>
L1TMuonOverlapParamsOnlineProxy::produce
(
27
const
L1TMuonOverlapParamsO2ORcd
&
record
) {
28
const
L1TMuonOverlapParamsRcd
& baseRcd =
record
.template getRecord<L1TMuonOverlapParamsRcd>();
29
auto
const
& baseSettings = baseRcd.
get
(
baseSettings_token
);
30
31
return
std::make_unique<L1TMuonOverlapParams>(baseSettings);
32
}
33
34
//define this as a plug-in
35
DEFINE_FWK_EVENTSETUP_MODULE
(
L1TMuonOverlapParamsOnlineProxy
);
L1TMuonOverlapParamsOnlineProxy::baseSettings_token
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > baseSettings_token
Definition:
L1TMuonOverlapParamsOnlineProxy.cc:13
L1TMuonOverlapParamsRcd
Definition:
L1TMuonOverlapParamsRcd.h:23
mixOne_cfi.ESProducer
ESProducer
Definition:
mixOne_cfi.py:33
L1TMuonOverlapParamsO2ORcd
Definition:
L1TMuonOverlapParamsO2ORcd.h:25
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
L1TMuonOverlapParamsOnlineProxy::L1TMuonOverlapParamsOnlineProxy
L1TMuonOverlapParamsOnlineProxy(const edm::ParameterSet &)
Definition:
L1TMuonOverlapParamsOnlineProxy.cc:22
L1TMuonOverlapParamsOnlineProxy::produce
std::unique_ptr< L1TMuonOverlapParams > produce(const L1TMuonOverlapParamsO2ORcd &record)
Definition:
L1TMuonOverlapParamsOnlineProxy.cc:26
L1TMuonOverlapParams.h
L1TMuonOverlapParamsO2ORcd.h
L1TMuonOverlapParamsOnlineProxy::~L1TMuonOverlapParamsOnlineProxy
~L1TMuonOverlapParamsOnlineProxy(void) override
Definition:
L1TMuonOverlapParamsOnlineProxy.cc:19
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd >
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
edm::ESProducer
Definition:
ESProducer.h:101
edm::eventsetup::EventSetupRecordImplementation::get
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
Definition:
EventSetupRecordImplementation.h:74
L1TMuonOverlapParamsRcd.h
L1TMuonOverlapParamsOnlineProxy
Definition:
L1TMuonOverlapParamsOnlineProxy.cc:11
Generated for CMSSW Reference Manual by
1.8.16