CondTools
Ecal
interface
EcalTPGWeightIdMapHandler.h
Go to the documentation of this file.
1
#ifndef ECAL_TPG_WEIGHTIDMAP_HANDLER_H
2
#define ECAL_TPG_WEIGHTIDMAP_HANDLER_H
3
4
#include <ctime>
5
#include <iostream>
6
#include <map>
7
#include <string>
8
#include <typeinfo>
9
#include <vector>
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/EcalTPGWeightIdMap.h
"
26
#include "
CondFormats/DataRecord/interface/EcalTPGWeightIdMapRcd.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
EcalTPGWeightIdMapHandler
:
public
popcon::PopConSourceHandler
<EcalTPGWeightIdMap> {
45
public
:
46
EcalTPGWeightIdMapHandler
(
edm::ParameterSet
const
&);
47
~EcalTPGWeightIdMapHandler
()
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
const
EcalTPGWeightIdMap
*
myweightIdMap
;
69
70
unsigned
int
m_firstRun
;
71
unsigned
int
m_lastRun
;
72
73
std::string
m_location
;
74
std::string
m_gentag
;
75
std::string
m_sid
;
76
std::string
m_user
;
77
std::string
m_pass
;
78
std::string
m_locationsource
;
79
std::string
m_name
;
80
unsigned
int
m_runnr
;
81
std::string
m_runtype
;
82
std::string
m_i_tag
;
83
std::string
m_file_type
;
84
std::string
m_file_name
;
85
int
m_i_version
;
86
unsigned
int
m_i_run_number
;
87
int
m_i_weightIdMap
;
88
};
89
}
// namespace popcon
90
#endif
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
PopConSourceHandler.h
Handle.h
EcalTPGWeightIdMap
Definition:
EcalTPGWeightIdMap.h:10
popcon::EcalTPGWeightIdMapHandler::m_pass
std::string m_pass
Definition:
EcalTPGWeightIdMapHandler.h:77
MessageLogger.h
popcon::EcalTPGWeightIdMapHandler::readxmlFile
void readxmlFile()
Definition:
EcalTPGWeightIdMapHandler.cc:272
popcon::EcalTPGWeightIdMapHandler::m_i_tag
std::string m_i_tag
Definition:
EcalTPGWeightIdMapHandler.h:82
popcon::EcalTPGWeightIdMapHandler::id
std::string id() const override
Definition:
EcalTPGWeightIdMapHandler.h:51
popcon::EcalTPGWeightIdMapHandler::m_locationsource
std::string m_locationsource
Definition:
EcalTPGWeightIdMapHandler.h:78
ESHandle.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
EBDetId.h
EEDetId.h
popcon::EcalTPGWeightIdMapHandler::m_name
std::string m_name
Definition:
EcalTPGWeightIdMapHandler.h:79
popcon::EcalTPGWeightIdMapHandler::getNewObjects
void getNewObjects() override
Definition:
EcalTPGWeightIdMapHandler.cc:42
popcon::EcalTPGWeightIdMapHandler::m_runnr
unsigned int m_runnr
Definition:
EcalTPGWeightIdMapHandler.h:80
popcon::EcalTPGWeightIdMapHandler::myweightIdMap
const EcalTPGWeightIdMap * myweightIdMap
Definition:
EcalTPGWeightIdMapHandler.h:68
popcon::EcalTPGWeightIdMapHandler::m_location
std::string m_location
Definition:
EcalTPGWeightIdMapHandler.h:73
MakerMacros.h
PoolDBOutputService.h
popcon::EcalTPGWeightIdMapHandler::writeFile
void writeFile(const char *inputFile)
Definition:
EcalTPGWeightIdMapHandler.cc:369
Service.h
popcon::EcalTPGWeightIdMapHandler::m_file_type
std::string m_file_type
Definition:
EcalTPGWeightIdMapHandler.h:83
Event
EcalTPGWeightIdMapRcd.h
popcon::EcalTPGWeightIdMapHandler
Definition:
EcalTPGWeightIdMapHandler.h:44
popcon::EcalTPGWeightIdMapHandler::m_user
std::string m_user
Definition:
EcalTPGWeightIdMapHandler.h:76
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
popcon::EcalTPGWeightIdMapHandler::m_runtype
std::string m_runtype
Definition:
EcalTPGWeightIdMapHandler.h:81
all_monitoring_types.h
edm::ParameterSet
Definition:
ParameterSet.h:47
Timestamp.h
Event.h
ParameterSet
Definition:
Functions.h:16
popcon::EcalTPGWeightIdMapHandler::to_string
std::string to_string(char value[])
Definition:
EcalTPGWeightIdMapHandler.h:62
popcon::EcalTPGWeightIdMapHandler::m_gentag
std::string m_gentag
Definition:
EcalTPGWeightIdMapHandler.h:74
popcon::EcalTPGWeightIdMapHandler::~EcalTPGWeightIdMapHandler
~EcalTPGWeightIdMapHandler() override
Definition:
EcalTPGWeightIdMapHandler.cc:40
popcon::EcalTPGWeightIdMapHandler::m_firstRun
unsigned int m_firstRun
Definition:
EcalTPGWeightIdMapHandler.h:70
dtResolutionTest_cfi.inputFile
inputFile
Definition:
dtResolutionTest_cfi.py:14
value
Definition:
value.py:1
popcon::EcalTPGWeightIdMapHandler::m_sid
std::string m_sid
Definition:
EcalTPGWeightIdMapHandler.h:75
popcon::EcalTPGWeightIdMapHandler::m_lastRun
unsigned int m_lastRun
Definition:
EcalTPGWeightIdMapHandler.h:71
popcon::EcalTPGWeightIdMapHandler::readFromFile
void readFromFile(const char *inputFile)
Definition:
EcalTPGWeightIdMapHandler.cc:331
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
popcon
Definition:
Exception.h:6
popcon::EcalTPGWeightIdMapHandler::m_file_name
std::string m_file_name
Definition:
EcalTPGWeightIdMapHandler.h:84
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
popcon::EcalTPGWeightIdMapHandler::readtxtFile
void readtxtFile()
Definition:
EcalTPGWeightIdMapHandler.cc:238
popcon::EcalTPGWeightIdMapHandler::EcalTPGWeightIdMapHandler
EcalTPGWeightIdMapHandler(edm::ParameterSet const &)
Definition:
EcalTPGWeightIdMapHandler.cc:22
ParameterSetfwd.h
EventSetup.h
Oracle.h
EventSetup
ParameterSet.h
EventSetupRecordKey.h
popcon::EcalTPGWeightIdMapHandler::m_i_run_number
unsigned int m_i_run_number
Definition:
EcalTPGWeightIdMapHandler.h:86
EcalCondDBInterface.h
popcon::EcalTPGWeightIdMapHandler::m_i_weightIdMap
int m_i_weightIdMap
Definition:
EcalTPGWeightIdMapHandler.h:87
EcalTPGWeightIdMap.h
popcon::EcalTPGWeightIdMapHandler::m_i_version
int m_i_version
Definition:
EcalTPGWeightIdMapHandler.h:85
popcon::EcalTPGWeightIdMapHandler::econn
EcalCondDBInterface * econn
Definition:
EcalTPGWeightIdMapHandler.h:59
Generated for CMSSW Reference Manual by
1.8.16