CondTools
Ecal
interface
EcalTPGFineGrainTowerEEHandler.h
Go to the documentation of this file.
1
#ifndef ECAL_TPG_FINEGRAINTOWEREE_HANDLER_H
2
#define ECAL_TPG_FINEGRAINTOWEREE_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/EcalTPGFineGrainTowerEE.h
"
26
#include "
CondFormats/DataRecord/interface/EcalTPGFineGrainTowerEERcd.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
EcalTPGFineGrainTowerEEHandler
:
public
popcon::PopConSourceHandler
<EcalTPGFineGrainTowerEE> {
45
public
:
46
EcalTPGFineGrainTowerEEHandler
(
edm::ParameterSet
const
&);
47
~EcalTPGFineGrainTowerEEHandler
()
override
;
48
49
//std::map<std::string, int> makeTTEBDetId();
50
51
void
getNewObjects
()
override
;
52
53
std::map<std::string, int>
makeTTEEDetId
();
54
55
std::string
id
()
const override
{
return
m_name
; }
56
57
void
readFromFile
(
const
char
*
inputFile
);
58
void
writeFile
(
const
char
*
inputFile
);
59
60
EcalCondDBInterface
*
econn
;
61
62
private
:
63
std::string
to_string
(
char
value
[]) {
64
std::ostringstream streamOut;
65
streamOut <<
value
;
66
return
streamOut.str();
67
}
68
69
unsigned
int
m_firstRun
;
70
unsigned
int
m_lastRun
;
71
std::map<std::string, int>
mapDetEEId
;
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
int
m_i_version
;
84
unsigned
int
m_i_run_number
;
85
int
m_i_fgrTTEE
;
86
};
87
}
// namespace popcon
88
#endif
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
PopConSourceHandler.h
Handle.h
popcon::EcalTPGFineGrainTowerEEHandler::id
std::string id() const override
Definition:
EcalTPGFineGrainTowerEEHandler.h:55
MessageLogger.h
popcon::EcalTPGFineGrainTowerEEHandler::m_i_tag
std::string m_i_tag
Definition:
EcalTPGFineGrainTowerEEHandler.h:82
ESHandle.h
popcon::EcalTPGFineGrainTowerEEHandler::m_i_version
int m_i_version
Definition:
EcalTPGFineGrainTowerEEHandler.h:83
edm
HLT enums.
Definition:
AlignableModifier.h:19
EBDetId.h
EEDetId.h
popcon::EcalTPGFineGrainTowerEEHandler::m_runnr
unsigned int m_runnr
Definition:
EcalTPGFineGrainTowerEEHandler.h:80
popcon::EcalTPGFineGrainTowerEEHandler::mapDetEEId
std::map< std::string, int > mapDetEEId
Definition:
EcalTPGFineGrainTowerEEHandler.h:71
popcon::EcalTPGFineGrainTowerEEHandler::makeTTEEDetId
std::map< std::string, int > makeTTEEDetId()
EcalTPGFineGrainTowerEE.h
popcon::EcalTPGFineGrainTowerEEHandler::m_firstRun
unsigned int m_firstRun
Definition:
EcalTPGFineGrainTowerEEHandler.h:69
MakerMacros.h
popcon::EcalTPGFineGrainTowerEEHandler::getNewObjects
void getNewObjects() override
Definition:
EcalTPGFineGrainTowerEEHandler.cc:31
PoolDBOutputService.h
popcon::EcalTPGFineGrainTowerEEHandler::m_pass
std::string m_pass
Definition:
EcalTPGFineGrainTowerEEHandler.h:77
Service.h
popcon::EcalTPGFineGrainTowerEEHandler::to_string
std::string to_string(char value[])
Definition:
EcalTPGFineGrainTowerEEHandler.h:63
Event
popcon::EcalTPGFineGrainTowerEEHandler::writeFile
void writeFile(const char *inputFile)
Definition:
EcalTPGFineGrainTowerEEHandler.cc:293
popcon::EcalTPGFineGrainTowerEEHandler::m_name
std::string m_name
Definition:
EcalTPGFineGrainTowerEEHandler.h:79
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
popcon::EcalTPGFineGrainTowerEEHandler::m_gentag
std::string m_gentag
Definition:
EcalTPGFineGrainTowerEEHandler.h:74
all_monitoring_types.h
popcon::EcalTPGFineGrainTowerEEHandler
Definition:
EcalTPGFineGrainTowerEEHandler.h:44
edm::ParameterSet
Definition:
ParameterSet.h:47
Timestamp.h
Event.h
ParameterSet
Definition:
Functions.h:16
dtResolutionTest_cfi.inputFile
inputFile
Definition:
dtResolutionTest_cfi.py:14
value
Definition:
value.py:1
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
EcalTPGFineGrainTowerEERcd.h
popcon::EcalTPGFineGrainTowerEEHandler::m_i_fgrTTEE
int m_i_fgrTTEE
Definition:
EcalTPGFineGrainTowerEEHandler.h:85
popcon::EcalTPGFineGrainTowerEEHandler::EcalTPGFineGrainTowerEEHandler
EcalTPGFineGrainTowerEEHandler(edm::ParameterSet const &)
Definition:
EcalTPGFineGrainTowerEEHandler.cc:13
popcon
Definition:
Exception.h:6
popcon::EcalTPGFineGrainTowerEEHandler::m_lastRun
unsigned int m_lastRun
Definition:
EcalTPGFineGrainTowerEEHandler.h:70
popcon::EcalTPGFineGrainTowerEEHandler::~EcalTPGFineGrainTowerEEHandler
~EcalTPGFineGrainTowerEEHandler() override
Definition:
EcalTPGFineGrainTowerEEHandler.cc:29
popcon::EcalTPGFineGrainTowerEEHandler::readFromFile
void readFromFile(const char *inputFile)
Definition:
EcalTPGFineGrainTowerEEHandler.cc:255
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
popcon::EcalTPGFineGrainTowerEEHandler::m_location
std::string m_location
Definition:
EcalTPGFineGrainTowerEEHandler.h:73
ParameterSetfwd.h
EventSetup.h
popcon::EcalTPGFineGrainTowerEEHandler::m_runtype
std::string m_runtype
Definition:
EcalTPGFineGrainTowerEEHandler.h:81
popcon::EcalTPGFineGrainTowerEEHandler::m_i_run_number
unsigned int m_i_run_number
Definition:
EcalTPGFineGrainTowerEEHandler.h:84
Oracle.h
EventSetup
ParameterSet.h
popcon::EcalTPGFineGrainTowerEEHandler::m_sid
std::string m_sid
Definition:
EcalTPGFineGrainTowerEEHandler.h:75
EventSetupRecordKey.h
popcon::EcalTPGFineGrainTowerEEHandler::m_locationsource
std::string m_locationsource
Definition:
EcalTPGFineGrainTowerEEHandler.h:78
EcalCondDBInterface.h
popcon::EcalTPGFineGrainTowerEEHandler::econn
EcalCondDBInterface * econn
Definition:
EcalTPGFineGrainTowerEEHandler.h:60
popcon::EcalTPGFineGrainTowerEEHandler::m_user
std::string m_user
Definition:
EcalTPGFineGrainTowerEEHandler.h:76
Generated for CMSSW Reference Manual by
1.8.16