Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
EcalTPGWeightIdMap.h
popcon::EcalTPGWeightIdMapHandler::~EcalTPGWeightIdMapHandler
~EcalTPGWeightIdMapHandler() override
Definition:
EcalTPGWeightIdMapHandler.cc:40
popcon::EcalTPGWeightIdMapHandler::m_i_tag
std::string m_i_tag
Definition:
EcalTPGWeightIdMapHandler.h:82
EcalCondDBInterface.h
popcon::EcalTPGWeightIdMapHandler::m_user
std::string m_user
Definition:
EcalTPGWeightIdMapHandler.h:76
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
popcon::EcalTPGWeightIdMapHandler::m_file_type
std::string m_file_type
Definition:
EcalTPGWeightIdMapHandler.h:83
popcon::EcalTPGWeightIdMapHandler::readFromFile
void readFromFile(const char *inputFile)
Definition:
EcalTPGWeightIdMapHandler.cc:331
popcon::EcalTPGWeightIdMapHandler::getNewObjects
void getNewObjects() override
Definition:
EcalTPGWeightIdMapHandler.cc:42
MessageLogger.h
EcalTPGWeightIdMapRcd.h
ParameterSet
Definition:
Functions.h:16
relativeConstraints.value
tuple value
Definition:
relativeConstraints.py:55
writeEcalDQMStatus.inputFile
tuple inputFile
Definition:
writeEcalDQMStatus.py:50
Event.h
popcon::EcalTPGWeightIdMapHandler::writeFile
void writeFile(const char *inputFile)
Definition:
EcalTPGWeightIdMapHandler.cc:369
MakerMacros.h
EventSetup.h
popcon::EcalTPGWeightIdMapHandler::myweightIdMap
const EcalTPGWeightIdMap * myweightIdMap
Definition:
EcalTPGWeightIdMapHandler.h:68
popcon::EcalTPGWeightIdMapHandler::m_sid
std::string m_sid
Definition:
EcalTPGWeightIdMapHandler.h:75
ParameterSetfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
Oracle.h
ParameterSet.h
EventSetup
EventSetupRecordKey.h
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
PoolDBOutputService.h
popcon::EcalTPGWeightIdMapHandler::to_string
std::string to_string(char value[])
Definition:
EcalTPGWeightIdMapHandler.h:62
popcon::EcalTPGWeightIdMapHandler
Definition:
EcalTPGWeightIdMapHandler.h:44
popcon::EcalTPGWeightIdMapHandler::m_lastRun
unsigned int m_lastRun
Definition:
EcalTPGWeightIdMapHandler.h:71
popcon::EcalTPGWeightIdMapHandler::id
std::string id() const override
Definition:
EcalTPGWeightIdMapHandler.h:51
ESHandle.h
Service.h
Timestamp.h
popcon::EcalTPGWeightIdMapHandler::readtxtFile
void readtxtFile()
Definition:
EcalTPGWeightIdMapHandler.cc:238
popcon::EcalTPGWeightIdMapHandler::m_i_version
int m_i_version
Definition:
EcalTPGWeightIdMapHandler.h:85
popcon::EcalTPGWeightIdMapHandler::econn
EcalCondDBInterface * econn
Definition:
EcalTPGWeightIdMapHandler.h:59
popcon::EcalTPGWeightIdMapHandler::EcalTPGWeightIdMapHandler
EcalTPGWeightIdMapHandler(edm::ParameterSet const &)
Definition:
EcalTPGWeightIdMapHandler.cc:22
popcon::EcalTPGWeightIdMapHandler::m_i_run_number
unsigned int m_i_run_number
Definition:
EcalTPGWeightIdMapHandler.h:86
PopConSourceHandler.h
popcon::EcalTPGWeightIdMapHandler::m_pass
std::string m_pass
Definition:
EcalTPGWeightIdMapHandler.h:77
popcon::EcalTPGWeightIdMapHandler::m_runnr
unsigned int m_runnr
Definition:
EcalTPGWeightIdMapHandler.h:80
Event
popcon::EcalTPGWeightIdMapHandler::readxmlFile
void readxmlFile()
Definition:
EcalTPGWeightIdMapHandler.cc:272
popcon::EcalTPGWeightIdMapHandler::m_runtype
std::string m_runtype
Definition:
EcalTPGWeightIdMapHandler.h:81
popcon::EcalTPGWeightIdMapHandler::m_i_weightIdMap
int m_i_weightIdMap
Definition:
EcalTPGWeightIdMapHandler.h:87
EcalTPGWeightIdMap
Definition:
EcalTPGWeightIdMap.h:10
popcon::EcalTPGWeightIdMapHandler::m_gentag
std::string m_gentag
Definition:
EcalTPGWeightIdMapHandler.h:74
popcon::EcalTPGWeightIdMapHandler::m_firstRun
unsigned int m_firstRun
Definition:
EcalTPGWeightIdMapHandler.h:70
edm::ParameterSet
Definition:
ParameterSet.h:47
EBDetId.h
EEDetId.h
popcon::EcalTPGWeightIdMapHandler::m_name
std::string m_name
Definition:
EcalTPGWeightIdMapHandler.h:79
popcon::EcalTPGWeightIdMapHandler::m_locationsource
std::string m_locationsource
Definition:
EcalTPGWeightIdMapHandler.h:78
popcon::EcalTPGWeightIdMapHandler::m_file_name
std::string m_file_name
Definition:
EcalTPGWeightIdMapHandler.h:84
popcon::EcalTPGWeightIdMapHandler::m_location
std::string m_location
Definition:
EcalTPGWeightIdMapHandler.h:73
Handle.h
all_monitoring_types.h
Generated for CMSSW Reference Manual by
1.8.5