Main Page
Namespaces
Classes
Package Documentation
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
MessageLogger.h
EcalCondDBInterface.h
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
popcon::EcalLaserHandler::m_maxtime
std::string m_maxtime
Definition:
EcalLaserHandler.h:80
popcon::EcalLaserHandler::myapdpns
const EcalLaserAPDPNRatios * myapdpns
Definition:
EcalLaserHandler.h:74
ParameterSet
Definition:
Functions.h:16
popcon::EcalLaserHandler::m_debug
bool m_debug
Definition:
EcalLaserHandler.h:81
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
EcalPedestals.h
Event.h
MakerMacros.h
EventSetup.h
popcon
Definition:
Exception.h:6
PixelMapPlotter.reason
reason
Definition:
PixelMapPlotter.py:509
popcon::EcalLaserHandler::m_sid
std::string m_sid
Definition:
EcalLaserHandler.h:76
EcalPedestalsRcd.h
ParameterSetfwd.h
Oracle.h
ParameterSet.h
popcon::EcalLaserHandler::econn
EcalCondDBInterface * econn
Definition:
EcalLaserHandler.h:58
EcalLaserAPDPNRatiosRefRcd.h
ecalpyutils::hashedIndex
int hashedIndex(int ieta, int iphi)
Definition:
EcalPyUtils.cc:38
EventSetup
EventSetupRecordKey.h
all_lmf_types.h
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
PoolDBOutputService.h
EcalLaserAPDPNRatiosRcd.h
ESHandle.h
EcalLaserAPDPNRatios
Definition:
EcalLaserAPDPNRatios.h:14
Service.h
change_name.diff
diff
Definition:
change_name.py:13
Timestamp.h
popcon::EcalLaserHandler::m_fake
bool m_fake
Definition:
EcalLaserHandler.h:82
popcon::EcalLaserHandler::id
std::string id() const override
Definition:
EcalLaserHandler.h:59
EcalLaserAlphas.h
popcon::EcalLaserHandler::m_sequences
unsigned long m_sequences
Definition:
EcalLaserHandler.h:75
popcon::EcalLaserHandler
Definition:
EcalLaserHandler.h:51
PopConSourceHandler.h
popcon::EcalLaserHandler::m_user
std::string m_user
Definition:
EcalLaserHandler.h:77
EcalLaserAPDPNRatios.h
Event
edm
HLT enums.
Definition:
AlignableModifier.h:19
popcon::EcalLaserHandler::m_name
std::string m_name
Definition:
EcalLaserHandler.h:79
EcalLaserAPDPNRatios::EcalLaserAPDPNpair
Definition:
EcalLaserAPDPNRatios.h:16
EcalLaserAlphasRcd.h
edm::ParameterSet
Definition:
ParameterSet.h:36
EBDetId.h
EEDetId.h
EcalCondObjectContainer< EcalLaserAPDPNpair >
popcon::EcalLaserHandler::m_pass
std::string m_pass
Definition:
EcalLaserHandler.h:78
Handle.h
all_monitoring_types.h
EcalLaserAPDPNRatiosRef.h
Generated for CMSSW Reference Manual by
1.8.11