CondTools
Ecal
interface
EcalTPGPhysicsConstHandler.h
Go to the documentation of this file.
1
#ifndef ECAL_TPG_PHYSICSCONST_HANDLER_H
2
#define ECAL_TPG_PHYSICSCONST_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/EcalTPGPhysicsConst.h
"
26
#include "
CondFormats/DataRecord/interface/EcalTPGPhysicsConstRcd.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
EcalTPGPhysicsConstHandler
:
public
popcon::PopConSourceHandler
<EcalTPGPhysicsConst> {
45
public
:
46
EcalTPGPhysicsConstHandler
(
edm::ParameterSet
const
&);
47
~EcalTPGPhysicsConstHandler
()
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
EcalTPGPhysicsConst
*
m_physicsConst
;
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_physClin
;
83
int
m_i_physClut
;
84
int
m_i_physCfgr
;
85
};
86
}
// namespace popcon
87
#endif
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
PopConSourceHandler.h
Handle.h
MessageLogger.h
ESHandle.h
popcon::EcalTPGPhysicsConstHandler::writeFile
void writeFile(const char *inputFile)
Definition:
EcalTPGPhysicsConstHandler.cc:424
edm
HLT enums.
Definition:
AlignableModifier.h:19
EBDetId.h
EEDetId.h
popcon::EcalTPGPhysicsConstHandler::m_i_physClin
int m_i_physClin
Definition:
EcalTPGPhysicsConstHandler.h:82
popcon::EcalTPGPhysicsConstHandler::m_gentag
std::string m_gentag
Definition:
EcalTPGPhysicsConstHandler.h:71
popcon::EcalTPGPhysicsConstHandler::m_firstRun
unsigned int m_firstRun
Definition:
EcalTPGPhysicsConstHandler.h:67
popcon::EcalTPGPhysicsConstHandler::~EcalTPGPhysicsConstHandler
~EcalTPGPhysicsConstHandler() override
Definition:
EcalTPGPhysicsConstHandler.cc:30
popcon::EcalTPGPhysicsConstHandler::m_i_tag
std::string m_i_tag
Definition:
EcalTPGPhysicsConstHandler.h:79
MakerMacros.h
PoolDBOutputService.h
popcon::EcalTPGPhysicsConstHandler::m_i_version
int m_i_version
Definition:
EcalTPGPhysicsConstHandler.h:80
popcon::EcalTPGPhysicsConstHandler::EcalTPGPhysicsConstHandler
EcalTPGPhysicsConstHandler(edm::ParameterSet const &)
Definition:
EcalTPGPhysicsConstHandler.cc:14
popcon::EcalTPGPhysicsConstHandler::m_locationsource
std::string m_locationsource
Definition:
EcalTPGPhysicsConstHandler.h:75
popcon::EcalTPGPhysicsConstHandler::m_sid
std::string m_sid
Definition:
EcalTPGPhysicsConstHandler.h:72
Service.h
Event
popcon::EcalTPGPhysicsConstHandler::m_user
std::string m_user
Definition:
EcalTPGPhysicsConstHandler.h:73
popcon::EcalTPGPhysicsConstHandler
Definition:
EcalTPGPhysicsConstHandler.h:44
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
popcon::EcalTPGPhysicsConstHandler::m_lastRun
unsigned int m_lastRun
Definition:
EcalTPGPhysicsConstHandler.h:68
all_monitoring_types.h
edm::ParameterSet
Definition:
ParameterSet.h:36
Timestamp.h
Event.h
ParameterSet
Definition:
Functions.h:16
popcon::EcalTPGPhysicsConstHandler::to_string
std::string to_string(char value[])
Definition:
EcalTPGPhysicsConstHandler.h:59
popcon::EcalTPGPhysicsConstHandler::m_name
std::string m_name
Definition:
EcalTPGPhysicsConstHandler.h:76
dtResolutionTest_cfi.inputFile
inputFile
Definition:
dtResolutionTest_cfi.py:14
value
Definition:
value.py:1
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
popcon::EcalTPGPhysicsConstHandler::m_runnr
unsigned int m_runnr
Definition:
EcalTPGPhysicsConstHandler.h:77
popcon::EcalTPGPhysicsConstHandler::getNewObjects
void getNewObjects() override
Definition:
EcalTPGPhysicsConstHandler.cc:32
popcon::EcalTPGPhysicsConstHandler::readFromFile
void readFromFile(const char *inputFile)
Definition:
EcalTPGPhysicsConstHandler.cc:376
EcalTPGPhysicsConst
Definition:
EcalTPGPhysicsConst.h:9
popcon
Definition:
Exception.h:6
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
ParameterSetfwd.h
EventSetup.h
popcon::EcalTPGPhysicsConstHandler::m_i_run_number
unsigned int m_i_run_number
Definition:
EcalTPGPhysicsConstHandler.h:81
popcon::EcalTPGPhysicsConstHandler::econn
EcalCondDBInterface * econn
Definition:
EcalTPGPhysicsConstHandler.h:56
EcalTPGPhysicsConst.h
Oracle.h
popcon::EcalTPGPhysicsConstHandler::m_i_physClut
int m_i_physClut
Definition:
EcalTPGPhysicsConstHandler.h:83
popcon::EcalTPGPhysicsConstHandler::m_runtype
std::string m_runtype
Definition:
EcalTPGPhysicsConstHandler.h:78
EventSetup
ParameterSet.h
popcon::EcalTPGPhysicsConstHandler::id
std::string id() const override
Definition:
EcalTPGPhysicsConstHandler.h:51
EventSetupRecordKey.h
EcalTPGPhysicsConstRcd.h
popcon::EcalTPGPhysicsConstHandler::m_i_physCfgr
int m_i_physCfgr
Definition:
EcalTPGPhysicsConstHandler.h:84
popcon::EcalTPGPhysicsConstHandler::m_location
std::string m_location
Definition:
EcalTPGPhysicsConstHandler.h:70
EcalCondDBInterface.h
popcon::EcalTPGPhysicsConstHandler::m_pass
std::string m_pass
Definition:
EcalTPGPhysicsConstHandler.h:74
popcon::EcalTPGPhysicsConstHandler::m_physicsConst
const EcalTPGPhysicsConst * m_physicsConst
Definition:
EcalTPGPhysicsConstHandler.h:65
Generated for CMSSW Reference Manual by
1.8.16