CondTools
Ecal
interface
EcalTPGBadXTHandler.h
Go to the documentation of this file.
1
#ifndef ECAL_TPG_BADXT_HANDLER_H
2
#define ECAL_TPG_BADXT_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/EcalTPGCrystalStatus.h
"
26
#include "
CondFormats/DataRecord/interface/EcalTPGCrystalStatusRcd.h
"
27
28
#include "
OnlineDB/EcalCondDB/interface/all_monitoring_types.h
"
29
#include "
OnlineDB/EcalCondDB/interface/all_od_types.h
"
30
#include "
OnlineDB/Oracle/interface/Oracle.h
"
31
#include "
OnlineDB/EcalCondDB/interface/EcalCondDBInterface.h
"
32
33
#include "
DataFormats/EcalDetId/interface/EEDetId.h
"
34
#include "
DataFormats/EcalDetId/interface/EBDetId.h
"
35
#include "
DataFormats/Provenance/interface/Timestamp.h
"
36
37
namespace
edm
{
38
class
ParameterSet
;
39
class
Event
;
40
class
EventSetup
;
41
}
// namespace edm
42
43
namespace
popcon
{
44
45
class
EcalTPGBadXTHandler
:
public
popcon::PopConSourceHandler
<EcalTPGCrystalStatus> {
46
public
:
47
EcalTPGBadXTHandler
(
edm::ParameterSet
const
&);
48
~EcalTPGBadXTHandler
()
override
;
49
50
void
getNewObjects
()
override
;
51
52
std::string
id
()
const override
{
return
m_name
; }
53
54
void
readFromFile
(
const
char
*
inputFile
);
55
void
writeFile
(
const
char
*
inputFile
);
56
EcalTPGCrystalStatus
*
produceEcalTrgChannelStatus
();
57
58
EcalCondDBInterface
*
econn
;
59
60
private
:
61
std::string
to_string
(
char
value
[]) {
62
std::ostringstream streamOut;
63
streamOut <<
value
;
64
return
streamOut.str();
65
}
66
67
const
EcalTPGCrystalStatus
*
mycrystalStat
;
68
69
unsigned
int
m_firstRun
;
70
unsigned
int
m_lastRun
;
71
72
std::string
m_location
;
73
std::string
m_gentag
;
74
std::string
m_sid
;
75
std::string
m_user
;
76
std::string
m_pass
;
77
std::string
m_locationsource
;
78
std::string
m_name
;
79
unsigned
int
m_runnr
;
80
std::string
m_runtype
;
81
std::string
m_i_tag
;
82
int
m_i_version
;
83
unsigned
int
m_i_run_number
;
84
int
m_i_badXT
;
85
};
86
}
// namespace popcon
87
#endif
popcon::EcalTPGBadXTHandler::id
std::string id() const override
Definition:
EcalTPGBadXTHandler.h:52
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
popcon::EcalTPGBadXTHandler::readFromFile
void readFromFile(const char *inputFile)
Definition:
EcalTPGBadXTHandler.cc:307
PopConSourceHandler.h
popcon::EcalTPGBadXTHandler::EcalTPGBadXTHandler
EcalTPGBadXTHandler(edm::ParameterSet const &)
Definition:
EcalTPGBadXTHandler.cc:24
popcon::EcalTPGBadXTHandler::m_i_version
int m_i_version
Definition:
EcalTPGBadXTHandler.h:82
Handle.h
popcon::EcalTPGBadXTHandler::m_i_run_number
unsigned int m_i_run_number
Definition:
EcalTPGBadXTHandler.h:83
MessageLogger.h
ESHandle.h
popcon::EcalTPGBadXTHandler
Definition:
EcalTPGBadXTHandler.h:45
popcon::EcalTPGBadXTHandler::getNewObjects
void getNewObjects() override
Definition:
EcalTPGBadXTHandler.cc:42
popcon::EcalTPGBadXTHandler::writeFile
void writeFile(const char *inputFile)
Definition:
EcalTPGBadXTHandler.cc:345
edm
HLT enums.
Definition:
AlignableModifier.h:19
EBDetId.h
EEDetId.h
popcon::EcalTPGBadXTHandler::mycrystalStat
const EcalTPGCrystalStatus * mycrystalStat
Definition:
EcalTPGBadXTHandler.h:67
popcon::EcalTPGBadXTHandler::m_runnr
unsigned int m_runnr
Definition:
EcalTPGBadXTHandler.h:79
EcalTPGCrystalStatusRcd.h
popcon::EcalTPGBadXTHandler::m_name
std::string m_name
Definition:
EcalTPGBadXTHandler.h:78
popcon::EcalTPGBadXTHandler::m_pass
std::string m_pass
Definition:
EcalTPGBadXTHandler.h:76
EcalCondObjectContainer
Definition:
EcalCondObjectContainer.h:13
popcon::EcalTPGBadXTHandler::m_location
std::string m_location
Definition:
EcalTPGBadXTHandler.h:72
popcon::EcalTPGBadXTHandler::m_i_badXT
int m_i_badXT
Definition:
EcalTPGBadXTHandler.h:84
popcon::EcalTPGBadXTHandler::m_firstRun
unsigned int m_firstRun
Definition:
EcalTPGBadXTHandler.h:69
popcon::EcalTPGBadXTHandler::m_gentag
std::string m_gentag
Definition:
EcalTPGBadXTHandler.h:73
MakerMacros.h
PoolDBOutputService.h
Service.h
popcon::EcalTPGBadXTHandler::m_locationsource
std::string m_locationsource
Definition:
EcalTPGBadXTHandler.h:77
Event
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
all_monitoring_types.h
edm::ParameterSet
Definition:
ParameterSet.h:47
Timestamp.h
Event.h
ParameterSet
Definition:
Functions.h:16
popcon::EcalTPGBadXTHandler::m_sid
std::string m_sid
Definition:
EcalTPGBadXTHandler.h:74
dtResolutionTest_cfi.inputFile
inputFile
Definition:
dtResolutionTest_cfi.py:14
popcon::EcalTPGBadXTHandler::econn
EcalCondDBInterface * econn
Definition:
EcalTPGBadXTHandler.h:58
value
Definition:
value.py:1
all_od_types.h
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
popcon::EcalTPGBadXTHandler::m_user
std::string m_user
Definition:
EcalTPGBadXTHandler.h:75
popcon
Definition:
Exception.h:6
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
ParameterSetfwd.h
EventSetup.h
EcalTPGCrystalStatus.h
popcon::EcalTPGBadXTHandler::m_runtype
std::string m_runtype
Definition:
EcalTPGBadXTHandler.h:80
Oracle.h
EventSetup
ParameterSet.h
popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus
EcalTPGCrystalStatus * produceEcalTrgChannelStatus()
Definition:
EcalTPGBadXTHandler.cc:358
EventSetupRecordKey.h
popcon::EcalTPGBadXTHandler::m_i_tag
std::string m_i_tag
Definition:
EcalTPGBadXTHandler.h:81
popcon::EcalTPGBadXTHandler::m_lastRun
unsigned int m_lastRun
Definition:
EcalTPGBadXTHandler.h:70
EcalCondDBInterface.h
popcon::EcalTPGBadXTHandler::to_string
std::string to_string(char value[])
Definition:
EcalTPGBadXTHandler.h:61
popcon::EcalTPGBadXTHandler::~EcalTPGBadXTHandler
~EcalTPGBadXTHandler() override
Definition:
EcalTPGBadXTHandler.cc:40
Generated for CMSSW Reference Manual by
1.8.16