test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
L1TriggerConfig
Utilities
src
L1TMuonEndcapWriter.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/L1TMuonEndCapParams.h
"
13
#include "
CondFormats/DataRecord/interface/L1TMuonEndcapParamsRcd.h
"
14
15
#include "
FWCore/ServiceRegistry/interface/Service.h
"
16
#include "
CondCore/DBOutputService/interface/PoolDBOutputService.h
"
17
18
class
L1TMuonEndcapWriter
:
public
edm::EDAnalyzer
{
19
public
:
20
virtual
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&);
21
22
explicit
L1TMuonEndcapWriter
(
const
edm::ParameterSet
&) : edm::
EDAnalyzer
(){}
23
virtual
~L1TMuonEndcapWriter
(
void
){}
24
};
25
26
void
L1TMuonEndcapWriter::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& evSetup){
27
28
edm::ESHandle<L1TMuonEndCapParams>
handle1;
29
evSetup.
get
<
L1TMuonEndcapParamsRcd
>().
get
( handle1 ) ;
30
boost::shared_ptr<L1TMuonEndCapParams> ptr1(
new
L1TMuonEndCapParams
(*(handle1.
product
())));
31
32
edm::Service<cond::service::PoolDBOutputService>
poolDb;
33
if
( poolDb.isAvailable() ){
34
cond::Time_t
firstSinceTime = poolDb->
beginOfTime
();
35
poolDb->writeOne(ptr1.get(),firstSinceTime,
"L1TMuonEndcapParamsRcd"
);
36
}
37
38
}
39
40
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
41
#include "
FWCore/Framework/interface/MakerMacros.h
"
42
#include "
FWCore/Framework/interface/ModuleFactory.h
"
43
44
DEFINE_FWK_MODULE
(
L1TMuonEndcapWriter
);
45
edm::EDAnalyzer::EDAnalyzer
EDAnalyzer()
Definition:
EDAnalyzer.cc:26
edm::Service< cond::service::PoolDBOutputService >
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
Event.h
MakerMacros.h
EventSetup.h
L1TMuonEndCapParams
Definition:
L1TMuonEndCapParams.h:15
L1TMuonEndcapWriter::L1TMuonEndcapWriter
L1TMuonEndcapWriter(const edm::ParameterSet &)
Definition:
L1TMuonEndcapWriter.cc:22
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:230
cond::Time_t
unsigned long long Time_t
Definition:
Time.h:16
PoolDBOutputService.h
edm::ESHandle
Definition:
DTSurvey.h:22
cond::service::PoolDBOutputService::beginOfTime
cond::Time_t beginOfTime() const
Definition:
PoolDBOutputService.cc:175
L1TMuonEndcapWriter::~L1TMuonEndcapWriter
virtual ~L1TMuonEndcapWriter(void)
Definition:
L1TMuonEndcapWriter.cc:23
ESHandle.h
L1TMuonEndcapWriter
Definition:
L1TMuonEndcapWriter.cc:18
Service.h
edm::EventSetup
Definition:
EventSetup.h:45
edm::EDAnalyzer
Definition:
EDAnalyzer.h:27
EDAnalyzer.h
L1TMuonEndcapParamsRcd
Definition:
L1TMuonEndcapParamsRcd.h:19
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:56
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
L1TMuonEndcapWriter::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
L1TMuonEndcapWriter.cc:26
L1TMuonEndcapParamsRcd.h
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
L1TMuonEndCapParams.h
edm::Event
Definition:
Event.h:65
ModuleDef.h
Generated for CMSSW Reference Manual by
1.8.5