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