CondTools
Ecal
interface
EcalTPGWeightGroupHandler.h
Go to the documentation of this file.
1
#ifndef ECAL_TPG_WEIGHTGROUP_HANDLER_H
2
#define ECAL_TPG_WEIGHTGROUP_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/EcalTPGWeightGroup.h
"
26
#include "
CondFormats/DataRecord/interface/EcalTPGWeightGroupRcd.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
EcalTPGWeightGroupHandler
:
public
popcon::PopConSourceHandler
<EcalTPGWeightGroup> {
47
public
:
48
EcalTPGWeightGroupHandler
(
edm::ParameterSet
const
&);
49
~EcalTPGWeightGroupHandler
()
override
;
50
51
std::map<std::string, int>
makeStripId
();
52
53
void
getNewObjects
()
override
;
54
55
std::string
id
()
const override
{
return
m_name
; }
56
57
void
readtxtFile
();
58
void
readxmlFile
();
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
unsigned
int
m_firstRun
;
73
unsigned
int
m_lastRun
;
74
75
std::map<std::string, int>
correspId
;
76
77
const
EcalElectronicsMapping
*
ecalMapping_
;
78
std::string
m_location
;
79
std::string
m_gentag
;
80
std::string
m_sid
;
81
std::string
m_user
;
82
std::string
m_pass
;
83
std::string
m_locationsource
;
84
std::string
m_name
;
85
unsigned
int
m_runnr
;
86
std::string
m_runtype
;
87
std::string
m_i_tag
;
88
std::string
m_file_type
;
89
std::string
m_file_name
;
90
int
m_i_version
;
91
unsigned
int
m_i_run_number
;
92
int
m_i_weightGroup
;
93
};
94
}
// namespace popcon
95
#endif
popcon::EcalTPGWeightGroupHandler::m_runtype
std::string m_runtype
Definition:
EcalTPGWeightGroupHandler.h:86
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
EcalElectronicsMapping
Definition:
EcalElectronicsMapping.h:28
PopConSourceHandler.h
Handle.h
MessageLogger.h
ESHandle.h
popcon::EcalTPGWeightGroupHandler::m_name
std::string m_name
Definition:
EcalTPGWeightGroupHandler.h:84
edm
HLT enums.
Definition:
AlignableModifier.h:19
EBDetId.h
EEDetId.h
popcon::EcalTPGWeightGroupHandler::m_pass
std::string m_pass
Definition:
EcalTPGWeightGroupHandler.h:82
popcon::EcalTPGWeightGroupHandler::m_file_type
std::string m_file_type
Definition:
EcalTPGWeightGroupHandler.h:88
popcon::EcalTPGWeightGroupHandler::m_runnr
unsigned int m_runnr
Definition:
EcalTPGWeightGroupHandler.h:85
MakerMacros.h
PoolDBOutputService.h
Service.h
popcon::EcalTPGWeightGroupHandler::m_file_name
std::string m_file_name
Definition:
EcalTPGWeightGroupHandler.h:89
popcon::EcalTPGWeightGroupHandler::m_lastRun
unsigned int m_lastRun
Definition:
EcalTPGWeightGroupHandler.h:73
popcon::EcalTPGWeightGroupHandler::EcalTPGWeightGroupHandler
EcalTPGWeightGroupHandler(edm::ParameterSet const &)
Definition:
EcalTPGWeightGroupHandler.cc:30
Event
popcon::EcalTPGWeightGroupHandler::m_location
std::string m_location
Definition:
EcalTPGWeightGroupHandler.h:78
popcon::EcalTPGWeightGroupHandler::to_string
std::string to_string(char value[])
Definition:
EcalTPGWeightGroupHandler.h:66
popcon::EcalTPGWeightGroupHandler::m_user
std::string m_user
Definition:
EcalTPGWeightGroupHandler.h:81
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
EcalTPGWeightGroup.h
popcon::EcalTPGWeightGroupHandler::makeStripId
std::map< std::string, int > makeStripId()
all_monitoring_types.h
edm::ParameterSet
Definition:
ParameterSet.h:47
Timestamp.h
Event.h
ParameterSet
Definition:
Functions.h:16
popcon::EcalTPGWeightGroupHandler::m_sid
std::string m_sid
Definition:
EcalTPGWeightGroupHandler.h:80
popcon::EcalTPGWeightGroupHandler::m_i_version
int m_i_version
Definition:
EcalTPGWeightGroupHandler.h:90
dtResolutionTest_cfi.inputFile
inputFile
Definition:
dtResolutionTest_cfi.py:14
value
Definition:
value.py:1
popcon::EcalTPGWeightGroupHandler::m_i_weightGroup
int m_i_weightGroup
Definition:
EcalTPGWeightGroupHandler.h:92
popcon::EcalTPGWeightGroupHandler::readtxtFile
void readtxtFile()
Definition:
EcalTPGWeightGroupHandler.cc:303
popcon::EcalTPGWeightGroupHandler::econn
EcalCondDBInterface * econn
Definition:
EcalTPGWeightGroupHandler.h:63
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
popcon::EcalTPGWeightGroupHandler::getNewObjects
void getNewObjects() override
Definition:
EcalTPGWeightGroupHandler.cc:50
popcon::EcalTPGWeightGroupHandler::readxmlFile
void readxmlFile()
Definition:
EcalTPGWeightGroupHandler.cc:330
popcon
Definition:
Exception.h:6
popcon::EcalTPGWeightGroupHandler::ecalMapping_
const EcalElectronicsMapping * ecalMapping_
Definition:
EcalTPGWeightGroupHandler.h:77
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
popcon::EcalTPGWeightGroupHandler::~EcalTPGWeightGroupHandler
~EcalTPGWeightGroupHandler() override
Definition:
EcalTPGWeightGroupHandler.cc:48
ParameterSetfwd.h
EventSetup.h
popcon::EcalTPGWeightGroupHandler::id
std::string id() const override
Definition:
EcalTPGWeightGroupHandler.h:55
EcalTPGWeightGroupRcd.h
popcon::EcalTPGWeightGroupHandler::m_locationsource
std::string m_locationsource
Definition:
EcalTPGWeightGroupHandler.h:83
Oracle.h
popcon::EcalTPGWeightGroupHandler::m_gentag
std::string m_gentag
Definition:
EcalTPGWeightGroupHandler.h:79
EventSetup
popcon::EcalTPGWeightGroupHandler::m_firstRun
unsigned int m_firstRun
Definition:
EcalTPGWeightGroupHandler.h:72
ParameterSet.h
popcon::EcalTPGWeightGroupHandler::m_i_tag
std::string m_i_tag
Definition:
EcalTPGWeightGroupHandler.h:87
popcon::EcalTPGWeightGroupHandler::correspId
std::map< std::string, int > correspId
Definition:
EcalTPGWeightGroupHandler.h:75
EventSetupRecordKey.h
EcalCondDBInterface.h
popcon::EcalTPGWeightGroupHandler::readFromFile
void readFromFile(const char *inputFile)
Definition:
EcalTPGWeightGroupHandler.cc:391
popcon::EcalTPGWeightGroupHandler
Definition:
EcalTPGWeightGroupHandler.h:46
popcon::EcalTPGWeightGroupHandler::writeFile
void writeFile(const char *inputFile)
Definition:
EcalTPGWeightGroupHandler.cc:429
popcon::EcalTPGWeightGroupHandler::m_i_run_number
unsigned int m_i_run_number
Definition:
EcalTPGWeightGroupHandler.h:91
Generated for CMSSW Reference Manual by
1.8.16