Main Page
Namespaces
Classes
Package Documentation
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
MessageLogger.h
EcalCondDBInterface.h
EcalTPGCrystalStatusRcd.h
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
popcon::EcalTPGBadXTHandler::m_sid
std::string m_sid
Definition:
EcalTPGBadXTHandler.h:74
popcon::EcalTPGBadXTHandler::to_string
std::string to_string(char value[])
Definition:
EcalTPGBadXTHandler.h:61
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::EcalTPGBadXTHandler
Definition:
EcalTPGBadXTHandler.h:45
popcon::EcalTPGBadXTHandler::mycrystalStat
const EcalTPGCrystalStatus * mycrystalStat
Definition:
EcalTPGBadXTHandler.h:67
popcon::EcalTPGBadXTHandler::m_lastRun
unsigned int m_lastRun
Definition:
EcalTPGBadXTHandler.h:70
popcon::EcalTPGBadXTHandler::m_user
std::string m_user
Definition:
EcalTPGBadXTHandler.h:75
ParameterSetfwd.h
Oracle.h
ParameterSet.h
EventSetup
EventSetupRecordKey.h
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
PoolDBOutputService.h
popcon::EcalTPGBadXTHandler::m_pass
std::string m_pass
Definition:
EcalTPGBadXTHandler.h:76
popcon::EcalTPGBadXTHandler::m_i_version
int m_i_version
Definition:
EcalTPGBadXTHandler.h:82
dtResolutionTest_cfi.inputFile
inputFile
Definition:
dtResolutionTest_cfi.py:14
ESHandle.h
Service.h
popcon::EcalTPGBadXTHandler::m_firstRun
unsigned int m_firstRun
Definition:
EcalTPGBadXTHandler.h:69
value
Definition:
value.py:1
Timestamp.h
popcon::EcalTPGBadXTHandler::econn
EcalCondDBInterface * econn
Definition:
EcalTPGBadXTHandler.h:58
popcon::EcalTPGBadXTHandler::m_location
std::string m_location
Definition:
EcalTPGBadXTHandler.h:72
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
popcon::EcalTPGBadXTHandler::m_runnr
unsigned int m_runnr
Definition:
EcalTPGBadXTHandler.h:79
popcon::EcalTPGBadXTHandler::m_name
std::string m_name
Definition:
EcalTPGBadXTHandler.h:78
all_od_types.h
PopConSourceHandler.h
popcon::EcalTPGBadXTHandler::m_i_run_number
unsigned int m_i_run_number
Definition:
EcalTPGBadXTHandler.h:83
Event
popcon::EcalTPGBadXTHandler::m_i_badXT
int m_i_badXT
Definition:
EcalTPGBadXTHandler.h:84
popcon::EcalTPGBadXTHandler::m_locationsource
std::string m_locationsource
Definition:
EcalTPGBadXTHandler.h:77
edm
HLT enums.
Definition:
AlignableModifier.h:19
popcon::EcalTPGBadXTHandler::m_i_tag
std::string m_i_tag
Definition:
EcalTPGBadXTHandler.h:81
edm::ParameterSet
Definition:
ParameterSet.h:36
EBDetId.h
EEDetId.h
popcon::EcalTPGBadXTHandler::m_gentag
std::string m_gentag
Definition:
EcalTPGBadXTHandler.h:73
popcon::EcalTPGBadXTHandler::id
std::string id() const override
Definition:
EcalTPGBadXTHandler.h:52
popcon::EcalTPGBadXTHandler::m_runtype
std::string m_runtype
Definition:
EcalTPGBadXTHandler.h:80
EcalCondObjectContainer< EcalTPGCrystalStatusCode >
Handle.h
all_monitoring_types.h
EcalTPGCrystalStatus.h
Generated for CMSSW Reference Manual by
1.8.11