CondTools
RPC
interface
L1RPCHwConfigSourceHandler.h
Go to the documentation of this file.
1
#ifndef L1RPCHWCONFIGSOURCEHANDLER
2
#define L1RPCHWCONFIGSOURCEHANDLER
3
4
#include <vector>
5
#include <string>
6
#include <iostream>
7
#include <typeinfo>
8
9
#include "
FWCore/Framework/interface/MakerMacros.h
"
10
#include "
CondCore/PopCon/interface/PopConSourceHandler.h
"
11
//#include "CondCore/PopCon/interface/LogReader.h"
12
#include "
FWCore/Framework/interface/ESHandle.h
"
13
#include "
FWCore/Framework/interface/Event.h
"
14
#include "
DataFormats/Common/interface/Handle.h
"
15
#include "
FWCore/Framework/interface/EventSetup.h
"
16
#include "
FWCore/ParameterSet/interface/ParameterSetfwd.h
"
17
18
#include "
CondFormats/RPCObjects/interface/L1RPCHwConfig.h
"
19
#include "
CondFormats/DataRecord/interface/L1RPCHwConfigRcd.h
"
20
21
#include "
CondCore/CondDB/interface/Session.h
"
22
#include "RelationalAccess/ITable.h"
23
#include "RelationalAccess/ISchema.h"
24
#include "RelationalAccess/IQuery.h"
25
#include "RelationalAccess/ICursor.h"
26
#include "CoralBase/AttributeList.h"
27
#include "CoralBase/Attribute.h"
28
#include "CoralBase/AttributeSpecification.h"
29
30
namespace
popcon
{
31
class
L1RPCHwConfigSourceHandler
:
public
popcon::PopConSourceHandler
<L1RPCHwConfig> {
32
public
:
33
L1RPCHwConfigSourceHandler
(
const
edm::ParameterSet
& ps);
34
~L1RPCHwConfigSourceHandler
()
override
;
35
void
getNewObjects
()
override
;
36
std::string
id
()
const override
{
return
m_name
; }
37
void
ConnectOnlineDB
(
std::string
connect
,
std::string
authPath
);
38
void
DisconnectOnlineDB
();
39
void
readHwConfig1
();
40
int
Compare2Configs
(
const
Ref
& set1,
L1RPCHwConfig
* set2);
41
42
private
:
43
L1RPCHwConfig
*
disabledDevs
;
44
cond::persistency::Session
session
;
45
std::string
m_name
;
46
int
m_dummy
;
47
int
m_validate
;
48
std::vector<int>
m_disableCrates
;
49
std::vector<int>
m_disableTowers
;
50
std::string
m_connect
;
51
std::string
m_authpath
;
52
};
53
}
// namespace popcon
54
#endif
lumi_dqm_sourceclient-live_cfg.authPath
authPath
Definition:
lumi_dqm_sourceclient-live_cfg.py:33
PopConSourceHandler.h
Handle.h
popcon::L1RPCHwConfigSourceHandler::m_validate
int m_validate
Definition:
L1RPCHwConfigSourceHandler.h:47
popcon::L1RPCHwConfigSourceHandler::id
std::string id() const override
Definition:
L1RPCHwConfigSourceHandler.h:36
popcon::L1RPCHwConfigSourceHandler::m_connect
std::string m_connect
Definition:
L1RPCHwConfigSourceHandler.h:50
ESHandle.h
L1RPCHwConfigRcd.h
popcon::L1RPCHwConfigSourceHandler::L1RPCHwConfigSourceHandler
L1RPCHwConfigSourceHandler(const edm::ParameterSet &ps)
Definition:
L1RPCHwConfigSourceHandler.cc:7
popcon::L1RPCHwConfigSourceHandler::session
cond::persistency::Session session
Definition:
L1RPCHwConfigSourceHandler.h:44
popcon::L1RPCHwConfigSourceHandler::~L1RPCHwConfigSourceHandler
~L1RPCHwConfigSourceHandler() override
Definition:
L1RPCHwConfigSourceHandler.cc:16
popcon::L1RPCHwConfigSourceHandler::disabledDevs
L1RPCHwConfig * disabledDevs
Definition:
L1RPCHwConfigSourceHandler.h:43
popcon::L1RPCHwConfigSourceHandler::readHwConfig1
void readHwConfig1()
Definition:
L1RPCHwConfigSourceHandler.cc:88
MakerMacros.h
popcon::L1RPCHwConfigSourceHandler::m_authpath
std::string m_authpath
Definition:
L1RPCHwConfigSourceHandler.h:51
popcon::L1RPCHwConfigSourceHandler
Definition:
L1RPCHwConfigSourceHandler.h:31
popcon::L1RPCHwConfigSourceHandler::m_dummy
int m_dummy
Definition:
L1RPCHwConfigSourceHandler.h:46
popcon::L1RPCHwConfigSourceHandler::m_disableCrates
std::vector< int > m_disableCrates
Definition:
L1RPCHwConfigSourceHandler.h:48
popcon::L1RPCHwConfigSourceHandler::ConnectOnlineDB
void ConnectOnlineDB(std::string connect, std::string authPath)
Definition:
L1RPCHwConfigSourceHandler.cc:76
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:36
L1RPCHwConfig
Definition:
L1RPCHwConfig.h:65
Event.h
popcon::L1RPCHwConfigSourceHandler::DisconnectOnlineDB
void DisconnectOnlineDB()
Definition:
L1RPCHwConfigSourceHandler.cc:86
cond::persistency::Session
Definition:
Session.h:63
L1RPCHwConfig.h
DBConfiguration_cff.connect
connect
Definition:
DBConfiguration_cff.py:18
popcon::L1RPCHwConfigSourceHandler::Compare2Configs
int Compare2Configs(const Ref &set1, L1RPCHwConfig *set2)
Definition:
L1RPCHwConfigSourceHandler.cc:221
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
popcon::L1RPCHwConfigSourceHandler::m_name
std::string m_name
Definition:
L1RPCHwConfigSourceHandler.h:45
popcon::L1RPCHwConfigSourceHandler::getNewObjects
void getNewObjects() override
Definition:
L1RPCHwConfigSourceHandler.cc:18
popcon
Definition:
Exception.h:6
reco::JetExtendedAssociation::Ref
edm::Ref< Container > Ref
Definition:
JetExtendedAssociation.h:32
ParameterSetfwd.h
EventSetup.h
Session.h
popcon::L1RPCHwConfigSourceHandler::m_disableTowers
std::vector< int > m_disableTowers
Definition:
L1RPCHwConfigSourceHandler.h:49
Generated for CMSSW Reference Manual by
1.8.16