Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
CondTools
Ecal
interface
EcalTPGOddWeightIdMapHandler.h
Go to the documentation of this file.
1
#ifndef CONDTOOLS_ECAL_ECALTPGODDWEIGHTIDMAPHANDLER_H
2
#define CONDTOOLS_ECAL_ECALTPGODDWEIGHTIDMAPHANDLER_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/EcalTPGOddWeightIdMap.h
"
26
#include "
CondFormats/DataRecord/interface/EcalTPGOddWeightIdMapRcd.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
EcalTPGOddWeightIdMapHandler
:
public
popcon::PopConSourceHandler
<EcalTPGOddWeightIdMap> {
45
public
:
46
EcalTPGOddWeightIdMapHandler
(
edm::ParameterSet
const
&);
47
~EcalTPGOddWeightIdMapHandler
()
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
EcalTPGOddWeightIdMap
*
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_oddweightIdMap
;
88
};
89
}
// namespace popcon
90
#endif
popcon::EcalTPGOddWeightIdMapHandler::m_gentag
std::string m_gentag
Definition:
EcalTPGOddWeightIdMapHandler.h:74
popcon::EcalTPGOddWeightIdMapHandler::m_pass
std::string m_pass
Definition:
EcalTPGOddWeightIdMapHandler.h:77
popcon::EcalTPGOddWeightIdMapHandler::m_lastRun
unsigned int m_lastRun
Definition:
EcalTPGOddWeightIdMapHandler.h:71
EcalCondDBInterface.h
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
popcon::EcalTPGOddWeightIdMapHandler::m_i_oddweightIdMap
int m_i_oddweightIdMap
Definition:
EcalTPGOddWeightIdMapHandler.h:87
MessageLogger.h
ParameterSet
Definition:
Functions.h:16
EcalTPGOddWeightIdMapRcd.h
popcon::EcalTPGOddWeightIdMapHandler::EcalTPGOddWeightIdMapHandler
EcalTPGOddWeightIdMapHandler(edm::ParameterSet const &)
Definition:
EcalTPGOddWeightIdMapHandler.cc:22
relativeConstraints.value
tuple value
Definition:
relativeConstraints.py:55
writeEcalDQMStatus.inputFile
tuple inputFile
Definition:
writeEcalDQMStatus.py:50
Event.h
popcon::EcalTPGOddWeightIdMapHandler::readFromFile
void readFromFile(const char *inputFile)
Definition:
EcalTPGOddWeightIdMapHandler.cc:335
popcon::EcalTPGOddWeightIdMapHandler
Definition:
EcalTPGOddWeightIdMapHandler.h:44
MakerMacros.h
EventSetup.h
popcon::EcalTPGOddWeightIdMapHandler::econn
EcalCondDBInterface * econn
Definition:
EcalTPGOddWeightIdMapHandler.h:59
popcon::EcalTPGOddWeightIdMapHandler::m_location
std::string m_location
Definition:
EcalTPGOddWeightIdMapHandler.h:73
EcalTPGOddWeightIdMap
Definition:
EcalTPGOddWeightIdMap.h:10
ParameterSetfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
Oracle.h
ParameterSet.h
popcon::EcalTPGOddWeightIdMapHandler::m_sid
std::string m_sid
Definition:
EcalTPGOddWeightIdMapHandler.h:75
popcon::EcalTPGOddWeightIdMapHandler::m_i_run_number
unsigned int m_i_run_number
Definition:
EcalTPGOddWeightIdMapHandler.h:86
EventSetup
EventSetupRecordKey.h
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
PoolDBOutputService.h
popcon::EcalTPGOddWeightIdMapHandler::m_runnr
unsigned int m_runnr
Definition:
EcalTPGOddWeightIdMapHandler.h:80
popcon::EcalTPGOddWeightIdMapHandler::~EcalTPGOddWeightIdMapHandler
~EcalTPGOddWeightIdMapHandler() override
Definition:
EcalTPGOddWeightIdMapHandler.cc:40
ESHandle.h
Service.h
EcalTPGOddWeightIdMap.h
Timestamp.h
popcon::EcalTPGOddWeightIdMapHandler::m_file_type
std::string m_file_type
Definition:
EcalTPGOddWeightIdMapHandler.h:83
popcon::EcalTPGOddWeightIdMapHandler::getNewObjects
void getNewObjects() override
Definition:
EcalTPGOddWeightIdMapHandler.cc:42
popcon::EcalTPGOddWeightIdMapHandler::myweightIdMap
const EcalTPGOddWeightIdMap * myweightIdMap
Definition:
EcalTPGOddWeightIdMapHandler.h:68
popcon::EcalTPGOddWeightIdMapHandler::writeFile
void writeFile(const char *inputFile)
Definition:
EcalTPGOddWeightIdMapHandler.cc:373
popcon::EcalTPGOddWeightIdMapHandler::m_locationsource
std::string m_locationsource
Definition:
EcalTPGOddWeightIdMapHandler.h:78
popcon::EcalTPGOddWeightIdMapHandler::m_i_tag
std::string m_i_tag
Definition:
EcalTPGOddWeightIdMapHandler.h:82
PopConSourceHandler.h
popcon::EcalTPGOddWeightIdMapHandler::id
std::string id() const override
Definition:
EcalTPGOddWeightIdMapHandler.h:51
popcon::EcalTPGOddWeightIdMapHandler::readtxtFile
void readtxtFile()
Definition:
EcalTPGOddWeightIdMapHandler.cc:244
popcon::EcalTPGOddWeightIdMapHandler::m_name
std::string m_name
Definition:
EcalTPGOddWeightIdMapHandler.h:79
Event
popcon::EcalTPGOddWeightIdMapHandler::readxmlFile
void readxmlFile()
Definition:
EcalTPGOddWeightIdMapHandler.cc:278
popcon::EcalTPGOddWeightIdMapHandler::to_string
std::string to_string(char value[])
Definition:
EcalTPGOddWeightIdMapHandler.h:62
edm::ParameterSet
Definition:
ParameterSet.h:47
EBDetId.h
EEDetId.h
popcon::EcalTPGOddWeightIdMapHandler::m_i_version
int m_i_version
Definition:
EcalTPGOddWeightIdMapHandler.h:85
popcon::EcalTPGOddWeightIdMapHandler::m_runtype
std::string m_runtype
Definition:
EcalTPGOddWeightIdMapHandler.h:81
popcon::EcalTPGOddWeightIdMapHandler::m_file_name
std::string m_file_name
Definition:
EcalTPGOddWeightIdMapHandler.h:84
popcon::EcalTPGOddWeightIdMapHandler::m_firstRun
unsigned int m_firstRun
Definition:
EcalTPGOddWeightIdMapHandler.h:70
popcon::EcalTPGOddWeightIdMapHandler::m_user
std::string m_user
Definition:
EcalTPGOddWeightIdMapHandler.h:76
Handle.h
all_monitoring_types.h
Generated for CMSSW Reference Manual by
1.8.5