CondTools
Ecal
interface
EcalTPGLinConstHandler.h
Go to the documentation of this file.
1
#ifndef ECAL_TPG_LINCONST_HANDLER_H
2
#define ECAL_TPG_LINCONST_HANDLER_H
3
4
#include <vector>
5
#include <typeinfo>
6
#include <string>
7
#include <map>
8
#include <iostream>
9
#include <ctime>
10
11
#include "
CondCore/PopCon/interface/PopConSourceHandler.h
"
12
#include "
FWCore/ParameterSet/interface/ParameterSetfwd.h
"
13
14
#include "
FWCore/ServiceRegistry/interface/Service.h
"
15
#include "
CondCore/DBOutputService/interface/PoolDBOutputService.h
"
16
#include "
FWCore/Framework/interface/ESHandle.h
"
17
#include "
FWCore/Framework/interface/Event.h
"
18
#include "
FWCore/Framework/interface/MakerMacros.h
"
19
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
20
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
21
#include "
DataFormats/Common/interface/Handle.h
"
22
#include "
FWCore/Framework/interface/EventSetup.h
"
23
#include "
FWCore/Framework/interface/EventSetupRecordKey.h
"
24
25
#include "
CondFormats/EcalObjects/interface/EcalTPGLinearizationConst.h
"
26
#include "
CondFormats/DataRecord/interface/EcalTPGLinearizationConstRcd.h
"
27
28
#include "
OnlineDB/EcalCondDB/interface/all_monitoring_types.h
"
29
#include "
OnlineDB/Oracle/interface/Oracle.h
"
30
#include "
OnlineDB/EcalCondDB/interface/EcalCondDBInterface.h
"
31
32
#include "
DataFormats/EcalDetId/interface/EEDetId.h
"
33
#include "
DataFormats/EcalDetId/interface/EBDetId.h
"
34
#include "
DataFormats/Provenance/interface/Timestamp.h
"
35
36
namespace
edm
{
37
class
ParameterSet
;
38
class
Event
;
39
class
EventSetup
;
40
}
// namespace edm
41
42
namespace
popcon
{
43
44
class
EcalTPGLinConstHandler
:
public
popcon::PopConSourceHandler
<EcalTPGLinearizationConst> {
45
public
:
46
EcalTPGLinConstHandler
(
edm::ParameterSet
const
&);
47
~EcalTPGLinConstHandler
()
override
;
48
49
void
getNewObjects
()
override
;
50
51
std::string
id
()
const override
{
return
m_name
; }
52
53
void
readFromFile
(
const
char
*
inputFile
);
54
void
writeFile
(
const
char
*
inputFile
);
55
56
EcalCondDBInterface
*
econn
;
57
58
private
:
59
std::string
to_string
(
char
value
[]) {
60
std::ostringstream streamOut;
61
streamOut <<
value
;
62
return
streamOut.str();
63
}
64
65
const
EcalTPGLinearizationConst
*
m_linearizationConst
;
66
67
unsigned
int
m_firstRun
;
68
unsigned
int
m_lastRun
;
69
70
std::string
m_location
;
71
std::string
m_gentag
;
72
std::string
m_sid
;
73
std::string
m_user
;
74
std::string
m_pass
;
75
std::string
m_locationsource
;
76
std::string
m_name
;
77
unsigned
int
m_runnr
;
78
std::string
m_runtype
;
79
std::string
m_i_tag
;
80
int
m_i_version
;
81
unsigned
int
m_i_run_number
;
82
int
m_i_lin
;
83
};
84
}
// namespace popcon
85
#endif
EcalCondDBInterface.h
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
MessageLogger.h
popcon::EcalTPGLinConstHandler::id
std::string id() const override
Definition:
EcalTPGLinConstHandler.h:51
popcon::EcalTPGLinConstHandler::m_runnr
unsigned int m_runnr
Definition:
EcalTPGLinConstHandler.h:77
ParameterSet
Definition:
Functions.h:16
popcon::EcalTPGLinConstHandler::m_pass
std::string m_pass
Definition:
EcalTPGLinConstHandler.h:74
Event.h
popcon::EcalTPGLinConstHandler::to_string
std::string to_string(char value[])
Definition:
EcalTPGLinConstHandler.h:59
popcon::EcalTPGLinConstHandler::m_lastRun
unsigned int m_lastRun
Definition:
EcalTPGLinConstHandler.h:68
EventSetup.h
popcon::EcalTPGLinConstHandler::m_i_tag
std::string m_i_tag
Definition:
EcalTPGLinConstHandler.h:79
popcon
Definition:
Exception.h:6
popcon::EcalTPGLinConstHandler::m_i_version
int m_i_version
Definition:
EcalTPGLinConstHandler.h:80
popcon::EcalTPGLinConstHandler::getNewObjects
void getNewObjects() override
Definition:
EcalTPGLinConstHandler.cc:40
popcon::EcalTPGLinConstHandler::m_sid
std::string m_sid
Definition:
EcalTPGLinConstHandler.h:72
ParameterSetfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
popcon::EcalTPGLinConstHandler::m_location
std::string m_location
Definition:
EcalTPGLinConstHandler.h:70
Oracle.h
ParameterSet.h
popcon::EcalTPGLinConstHandler
Definition:
EcalTPGLinConstHandler.h:44
EventSetup
EventSetupRecordKey.h
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
PoolDBOutputService.h
popcon::EcalTPGLinConstHandler::m_user
std::string m_user
Definition:
EcalTPGLinConstHandler.h:73
popcon::EcalTPGLinConstHandler::m_linearizationConst
const EcalTPGLinearizationConst * m_linearizationConst
Definition:
EcalTPGLinConstHandler.h:65
ESHandle.h
Service.h
value
Definition:
value.py:1
popcon::EcalTPGLinConstHandler::m_i_lin
int m_i_lin
Definition:
EcalTPGLinConstHandler.h:82
Timestamp.h
popcon::EcalTPGLinConstHandler::m_name
std::string m_name
Definition:
EcalTPGLinConstHandler.h:76
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
popcon::EcalTPGLinConstHandler::readFromFile
void readFromFile(const char *inputFile)
Definition:
EcalTPGLinConstHandler.cc:263
popcon::EcalTPGLinConstHandler::m_i_run_number
unsigned int m_i_run_number
Definition:
EcalTPGLinConstHandler.h:81
EcalTPGLinearizationConstRcd.h
PopConSourceHandler.h
popcon::EcalTPGLinConstHandler::EcalTPGLinConstHandler
EcalTPGLinConstHandler(edm::ParameterSet const &)
Definition:
EcalTPGLinConstHandler.cc:22
popcon::EcalTPGLinConstHandler::m_locationsource
std::string m_locationsource
Definition:
EcalTPGLinConstHandler.h:75
Event
popcon::EcalTPGLinConstHandler::m_gentag
std::string m_gentag
Definition:
EcalTPGLinConstHandler.h:71
edm
HLT enums.
Definition:
AlignableModifier.h:19
popcon::EcalTPGLinConstHandler::writeFile
void writeFile(const char *inputFile)
Definition:
EcalTPGLinConstHandler.cc:301
popcon::EcalTPGLinConstHandler::m_firstRun
unsigned int m_firstRun
Definition:
EcalTPGLinConstHandler.h:67
EcalTPGLinearizationConst.h
edm::ParameterSet
Definition:
ParameterSet.h:47
EBDetId.h
EEDetId.h
popcon::EcalTPGLinConstHandler::econn
EcalCondDBInterface * econn
Definition:
EcalTPGLinConstHandler.h:56
MakerMacros.h
popcon::EcalTPGLinConstHandler::m_runtype
std::string m_runtype
Definition:
EcalTPGLinConstHandler.h:78
makeListRunsInFiles.inputFile
inputFile
Definition:
makeListRunsInFiles.py:112
EcalCondObjectContainer
Definition:
EcalCondObjectContainer.h:13
Handle.h
popcon::EcalTPGLinConstHandler::~EcalTPGLinConstHandler
~EcalTPGLinConstHandler() override
Definition:
EcalTPGLinConstHandler.cc:38
all_monitoring_types.h
Generated for CMSSW Reference Manual by
1.8.14