Main Page
Namespaces
Classes
Package Documentation
src
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
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/EcalTPGWeightGroup.h
"
29
#include "
CondFormats/DataRecord/interface/EcalTPGWeightGroupRcd.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
class
EcalElectronicsMapping
;
40
41
namespace
edm
{
42
class
ParameterSet
;
43
class
Event
;
44
class
EventSetup
;
45
}
46
47
namespace
popcon
48
{
49
50
51
class
EcalTPGWeightGroupHandler
:
public
popcon::PopConSourceHandler
<EcalTPGWeightGroup>
52
{
53
54
public
:
55
EcalTPGWeightGroupHandler
(
edm::ParameterSet
const
& );
56
~
EcalTPGWeightGroupHandler
()
override
;
57
58
std::map<std::string, int> makeStripId();
59
60
void
getNewObjects()
override
;
61
62
std::string
id
()
const override
{
return
m_name;}
63
64
void
readFromFile(
const
char
*
inputFile
) ;
65
void
writeFile(
const
char
* inputFile);
66
67
EcalCondDBInterface
*
econn
;
68
69
private
:
70
std::string
to_string
(
char
value
[]) {
71
std::ostringstream streamOut;
72
streamOut <<
value
;
73
return
streamOut.str();
74
}
75
76
unsigned
int
m_firstRun
;
77
unsigned
int
m_lastRun
;
78
79
std::map<std::string, int>
correspId
;
80
81
const
EcalElectronicsMapping
*
ecalMapping_
;
82
std::string
m_location
;
83
std::string
m_gentag
;
84
std::string
m_sid
;
85
std::string
m_user
;
86
std::string
m_pass
;
87
std::string
m_locationsource
;
88
std::string
m_name
;
89
unsigned
int
m_runnr
;
90
std::string
m_runtype
;
91
std::string
m_i_tag
;
92
int
m_i_version
;
93
unsigned
int
m_i_run_number
;
94
int
m_i_weightGroup
;
95
};
96
}
97
#endif
98
MessageLogger.h
EcalCondDBInterface.h
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:38
popcon::EcalTPGWeightGroupHandler::econn
EcalCondDBInterface * econn
Definition:
EcalTPGWeightGroupHandler.h:67
ParameterSet
Definition:
Functions.h:16
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
Event.h
MakerMacros.h
EventSetup.h
popcon
Definition:
Exception.h:6
popcon::EcalTPGWeightGroupHandler::m_location
std::string m_location
Definition:
EcalTPGWeightGroupHandler.h:82
ParameterSetfwd.h
popcon::EcalTPGWeightGroupHandler
Definition:
EcalTPGWeightGroupHandler.h:51
popcon::EcalTPGWeightGroupHandler::m_i_tag
std::string m_i_tag
Definition:
EcalTPGWeightGroupHandler.h:91
Oracle.h
ParameterSet.h
EventSetup
popcon::EcalTPGWeightGroupHandler::m_gentag
std::string m_gentag
Definition:
EcalTPGWeightGroupHandler.h:83
EventSetupRecordKey.h
popcon::EcalTPGWeightGroupHandler::m_lastRun
unsigned int m_lastRun
Definition:
EcalTPGWeightGroupHandler.h:77
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:32
PoolDBOutputService.h
popcon::EcalTPGWeightGroupHandler::m_locationsource
std::string m_locationsource
Definition:
EcalTPGWeightGroupHandler.h:87
popcon::EcalTPGWeightGroupHandler::m_i_weightGroup
int m_i_weightGroup
Definition:
EcalTPGWeightGroupHandler.h:94
ESHandle.h
Service.h
popcon::EcalTPGWeightGroupHandler::m_i_run_number
unsigned int m_i_run_number
Definition:
EcalTPGWeightGroupHandler.h:93
value
Definition:
value.py:1
popcon::EcalTPGWeightGroupHandler::m_i_version
int m_i_version
Definition:
EcalTPGWeightGroupHandler.h:92
Timestamp.h
analyzePatCleaning_cfg.inputFile
inputFile
Definition:
analyzePatCleaning_cfg.py:6
EcalElectronicsMapping
Definition:
EcalElectronicsMapping.h:31
popcon::EcalTPGWeightGroupHandler::m_firstRun
unsigned int m_firstRun
Definition:
EcalTPGWeightGroupHandler.h:76
relativeConstraints.value
value
Definition:
relativeConstraints.py:52
PopConSourceHandler.h
popcon::EcalTPGWeightGroupHandler::m_pass
std::string m_pass
Definition:
EcalTPGWeightGroupHandler.h:86
popcon::EcalTPGWeightGroupHandler::to_string
std::string to_string(char value[])
Definition:
EcalTPGWeightGroupHandler.h:70
popcon::EcalTPGWeightGroupHandler::m_runnr
unsigned int m_runnr
Definition:
EcalTPGWeightGroupHandler.h:89
popcon::EcalTPGWeightGroupHandler::m_sid
std::string m_sid
Definition:
EcalTPGWeightGroupHandler.h:84
Event
edm
HLT enums.
Definition:
AlignableModifier.h:17
popcon::EcalTPGWeightGroupHandler::m_name
std::string m_name
Definition:
EcalTPGWeightGroupHandler.h:88
EcalTPGWeightGroup.h
edm::ParameterSet
Definition:
ParameterSet.h:36
EBDetId.h
EEDetId.h
popcon::EcalTPGWeightGroupHandler::m_user
std::string m_user
Definition:
EcalTPGWeightGroupHandler.h:85
popcon::EcalTPGWeightGroupHandler::ecalMapping_
const EcalElectronicsMapping * ecalMapping_
Definition:
EcalTPGWeightGroupHandler.h:81
popcon::EcalTPGWeightGroupHandler::correspId
std::map< std::string, int > correspId
Definition:
EcalTPGWeightGroupHandler.h:79
EcalTPGWeightGroupRcd.h
popcon::EcalTPGWeightGroupHandler::id
std::string id() const override
Definition:
EcalTPGWeightGroupHandler.h:62
popcon::EcalTPGWeightGroupHandler::m_runtype
std::string m_runtype
Definition:
EcalTPGWeightGroupHandler.h:90
Handle.h
all_monitoring_types.h
Generated for CMSSW Reference Manual by
1.8.11