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
const
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)
23
: baseSettings_token(setWhatProduced(this).consumes()) {}
24
25
std::unique_ptr<L1TMuonOverlapParams>
L1TMuonOverlapParamsOnlineProxy::produce
(
26
const
L1TMuonOverlapParamsO2ORcd
&
record
) {
27
const
L1TMuonOverlapParamsRcd
& baseRcd =
record
.template getRecord<L1TMuonOverlapParamsRcd>();
28
auto
const
& baseSettings = baseRcd.
get
(
baseSettings_token
);
29
30
return
std::make_unique<L1TMuonOverlapParams>(baseSettings);
31
}
32
33
//define this as a plug-in
34
DEFINE_FWK_EVENTSETUP_MODULE
(
L1TMuonOverlapParamsOnlineProxy
);
L1TMuonOverlapParamsRcd
Definition:
L1TMuonOverlapParamsRcd.h:23
L1TMuonOverlapParamsO2ORcd
Definition:
L1TMuonOverlapParamsO2ORcd.h:25
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:25
L1TMuonOverlapParamsOnlineProxy::baseSettings_token
const edm::ESGetToken< L1TMuonOverlapParams, L1TMuonOverlapParamsRcd > baseSettings_token
Definition:
L1TMuonOverlapParamsOnlineProxy.cc:13
L1TMuonOverlapParams.h
L1TMuonOverlapParamsO2ORcd.h
L1TMuonOverlapParamsOnlineProxy::~L1TMuonOverlapParamsOnlineProxy
~L1TMuonOverlapParamsOnlineProxy(void) override
Definition:
L1TMuonOverlapParamsOnlineProxy.cc:19
edm::ParameterSet
Definition:
ParameterSet.h:47
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:104
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