1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
#ifndef ECAL_LASER_HANDLER_H
#define ECAL_LASER_HANDLER_H
#include <vector>
#include <typeinfo>
#include <string>
#include <map>
#include <iostream>
#include <ctime>
#include "CondCore/PopCon/interface/PopConSourceHandler.h"
#include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/EventSetupRecordKey.h"
#include "CondFormats/EcalObjects/interface/EcalPedestals.h"
#include "CondFormats/DataRecord/interface/EcalPedestalsRcd.h"
#include "CondFormats/EcalObjects/interface/EcalLaserAPDPNRatios.h"
#include "CondFormats/DataRecord/interface/EcalLaserAPDPNRatiosRcd.h"
#include "CondFormats/EcalObjects/interface/EcalLaserAPDPNRatiosRef.h"
#include "CondFormats/DataRecord/interface/EcalLaserAPDPNRatiosRefRcd.h"
#include "CondFormats/EcalObjects/interface/EcalLaserAlphas.h"
#include "CondFormats/DataRecord/interface/EcalLaserAlphasRcd.h"
#include "OnlineDB/EcalCondDB/interface/all_monitoring_types.h"
#include "OnlineDB/EcalCondDB/interface/all_lmf_types.h"
#include "OnlineDB/Oracle/interface/Oracle.h"
#include "OnlineDB/EcalCondDB/interface/EcalCondDBInterface.h"
#include "DataFormats/EcalDetId/interface/EEDetId.h"
#include "DataFormats/EcalDetId/interface/EBDetId.h"
#include "DataFormats/Provenance/interface/Timestamp.h"
namespace edm {
class ParameterSet;
class Event;
class EventSetup;
} // namespace edm
namespace popcon {
class EcalLaserHandler : public popcon::PopConSourceHandler<EcalLaserAPDPNRatios> {
public:
void getNewObjects() override;
double diff(float x, float old_x);
~EcalLaserHandler() override;
EcalLaserHandler(edm::ParameterSet const &);
EcalCondDBInterface *econn;
std::string id() const override { return m_name; }
void notifyProblems(const EcalLaserAPDPNRatios::EcalLaserAPDPNpair &old,
const EcalLaserAPDPNRatios::EcalLaserAPDPNpair ¤t,
int hashedIndex,
const std::string &reason);
bool checkAPDPN(const EcalLaserAPDPNRatios::EcalLaserAPDPNpair &old,
const EcalLaserAPDPNRatios::EcalLaserAPDPNpair ¤t,
int hashedIndex);
bool checkAPDPNs(const EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap &laserMap,
const EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap &apdpns_popcon);
void dumpBarrelPayload(EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap const &laserMap);
void dumpEndcapPayload(EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap const &laserMap);
private:
const EcalLaserAPDPNRatios *myapdpns;
unsigned long m_sequences;
std::string m_sid;
std::string m_user;
std::string m_pass;
std::string m_name;
std::string m_maxtime;
bool m_debug;
bool m_fake;
};
} // namespace popcon
#endif
|