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