Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
22
23
#include "
CondCore/DBCommon/interface/DbTransaction.h
"
24
#include "
CondCore/DBCommon/interface/DbSession.h
"
25
#include "
CondCore/DBCommon/interface/DbConnection.h
"
26
#include "RelationalAccess/ITable.h"
27
#include "RelationalAccess/ISchema.h"
28
#include "RelationalAccess/IQuery.h"
29
#include "RelationalAccess/ICursor.h"
30
#include "CoralBase/AttributeList.h"
31
#include "CoralBase/Attribute.h"
32
#include "CoralBase/AttributeSpecification.h"
33
34
namespace
popcon
35
{
36
class
L1RPCHwConfigSourceHandler
:
public
popcon::PopConSourceHandler
<L1RPCHwConfig>
37
{
38
39
public
:
40
L1RPCHwConfigSourceHandler
(
const
edm::ParameterSet
& ps);
41
~L1RPCHwConfigSourceHandler
();
42
void
getNewObjects
();
43
std::string
id
()
const
{
return
m_name
;}
44
void
ConnectOnlineDB
(
std::string
connect
,
std::string
authPath
);
45
void
DisconnectOnlineDB
();
46
void
readHwConfig1
();
47
int
Compare2Configs
(
const
Ref
& set1,
L1RPCHwConfig
* set2);
48
49
private
:
50
L1RPCHwConfig
*
disabledDevs
;
51
cond::DbSession
*
session
;
52
cond::DbConnection
*
connection
;
53
std::string
m_name
;
54
int
m_dummy
;
55
int
m_validate
;
56
std::vector<int>
m_disableCrates
;
57
std::vector<int>
m_disableTowers
;
58
std::string
m_connect
;
59
std::string
m_authpath
;
60
61
};
62
}
63
#endif
L1RPCHwConfig
Definition:
L1RPCHwConfig.h:66
reco::JetExtendedAssociation::Ref
edm::Ref< Container > Ref
Definition:
JetExtendedAssociation.h:32
Event.h
MakerMacros.h
EventSetup.h
popcon::L1RPCHwConfigSourceHandler::m_name
std::string m_name
Definition:
L1RPCHwConfigSourceHandler.h:53
Handle.h
popcon::L1RPCHwConfigSourceHandler::m_dummy
int m_dummy
Definition:
L1RPCHwConfigSourceHandler.h:54
popcon::L1RPCHwConfigSourceHandler::~L1RPCHwConfigSourceHandler
~L1RPCHwConfigSourceHandler()
Definition:
L1RPCHwConfigSourceHandler.cc:17
popcon::L1RPCHwConfigSourceHandler::Compare2Configs
int Compare2Configs(const Ref &set1, L1RPCHwConfig *set2)
Definition:
L1RPCHwConfigSourceHandler.cc:229
L1RPCHwConfig.h
ParameterSetfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
popcon::L1RPCHwConfigSourceHandler::m_disableCrates
std::vector< int > m_disableCrates
Definition:
L1RPCHwConfigSourceHandler.h:56
popcon::L1RPCHwConfigSourceHandler::m_disableTowers
std::vector< int > m_disableTowers
Definition:
L1RPCHwConfigSourceHandler.h:57
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:36
DbConnection.h
popcon::L1RPCHwConfigSourceHandler::disabledDevs
L1RPCHwConfig * disabledDevs
Definition:
L1RPCHwConfigSourceHandler.h:50
popcon::L1RPCHwConfigSourceHandler::readHwConfig1
void readHwConfig1()
Definition:
L1RPCHwConfigSourceHandler.cc:100
ESHandle.h
DbTransaction.h
popcon::L1RPCHwConfigSourceHandler::id
std::string id() const
Definition:
L1RPCHwConfigSourceHandler.h:43
DbSession.h
cond::DbConnection
Definition:
DbConnection.h:35
L1RPCHwConfigRcd.h
popcon::L1RPCHwConfigSourceHandler::m_connect
std::string m_connect
Definition:
L1RPCHwConfigSourceHandler.h:58
PopConSourceHandler.h
popcon::L1RPCHwConfigSourceHandler::getNewObjects
void getNewObjects()
Definition:
L1RPCHwConfigSourceHandler.cc:21
popcon::L1RPCHwConfigSourceHandler::connection
cond::DbConnection * connection
Definition:
L1RPCHwConfigSourceHandler.h:52
cond::DbSession
Definition:
DbSession.h:31
popcon::L1RPCHwConfigSourceHandler
Definition:
L1RPCHwConfigSourceHandler.h:36
popcon::L1RPCHwConfigSourceHandler::ConnectOnlineDB
void ConnectOnlineDB(std::string connect, std::string authPath)
Definition:
L1RPCHwConfigSourceHandler.cc:80
popcon::L1RPCHwConfigSourceHandler::m_validate
int m_validate
Definition:
L1RPCHwConfigSourceHandler.h:55
edm::ParameterSet
Definition:
ParameterSet.h:35
popcon::L1RPCHwConfigSourceHandler::DisconnectOnlineDB
void DisconnectOnlineDB()
Definition:
L1RPCHwConfigSourceHandler.cc:92
builder_last_value_cfg.authPath
tuple authPath
Definition:
builder_last_value_cfg.py:123
convertSQLitetoXML_cfg.connect
tuple connect
Definition:
convertSQLitetoXML_cfg.py:13
popcon::L1RPCHwConfigSourceHandler::session
cond::DbSession * session
Definition:
L1RPCHwConfigSourceHandler.h:51
popcon::L1RPCHwConfigSourceHandler::L1RPCHwConfigSourceHandler
L1RPCHwConfigSourceHandler(const edm::ParameterSet &ps)
Definition:
L1RPCHwConfigSourceHandler.cc:6
popcon::L1RPCHwConfigSourceHandler::m_authpath
std::string m_authpath
Definition:
L1RPCHwConfigSourceHandler.h:59
Generated for CMSSW Reference Manual by
1.8.5