CondTools
Ecal
interface
EcalLaserHandler.h
Go to the documentation of this file.
1
#ifndef ECAL_LASER_HANDLER_H
2
#define ECAL_LASER_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/EcalPedestals.h
"
26
#include "
CondFormats/DataRecord/interface/EcalPedestalsRcd.h
"
27
#include "
CondFormats/EcalObjects/interface/EcalLaserAPDPNRatios.h
"
28
#include "
CondFormats/DataRecord/interface/EcalLaserAPDPNRatiosRcd.h
"
29
#include "
CondFormats/EcalObjects/interface/EcalLaserAPDPNRatiosRef.h
"
30
#include "
CondFormats/DataRecord/interface/EcalLaserAPDPNRatiosRefRcd.h
"
31
#include "
CondFormats/EcalObjects/interface/EcalLaserAlphas.h
"
32
#include "
CondFormats/DataRecord/interface/EcalLaserAlphasRcd.h
"
33
34
#include "
OnlineDB/EcalCondDB/interface/all_monitoring_types.h
"
35
#include "
OnlineDB/EcalCondDB/interface/all_lmf_types.h
"
36
37
#include "
OnlineDB/Oracle/interface/Oracle.h
"
38
#include "
OnlineDB/EcalCondDB/interface/EcalCondDBInterface.h
"
39
40
#include "
DataFormats/EcalDetId/interface/EEDetId.h
"
41
#include "
DataFormats/EcalDetId/interface/EBDetId.h
"
42
#include "
DataFormats/Provenance/interface/Timestamp.h
"
43
44
namespace
edm
{
45
class
ParameterSet
;
46
class
Event
;
47
class
EventSetup
;
48
}
// namespace edm
49
50
namespace
popcon
{
51
class
EcalLaserHandler
:
public
popcon::PopConSourceHandler
<EcalLaserAPDPNRatios> {
52
public
:
53
void
getNewObjects
()
override
;
54
double
diff
(
float
x,
float
old_x);
55
~EcalLaserHandler
()
override
;
56
EcalLaserHandler
(
edm::ParameterSet
const
&);
57
58
EcalCondDBInterface
*
econn
;
59
std::string
id
()
const override
{
return
m_name
; }
60
void
notifyProblems
(
const
EcalLaserAPDPNRatios::EcalLaserAPDPNpair
&old,
61
const
EcalLaserAPDPNRatios::EcalLaserAPDPNpair
¤t,
62
int
hashedIndex
,
63
const
std::string
&
reason
);
64
bool
checkAPDPN
(
const
EcalLaserAPDPNRatios::EcalLaserAPDPNpair
&old,
65
const
EcalLaserAPDPNRatios::EcalLaserAPDPNpair
¤t,
66
int
hashedIndex
);
67
bool
checkAPDPNs
(
const
EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap
&laserMap,
68
const
EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap
&apdpns_popcon);
69
70
void
dumpBarrelPayload
(
EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap
const
&laserMap);
71
void
dumpEndcapPayload
(
EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap
const
&laserMap);
72
73
private
:
74
const
EcalLaserAPDPNRatios
*
myapdpns
;
75
unsigned
long
m_sequences
;
76
std::string
m_sid
;
77
std::string
m_user
;
78
std::string
m_pass
;
79
std::string
m_name
;
80
std::string
m_maxtime
;
81
bool
m_debug
;
82
bool
m_fake
;
83
};
84
}
// namespace popcon
85
#endif
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
PopConSourceHandler.h
Handle.h
popcon::EcalLaserHandler::diff
double diff(float x, float old_x)
Definition:
EcalLaserHandler.cc:39
EcalPedestals.h
MessageLogger.h
ESHandle.h
popcon::EcalLaserHandler::m_fake
bool m_fake
Definition:
EcalLaserHandler.h:82
popcon::EcalLaserHandler::m_pass
std::string m_pass
Definition:
EcalLaserHandler.h:78
edm
HLT enums.
Definition:
AlignableModifier.h:19
popcon::EcalLaserHandler::m_debug
bool m_debug
Definition:
EcalLaserHandler.h:81
EcalLaserAPDPNRatiosRef.h
EBDetId.h
EEDetId.h
popcon::EcalLaserHandler::EcalLaserHandler
EcalLaserHandler(edm::ParameterSet const &)
Definition:
EcalLaserHandler.cc:13
EcalLaserAPDPNRatiosRefRcd.h
EcalLaserAlphasRcd.h
popcon::EcalLaserHandler::m_user
std::string m_user
Definition:
EcalLaserHandler.h:77
EcalCondObjectContainer< EcalLaserAPDPNpair >
MakerMacros.h
PoolDBOutputService.h
popcon::EcalLaserHandler::dumpEndcapPayload
void dumpEndcapPayload(EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap const &laserMap)
Definition:
EcalLaserHandler.cc:123
Service.h
popcon::EcalLaserHandler::getNewObjects
void getNewObjects() override
Definition:
EcalLaserHandler.cc:154
popcon::EcalLaserHandler
Definition:
EcalLaserHandler.h:51
Event
popcon::EcalLaserHandler::~EcalLaserHandler
~EcalLaserHandler() override
Definition:
EcalLaserHandler.cc:35
all_lmf_types.h
popcon::EcalLaserHandler::checkAPDPNs
bool checkAPDPNs(const EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap &laserMap, const EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap &apdpns_popcon)
Definition:
EcalLaserHandler.cc:76
EcalLaserAPDPNRatiosRcd.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
all_monitoring_types.h
popcon::EcalLaserHandler::m_sequences
unsigned long m_sequences
Definition:
EcalLaserHandler.h:75
EcalLaserAPDPNRatios::EcalLaserAPDPNpair
Definition:
EcalLaserAPDPNRatios.h:16
edm::ParameterSet
Definition:
ParameterSet.h:36
Timestamp.h
EcalLaserAlphas.h
Event.h
ParameterSet
Definition:
Functions.h:16
popcon::EcalLaserHandler::myapdpns
const EcalLaserAPDPNRatios * myapdpns
Definition:
EcalLaserHandler.h:74
popcon::EcalLaserHandler::id
std::string id() const override
Definition:
EcalLaserHandler.h:59
EcalLaserAPDPNRatios.h
popcon::EcalLaserHandler::notifyProblems
void notifyProblems(const EcalLaserAPDPNRatios::EcalLaserAPDPNpair &old, const EcalLaserAPDPNRatios::EcalLaserAPDPNpair ¤t, int hashedIndex, const std::string &reason)
Definition:
EcalLaserHandler.cc:41
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
popcon::EcalLaserHandler::m_maxtime
std::string m_maxtime
Definition:
EcalLaserHandler.h:80
popcon::EcalLaserHandler::m_name
std::string m_name
Definition:
EcalLaserHandler.h:79
PixelMapPlotter.reason
reason
Definition:
PixelMapPlotter.py:509
popcon
Definition:
Exception.h:6
ParameterSetfwd.h
EventSetup.h
popcon::EcalLaserHandler::checkAPDPN
bool checkAPDPN(const EcalLaserAPDPNRatios::EcalLaserAPDPNpair &old, const EcalLaserAPDPNRatios::EcalLaserAPDPNpair ¤t, int hashedIndex)
Definition:
EcalLaserHandler.cc:57
EcalPedestalsRcd.h
Oracle.h
EventSetup
popcon::EcalLaserHandler::m_sid
std::string m_sid
Definition:
EcalLaserHandler.h:76
EcalLaserAPDPNRatios
Definition:
EcalLaserAPDPNRatios.h:14
ParameterSet.h
EventSetupRecordKey.h
popcon::EcalLaserHandler::dumpBarrelPayload
void dumpBarrelPayload(EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap const &laserMap)
Definition:
EcalLaserHandler.cc:92
ecalpyutils::hashedIndex
int hashedIndex(int ieta, int iphi)
Definition:
EcalPyUtils.cc:38
EcalCondDBInterface.h
popcon::EcalLaserHandler::econn
EcalCondDBInterface * econn
Definition:
EcalLaserHandler.h:58
Generated for CMSSW Reference Manual by
1.8.16