Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
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 <vector>
5
#include <typeinfo>
6
#include <string>
7
#include <map>
8
#include <iostream>
9
#include <time.h>
10
11
#include "
CondCore/PopCon/interface/PopConSourceHandler.h
"
12
#include "
FWCore/ParameterSet/interface/ParameterSetfwd.h
"
13
14
15
#include "
FWCore/ServiceRegistry/interface/Service.h
"
16
#include "
CondCore/DBOutputService/interface/PoolDBOutputService.h
"
17
#include "
FWCore/Framework/interface/ESHandle.h
"
18
#include "
FWCore/Framework/interface/Event.h
"
19
#include "
FWCore/Framework/interface/MakerMacros.h
"
20
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
21
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
22
#include "
DataFormats/Common/interface/Handle.h
"
23
#include "
FWCore/Framework/interface/EventSetup.h
"
24
#include "
FWCore/Framework/interface/EventSetupRecordKey.h
"
25
26
27
28
#include "
CondFormats/EcalObjects/interface/EcalTPGWeightIdMap.h
"
29
#include "
CondFormats/DataRecord/interface/EcalTPGWeightIdMapRcd.h
"
30
31
#include "
OnlineDB/EcalCondDB/interface/all_monitoring_types.h
"
32
#include "
OnlineDB/Oracle/interface/Oracle.h
"
33
#include "
OnlineDB/EcalCondDB/interface/EcalCondDBInterface.h
"
34
35
#include "
DataFormats/EcalDetId/interface/EEDetId.h
"
36
#include "
DataFormats/EcalDetId/interface/EBDetId.h
"
37
#include "
DataFormats/Provenance/interface/Timestamp.h
"
38
39
namespace
edm {
40
class
ParameterSet
;
41
class
Event
;
42
class
EventSetup
;
43
}
44
45
namespace
popcon
46
{
47
48
49
class
EcalTPGWeightIdMapHandler
:
public
popcon::PopConSourceHandler
<EcalTPGWeightIdMap>
50
{
51
52
public
:
53
EcalTPGWeightIdMapHandler
(
edm::ParameterSet
const
& );
54
~EcalTPGWeightIdMapHandler
();
55
56
void
getNewObjects
();
57
58
std::string
id
()
const
{
return
m_name
;}
59
60
void
readFromFile
(
const
char
*
inputFile
) ;
61
void
writeFile
(
const
char
*
inputFile
);
62
63
EcalCondDBInterface
*
econn
;
64
65
private
:
66
std::string
to_string
(
char
value
[]) {
67
std::ostringstream streamOut;
68
streamOut <<
value
;
69
return
streamOut.str();
70
}
71
72
const
EcalTPGWeightIdMap
*
myweightIdMap
;
73
74
unsigned
int
m_firstRun
;
75
unsigned
int
m_lastRun
;
76
77
std::string
m_location
;
78
std::string
m_gentag
;
79
std::string
m_sid
;
80
std::string
m_user
;
81
std::string
m_pass
;
82
std::string
m_locationsource
;
83
std::string
m_name
;
84
unsigned
int
m_runnr
;
85
std::string
m_runtype
;
86
std::string
m_i_tag
;
87
int
m_i_version
;
88
unsigned
int
m_i_run_number
;
89
int
m_i_weightIdMap
;
90
91
};
92
}
93
#endif
94
EcalTPGWeightIdMap.h
popcon::EcalTPGWeightIdMapHandler::m_i_tag
std::string m_i_tag
Definition:
EcalTPGWeightIdMapHandler.h:86
MessageLogger.h
EcalCondDBInterface.h
popcon::EcalTPGWeightIdMapHandler::m_user
std::string m_user
Definition:
EcalTPGWeightIdMapHandler.h:80
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:38
popcon::EcalTPGWeightIdMapHandler::readFromFile
void readFromFile(const char *inputFile)
Definition:
EcalTPGWeightIdMapHandler.cc:263
EcalTPGWeightIdMapRcd.h
ParameterSet
Definition:
Functions.h:16
relativeConstraints.value
tuple value
Definition:
relativeConstraints.py:54
Event.h
popcon::EcalTPGWeightIdMapHandler::writeFile
void writeFile(const char *inputFile)
Definition:
EcalTPGWeightIdMapHandler.cc:302
popcon::EcalTPGWeightIdMapHandler::getNewObjects
void getNewObjects()
Definition:
EcalTPGWeightIdMapHandler.cc:47
MakerMacros.h
EventSetup.h
popcon::EcalTPGWeightIdMapHandler::myweightIdMap
const EcalTPGWeightIdMap * myweightIdMap
Definition:
EcalTPGWeightIdMapHandler.h:72
popcon::EcalTPGWeightIdMapHandler::m_sid
std::string m_sid
Definition:
EcalTPGWeightIdMapHandler.h:79
Handle.h
ParameterSetfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
Oracle.h
ParameterSet.h
EventSetup
EventSetupRecordKey.h
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:36
PoolDBOutputService.h
popcon::EcalTPGWeightIdMapHandler::to_string
std::string to_string(char value[])
Definition:
EcalTPGWeightIdMapHandler.h:66
popcon::EcalTPGWeightIdMapHandler
Definition:
EcalTPGWeightIdMapHandler.h:49
popcon::EcalTPGWeightIdMapHandler::m_lastRun
unsigned int m_lastRun
Definition:
EcalTPGWeightIdMapHandler.h:75
analyzePatCleaning_cfg.inputFile
tuple inputFile
Definition:
analyzePatCleaning_cfg.py:6
ESHandle.h
Service.h
Timestamp.h
popcon::EcalTPGWeightIdMapHandler::m_i_version
int m_i_version
Definition:
EcalTPGWeightIdMapHandler.h:87
popcon::EcalTPGWeightIdMapHandler::econn
EcalCondDBInterface * econn
Definition:
EcalTPGWeightIdMapHandler.h:63
popcon::EcalTPGWeightIdMapHandler::~EcalTPGWeightIdMapHandler
~EcalTPGWeightIdMapHandler()
Definition:
EcalTPGWeightIdMapHandler.cc:42
popcon::EcalTPGWeightIdMapHandler::EcalTPGWeightIdMapHandler
EcalTPGWeightIdMapHandler(edm::ParameterSet const &)
Definition:
EcalTPGWeightIdMapHandler.cc:24
popcon::EcalTPGWeightIdMapHandler::m_i_run_number
unsigned int m_i_run_number
Definition:
EcalTPGWeightIdMapHandler.h:88
PopConSourceHandler.h
popcon::EcalTPGWeightIdMapHandler::m_pass
std::string m_pass
Definition:
EcalTPGWeightIdMapHandler.h:81
popcon::EcalTPGWeightIdMapHandler::m_runnr
unsigned int m_runnr
Definition:
EcalTPGWeightIdMapHandler.h:84
Event
popcon::EcalTPGWeightIdMapHandler::m_runtype
std::string m_runtype
Definition:
EcalTPGWeightIdMapHandler.h:85
popcon::EcalTPGWeightIdMapHandler::m_i_weightIdMap
int m_i_weightIdMap
Definition:
EcalTPGWeightIdMapHandler.h:89
EcalTPGWeightIdMap
Definition:
EcalTPGWeightIdMap.h:10
popcon::EcalTPGWeightIdMapHandler::m_gentag
std::string m_gentag
Definition:
EcalTPGWeightIdMapHandler.h:78
popcon::EcalTPGWeightIdMapHandler::m_firstRun
unsigned int m_firstRun
Definition:
EcalTPGWeightIdMapHandler.h:74
edm::ParameterSet
Definition:
ParameterSet.h:35
EBDetId.h
EEDetId.h
popcon::EcalTPGWeightIdMapHandler::m_name
std::string m_name
Definition:
EcalTPGWeightIdMapHandler.h:83
popcon::EcalTPGWeightIdMapHandler::id
std::string id() const
Definition:
EcalTPGWeightIdMapHandler.h:58
popcon::EcalTPGWeightIdMapHandler::m_locationsource
std::string m_locationsource
Definition:
EcalTPGWeightIdMapHandler.h:82
popcon::EcalTPGWeightIdMapHandler::m_location
std::string m_location
Definition:
EcalTPGWeightIdMapHandler.h:77
all_monitoring_types.h
Generated for CMSSW Reference Manual by
1.8.5