Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
L1TriggerConfig
Utilities
src
L1TGlobalPrescalesVetosWriter.cc
Go to the documentation of this file.
1
#include <iomanip>
2
#include <iostream>
3
4
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
5
#include "
FWCore/Framework/interface/Event.h
"
6
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
7
8
#include "
FWCore/Framework/interface/EventSetup.h
"
9
#include "
FWCore/Framework/interface/ESHandle.h
"
10
11
#include "
CondFormats/DataRecord/interface/L1TGlobalPrescalesVetosO2ORcd.h
"
12
#include "
CondFormats/L1TObjects/interface/L1TGlobalPrescalesVetos.h
"
13
14
#include "
FWCore/ServiceRegistry/interface/Service.h
"
15
#include "
CondCore/DBOutputService/interface/PoolDBOutputService.h
"
16
17
class
L1TGlobalPrescalesVetosWriter
:
public
edm::EDAnalyzer
{
18
public
:
19
virtual
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&);
20
21
explicit
L1TGlobalPrescalesVetosWriter
(
const
edm::ParameterSet
&) : edm::
EDAnalyzer
(){}
22
virtual
~L1TGlobalPrescalesVetosWriter
(
void
){}
23
};
24
25
void
L1TGlobalPrescalesVetosWriter::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& evSetup){
26
edm::ESHandle<L1TGlobalPrescalesVetos>
handle1;
27
evSetup.
get
<
L1TGlobalPrescalesVetosO2ORcd
>().
get
( handle1 ) ;
28
boost::shared_ptr<L1TGlobalPrescalesVetos> ptr1(
new
L1TGlobalPrescalesVetos
(*(handle1.
product
())));
29
30
edm::Service<cond::service::PoolDBOutputService>
poolDb;
31
if
( poolDb.isAvailable() ){
32
cond::Time_t
firstSinceTime = poolDb->
beginOfTime
();
33
poolDb->writeOne(ptr1.get(),firstSinceTime,
"L1TGlobalPrescalesVetosO2ORcd"
);
34
}
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
(
L1TGlobalPrescalesVetosWriter
);
43
PrescalesVetos_cff.L1TGlobalPrescalesVetos
tuple L1TGlobalPrescalesVetos
Definition:
PrescalesVetos_cff.py:14
edm::EDAnalyzer::EDAnalyzer
EDAnalyzer()
Definition:
EDAnalyzer.cc:26
edm::Service< cond::service::PoolDBOutputService >
L1TGlobalPrescalesVetosWriter::~L1TGlobalPrescalesVetosWriter
virtual ~L1TGlobalPrescalesVetosWriter(void)
Definition:
L1TGlobalPrescalesVetosWriter.cc:22
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
Event.h
MakerMacros.h
EventSetup.h
L1TGlobalPrescalesVetosWriter
Definition:
L1TGlobalPrescalesVetosWriter.cc:17
ParameterSet.h
L1TGlobalPrescalesVetosWriter::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
L1TGlobalPrescalesVetosWriter.cc:25
iEvent
int iEvent
Definition:
GenABIO.cc:230
cond::Time_t
unsigned long long Time_t
Definition:
Time.h:16
PoolDBOutputService.h
L1TGlobalPrescalesVetosO2ORcd.h
edm::ESHandle
Definition:
DTSurvey.h:22
cond::service::PoolDBOutputService::beginOfTime
cond::Time_t beginOfTime() const
Definition:
PoolDBOutputService.cc:175
ESHandle.h
Service.h
edm::EventSetup
Definition:
EventSetup.h:45
L1TGlobalPrescalesVetos.h
L1TGlobalPrescalesVetosWriter::L1TGlobalPrescalesVetosWriter
L1TGlobalPrescalesVetosWriter(const edm::ParameterSet &)
Definition:
L1TGlobalPrescalesVetosWriter.cc:21
edm::EDAnalyzer
Definition:
EDAnalyzer.h:27
L1TGlobalPrescalesVetosO2ORcd
Definition:
L1TGlobalPrescalesVetosO2ORcd.h:13
EDAnalyzer.h
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:56
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
edm::Event
Definition:
Event.h:65
ModuleDef.h
Generated for CMSSW Reference Manual by
1.8.5