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