CondTools
Ecal
interface
EcalTPGTPModeHandler.h
Go to the documentation of this file.
1
#ifndef CONDTOOLS_ECAL_ECALTPGTPMODEHANDLER_H
2
#define CONDTOOLS_ECAL_ECALTPGTPMODEHANDLER_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/EcalTPGTPMode.h
"
26
#include "
CondFormats/DataRecord/interface/EcalTPGTPModeRcd.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/Provenance/interface/Timestamp.h
"
33
34
class
EcalElectronicsMapping
;
35
36
namespace
edm
{
37
class
ParameterSet
;
38
class
Event
;
39
class
EventSetup
;
40
}
// namespace edm
41
42
namespace
popcon
{
43
44
class
EcalTPGTPModeHandler
:
public
popcon::PopConSourceHandler
<EcalTPGTPMode> {
45
public
:
46
EcalTPGTPModeHandler
(
edm::ParameterSet
const
&);
47
~EcalTPGTPModeHandler
()
override
;
48
49
void
getNewObjects
()
override
;
50
51
std::string
id
()
const override
{
return
m_name
; }
52
53
void
readtxtFile
();
54
// void readxmlFile();
55
56
void
readFromFile
(
const
char
*
inputFile
);
57
void
writeFile
(
const
char
*
inputFile
);
58
59
EcalCondDBInterface
*
econn
;
60
61
private
:
62
std::string
to_string
(
char
value
[]) {
63
std::ostringstream streamOut;
64
streamOut <<
value
;
65
return
streamOut.str();
66
}
67
68
unsigned
int
m_firstRun
;
69
unsigned
int
m_lastRun
;
70
71
std::string
m_location
;
72
std::string
m_gentag
;
73
std::string
m_sid
;
74
std::string
m_user
;
75
std::string
m_pass
;
76
std::string
m_locationsource
;
77
std::string
m_name
;
78
unsigned
int
m_runnr
;
79
std::string
m_runtype
;
80
std::string
m_i_tag
;
81
std::string
m_file_type
;
82
std::string
m_file_name
;
83
int
m_i_version
;
84
unsigned
int
m_i_run_number
;
85
int
m_i_TPMode
;
86
};
87
}
// namespace popcon
88
#endif
popcon::EcalTPGTPModeHandler::m_i_run_number
unsigned int m_i_run_number
Definition:
EcalTPGTPModeHandler.h:84
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
EcalElectronicsMapping
Definition:
EcalElectronicsMapping.h:28
PopConSourceHandler.h
popcon::EcalTPGTPModeHandler::id
std::string id() const override
Definition:
EcalTPGTPModeHandler.h:51
Handle.h
popcon::EcalTPGTPModeHandler::m_file_name
std::string m_file_name
Definition:
EcalTPGTPModeHandler.h:82
popcon::EcalTPGTPModeHandler::m_sid
std::string m_sid
Definition:
EcalTPGTPModeHandler.h:73
MessageLogger.h
popcon::EcalTPGTPModeHandler::to_string
std::string to_string(char value[])
Definition:
EcalTPGTPModeHandler.h:62
ESHandle.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
EcalTPGTPModeRcd.h
popcon::EcalTPGTPModeHandler::readtxtFile
void readtxtFile()
Definition:
EcalTPGTPModeHandler.cc:296
popcon::EcalTPGTPModeHandler::m_locationsource
std::string m_locationsource
Definition:
EcalTPGTPModeHandler.h:76
popcon::EcalTPGTPModeHandler::m_pass
std::string m_pass
Definition:
EcalTPGTPModeHandler.h:75
popcon::EcalTPGTPModeHandler::m_user
std::string m_user
Definition:
EcalTPGTPModeHandler.h:74
MakerMacros.h
PoolDBOutputService.h
popcon::EcalTPGTPModeHandler::m_firstRun
unsigned int m_firstRun
Definition:
EcalTPGTPModeHandler.h:68
Service.h
EcalTPGTPMode.h
popcon::EcalTPGTPModeHandler::m_i_tag
std::string m_i_tag
Definition:
EcalTPGTPModeHandler.h:80
Event
popcon::EcalTPGTPModeHandler::m_lastRun
unsigned int m_lastRun
Definition:
EcalTPGTPModeHandler.h:69
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
popcon::EcalTPGTPModeHandler::econn
EcalCondDBInterface * econn
Definition:
EcalTPGTPModeHandler.h:59
all_monitoring_types.h
edm::ParameterSet
Definition:
ParameterSet.h:47
popcon::EcalTPGTPModeHandler::EcalTPGTPModeHandler
EcalTPGTPModeHandler(edm::ParameterSet const &)
Definition:
EcalTPGTPModeHandler.cc:26
Timestamp.h
Event.h
ParameterSet
Definition:
Functions.h:16
popcon::EcalTPGTPModeHandler::~EcalTPGTPModeHandler
~EcalTPGTPModeHandler() override
Definition:
EcalTPGTPModeHandler.cc:44
dtResolutionTest_cfi.inputFile
inputFile
Definition:
dtResolutionTest_cfi.py:14
value
Definition:
value.py:1
popcon::EcalTPGTPModeHandler::m_i_version
int m_i_version
Definition:
EcalTPGTPModeHandler.h:83
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
popcon
Definition:
Exception.h:6
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
ParameterSetfwd.h
EventSetup.h
popcon::EcalTPGTPModeHandler::m_file_type
std::string m_file_type
Definition:
EcalTPGTPModeHandler.h:81
popcon::EcalTPGTPModeHandler::readFromFile
void readFromFile(const char *inputFile)
Definition:
EcalTPGTPModeHandler.cc:339
Oracle.h
EventSetup
ParameterSet.h
popcon::EcalTPGTPModeHandler::m_i_TPMode
int m_i_TPMode
Definition:
EcalTPGTPModeHandler.h:85
popcon::EcalTPGTPModeHandler::m_runnr
unsigned int m_runnr
Definition:
EcalTPGTPModeHandler.h:78
popcon::EcalTPGTPModeHandler::writeFile
void writeFile(const char *inputFile)
Definition:
EcalTPGTPModeHandler.cc:377
EventSetupRecordKey.h
popcon::EcalTPGTPModeHandler
Definition:
EcalTPGTPModeHandler.h:44
popcon::EcalTPGTPModeHandler::m_gentag
std::string m_gentag
Definition:
EcalTPGTPModeHandler.h:72
popcon::EcalTPGTPModeHandler::m_location
std::string m_location
Definition:
EcalTPGTPModeHandler.h:71
popcon::EcalTPGTPModeHandler::getNewObjects
void getNewObjects() override
Definition:
EcalTPGTPModeHandler.cc:46
EcalCondDBInterface.h
popcon::EcalTPGTPModeHandler::m_runtype
std::string m_runtype
Definition:
EcalTPGTPModeHandler.h:79
popcon::EcalTPGTPModeHandler::m_name
std::string m_name
Definition:
EcalTPGTPModeHandler.h:77
Generated for CMSSW Reference Manual by
1.8.16