CondTools
Ecal
interface
EcalSRPHandler.h
Go to the documentation of this file.
1
#ifndef ECAL_SRP_HANDLER_H
2
#define ECAL_SRP_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/EcalSRSettings.h
"
26
#include "
CondFormats/DataRecord/interface/EcalSRSettingsRcd.h
"
27
28
#include "
OnlineDB/EcalCondDB/interface/all_monitoring_types.h
"
29
#include "
OnlineDB/Oracle/interface/Oracle.h
"
30
#include "
OnlineDB/EcalCondDB/interface/EcalCondDBInterface.h
"
31
32
#include "
DataFormats/Provenance/interface/Timestamp.h
"
33
34
namespace
edm
{
35
class
ParameterSet
;
36
class
Event
;
37
class
EventSetup
;
38
}
// namespace edm
39
40
namespace
popcon
{
41
class
EcalSRPHandler
:
public
popcon::PopConSourceHandler
<EcalSRSettings> {
42
public
:
43
EcalSRPHandler
(
edm::ParameterSet
const
&);
44
~EcalSRPHandler
()
override
;
45
46
void
getNewObjects
()
override
;
47
std::string
id
()
const override
{
return
m_name
; }
48
EcalCondDBInterface
*
econn
;
49
void
importDccConfigFile
(
EcalSRSettings
& sr,
const
std::string
&
filename
,
bool
debug
=
false
);
50
void
PrintPayload
(
EcalSRSettings
& sr, std::ofstream&
fout
);
51
void
ChangePayload
(
EcalSRSettings
& sref,
EcalSRSettings
& sr);
52
53
private
:
54
unsigned
long
m_firstRun
;
55
unsigned
long
m_lastRun
;
56
std::string
m_sid
;
57
std::string
m_user
;
58
std::string
m_pass
;
59
std::string
m_name
;
60
std::string
m_location
;
61
std::string
m_runtype
;
62
std::string
m_gentag
;
63
std::string
m_i_tag
;
64
bool
m_debug
;
65
int
m_i_version
;
66
};
67
}
// namespace popcon
68
#endif
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:37
PopConSourceHandler.h
Handle.h
popcon::EcalSRPHandler::m_lastRun
unsigned long m_lastRun
Definition:
EcalSRPHandler.h:55
MessageLogger.h
EcalSRSettingsRcd.h
ESHandle.h
popcon::EcalSRPHandler::~EcalSRPHandler
~EcalSRPHandler() override
Definition:
EcalSRPHandler.cc:48
edm
HLT enums.
Definition:
AlignableModifier.h:19
popcon::EcalSRPHandler
Definition:
EcalSRPHandler.h:41
popcon::EcalSRPHandler::ChangePayload
void ChangePayload(EcalSRSettings &sref, EcalSRSettings &sr)
Definition:
EcalSRPHandler.cc:957
popcon::EcalSRPHandler::id
std::string id() const override
Definition:
EcalSRPHandler.h:47
popcon::EcalSRPHandler::getNewObjects
void getNewObjects() override
Definition:
EcalSRPHandler.cc:50
EcalSRSettings.h
MakerMacros.h
debug
#define debug
Definition:
HDRShower.cc:19
popcon::EcalSRPHandler::PrintPayload
void PrintPayload(EcalSRSettings &sr, std::ofstream &fout)
Definition:
EcalSRPHandler.cc:820
PoolDBOutputService.h
popcon::EcalSRPHandler::m_gentag
std::string m_gentag
Definition:
EcalSRPHandler.h:62
Service.h
popcon::EcalSRPHandler::m_firstRun
unsigned long m_firstRun
Definition:
EcalSRPHandler.h:54
popcon::EcalSRPHandler::m_debug
bool m_debug
Definition:
EcalSRPHandler.h:64
corrVsCorr.filename
filename
Definition:
corrVsCorr.py:123
Event
popcon::EcalSRPHandler::econn
EcalCondDBInterface * econn
Definition:
EcalSRPHandler.h:48
popcon::EcalSRPHandler::importDccConfigFile
void importDccConfigFile(EcalSRSettings &sr, const std::string &filename, bool debug=false)
Definition:
EcalSRPHandler.cc:737
all_monitoring_types.h
edm::ParameterSet
Definition:
ParameterSet.h:47
Timestamp.h
Event.h
popcon::EcalSRPHandler::EcalSRPHandler
EcalSRPHandler(edm::ParameterSet const &)
Definition:
EcalSRPHandler.cc:33
ParameterSet
Definition:
Functions.h:16
popcon::EcalSRPHandler::m_i_version
int m_i_version
Definition:
EcalSRPHandler.h:65
popcon::EcalSRPHandler::m_user
std::string m_user
Definition:
EcalSRPHandler.h:57
groupFilesInBlocks.fout
fout
Definition:
groupFilesInBlocks.py:162
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
popcon::EcalSRPHandler::m_pass
std::string m_pass
Definition:
EcalSRPHandler.h:58
EcalSRSettings
Definition:
EcalSRSettings.h:27
popcon::EcalSRPHandler::m_name
std::string m_name
Definition:
EcalSRPHandler.h:59
popcon
Definition:
Exception.h:6
popcon::EcalSRPHandler::m_sid
std::string m_sid
Definition:
EcalSRPHandler.h:56
ParameterSetfwd.h
EventSetup.h
popcon::EcalSRPHandler::m_location
std::string m_location
Definition:
EcalSRPHandler.h:60
Oracle.h
popcon::EcalSRPHandler::m_runtype
std::string m_runtype
Definition:
EcalSRPHandler.h:61
EventSetup
ParameterSet.h
EventSetupRecordKey.h
EcalCondDBInterface.h
popcon::EcalSRPHandler::m_i_tag
std::string m_i_tag
Definition:
EcalSRPHandler.h:63
Generated for CMSSW Reference Manual by
1.8.16