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