Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
L1Trigger
L1TCalorimeter
plugins
L1TCaloParamsWriter.cc
Go to the documentation of this file.
1
// L1TCaloParamsWriter
2
//
3
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
6
7
#include "
FWCore/Framework/interface/EventSetup.h
"
8
#include "
FWCore/Framework/interface/ESHandle.h
"
9
10
#include "
CondFormats/DataRecord/interface/L1TCaloParamsRcd.h
"
11
#include "
CondFormats/L1TObjects/interface/CaloParams.h
"
12
13
#include "
FWCore/ServiceRegistry/interface/Service.h
"
14
#include "
CondCore/DBOutputService/interface/PoolDBOutputService.h
"
15
#include "
CondTools/L1Trigger/interface/DataWriter.h
"
16
17
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
18
#include "
FWCore/MessageLogger/interface/MessageDrop.h
"
19
20
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
21
#include "
FWCore/Framework/interface/MakerMacros.h
"
22
23
#include <iostream>
24
25
#include <iostream>
26
27
//
28
// class declaration
29
//
30
31
class
L1TCaloParamsWriter
:
public
edm::EDAnalyzer
{
32
public
:
33
explicit
L1TCaloParamsWriter
(
const
edm::ParameterSet
&) {}
34
virtual
~L1TCaloParamsWriter
() {}
35
virtual
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
36
37
};
38
39
40
41
void
L1TCaloParamsWriter::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& evSetup)
42
{
43
l1t::DataWriter
dataWriter;
44
std::string
token = dataWriter.
writePayload
(evSetup,
"L1TCaloParamsRcd@CaloParams"
);
45
if
( dataWriter.
updateIOV
(
"L1TCaloParamsRcd"
, token, 1,
false
) )
std::cout
<<
"IOV updated!"
<< std::endl;
46
std::cout
<<
"Payload token = "
<< token << std::endl;
47
}
48
49
DEFINE_FWK_MODULE
(
L1TCaloParamsWriter
);
50
51
52
MessageLogger.h
L1TCaloParamsWriter::L1TCaloParamsWriter
L1TCaloParamsWriter(const edm::ParameterSet &)
Definition:
L1TCaloParamsWriter.cc:33
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
L1TCaloParamsWriter::~L1TCaloParamsWriter
virtual ~L1TCaloParamsWriter()
Definition:
L1TCaloParamsWriter.cc:34
Event.h
MakerMacros.h
EventSetup.h
L1TCaloParamsWriter
Definition:
L1TCaloParamsWriter.cc:31
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ParameterSet.h
MessageDrop.h
iEvent
int iEvent
Definition:
GenABIO.cc:230
PoolDBOutputService.h
l1t::DataWriter::writePayload
std::string writePayload(const edm::EventSetup &setup, const std::string &recordType)
Definition:
DataWriter.cc:21
ESHandle.h
Service.h
edm::EventSetup
Definition:
EventSetup.h:45
edm::EDAnalyzer
Definition:
EDAnalyzer.h:27
EDAnalyzer.h
L1TCaloParamsWriter::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
L1TCaloParamsWriter.cc:41
L1TCaloParamsRcd.h
DataWriter.h
edm::ParameterSet
Definition:
ParameterSet.h:36
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
CaloParams.h
edm::Event
Definition:
Event.h:64
ModuleDef.h
l1t::DataWriter::updateIOV
bool updateIOV(const std::string &esRecordName, const std::string &payloadToken, edm::RunNumber_t sinceRun, bool logTransactions=false)
Definition:
DataWriter.cc:91
l1t::DataWriter
Definition:
DataWriter.h:36
Generated for CMSSW Reference Manual by
1.8.5