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
const
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)
23
: baseSettings_token(setWhatProduced(this).consumes()) {}
24
25
std::unique_ptr<L1TMuonEndCapForest>
L1TMuonEndCapForestOnlineProxy::produce
(
const
L1TMuonEndCapForestO2ORcd
&
record
) {
26
const
L1TMuonEndCapForestRcd
& baseRcd =
record
.template getRecord<L1TMuonEndCapForestRcd>();
27
auto
const
& baseSettings = baseRcd.
get
(
baseSettings_token
);
28
29
return
std::make_unique<L1TMuonEndCapForest>(baseSettings);
30
}
31
32
//define this as a plug-in
33
DEFINE_FWK_EVENTSETUP_MODULE
(
L1TMuonEndCapForestOnlineProxy
);
ESHandle.h
ESProducer.h
L1TMuonEndCapForestOnlineProxy::baseSettings_token
const edm::ESGetToken< L1TMuonEndCapForest, L1TMuonEndCapForestRcd > baseSettings_token
Definition:
L1TMuonEndCapForestOnlineProxy.cc:13
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:47
AlCaHarvesting_cff.record
record
Definition:
AlCaHarvesting_cff.py:42
edm::ESGetToken< L1TMuonEndCapForest, L1TMuonEndCapForestRcd >
L1TMuonEndCapForestOnlineProxy
Definition:
L1TMuonEndCapForestOnlineProxy.cc:11
ModuleFactory.h
L1TMuonEndCapForestOnlineProxy::produce
std::unique_ptr< L1TMuonEndCapForest > produce(const L1TMuonEndCapForestO2ORcd &record)
Definition:
L1TMuonEndCapForestOnlineProxy.cc:25
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
L1TMuonEndCapForestO2ORcd
Definition:
L1TMuonEndCapForestO2ORcd.h:9
edm::ESProducer
Definition:
ESProducer.h:104
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