Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
L1TriggerConfig
Utilities
src
L1TMuonOverlapParamsWriter.cc
Go to the documentation of this file.
1
#include <iomanip>
2
#include <iostream>
3
4
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
5
6
#include "
FWCore/Framework/interface/Event.h
"
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
9
#include "
FWCore/Framework/interface/EventSetup.h
"
10
#include "
FWCore/Framework/interface/ESHandle.h
"
11
12
#include "
CondFormats/L1TObjects/interface/L1TMuonOverlapParams.h
"
13
#include "
CondFormats/DataRecord/interface/L1TMuonOverlapParamsRcd.h
"
14
15
#include "
FWCore/ServiceRegistry/interface/Service.h
"
16
#include "
CondCore/DBOutputService/interface/PoolDBOutputService.h
"
17
18
class
L1TMuonOverlapParamsWriter
:
public
edm::EDAnalyzer
{
19
public
:
20
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
21
22
explicit
L1TMuonOverlapParamsWriter
(
const
edm::ParameterSet
&) : edm::
EDAnalyzer
() {}
23
~L1TMuonOverlapParamsWriter
(
void
)
override
{}
24
};
25
26
void
L1TMuonOverlapParamsWriter::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& evSetup) {
27
edm::ESHandle<L1TMuonOverlapParams>
handle1;
28
evSetup.
get
<
L1TMuonOverlapParamsRcd
>().
get
(handle1);
29
std::shared_ptr<L1TMuonOverlapParams> ptr1(
new
L1TMuonOverlapParams
(*(handle1.
product
())));
30
31
edm::Service<cond::service::PoolDBOutputService>
poolDb;
32
if
(poolDb.isAvailable()) {
33
cond::Time_t
firstSinceTime = poolDb->
beginOfTime
();
34
poolDb->writeOneIOV(*ptr1, firstSinceTime,
"L1TMuonOverlapPatternParamsRcd"
);
35
}
36
}
37
38
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
39
#include "
FWCore/Framework/interface/MakerMacros.h
"
40
#include "
FWCore/Framework/interface/ModuleFactory.h
"
41
42
DEFINE_FWK_MODULE
(
L1TMuonOverlapParamsWriter
);
L1TMuonOverlapParams.h
edm::EDAnalyzer::EDAnalyzer
EDAnalyzer()
Definition:
EDAnalyzer.cc:28
edm::Service< cond::service::PoolDBOutputService >
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
Event.h
L1TMuonOverlapParamsWriter::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
L1TMuonOverlapParamsWriter.cc:26
MakerMacros.h
EventSetup.h
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
cond::Time_t
unsigned long long Time_t
Definition:
Time.h:14
PoolDBOutputService.h
edm::ESHandle
Definition:
DTSurvey.h:22
cond::service::PoolDBOutputService::beginOfTime
cond::Time_t beginOfTime() const
Definition:
PoolDBOutputService.cc:258
ESHandle.h
Service.h
edm::EventSetup
Definition:
EventSetup.h:59
L1TMuonOverlapParams
Definition:
L1TMuonOverlapParams.h:14
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
EDAnalyzer.h
L1TMuonOverlapParamsWriter::~L1TMuonOverlapParamsWriter
~L1TMuonOverlapParamsWriter(void) override
Definition:
L1TMuonOverlapParamsWriter.cc:23
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
L1TMuonOverlapParamsRcd
Definition:
L1TMuonOverlapParamsRcd.h:23
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:82
edm::ParameterSet
Definition:
ParameterSet.h:47
ModuleFactory.h
L1TMuonOverlapParamsWriter
Definition:
L1TMuonOverlapParamsWriter.cc:18
L1TMuonOverlapParamsWriter::L1TMuonOverlapParamsWriter
L1TMuonOverlapParamsWriter(const edm::ParameterSet &)
Definition:
L1TMuonOverlapParamsWriter.cc:22
edm::Event
Definition:
Event.h:73
ModuleDef.h
L1TMuonOverlapParamsRcd.h
Generated for CMSSW Reference Manual by
1.8.5