Main Page
Namespaces
Classes
Package Documentation
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/CondDB/interface/Session.h
"
24
#include "RelationalAccess/ITable.h"
25
#include "RelationalAccess/ISchema.h"
26
#include "RelationalAccess/IQuery.h"
27
#include "RelationalAccess/ICursor.h"
28
#include "CoralBase/AttributeList.h"
29
#include "CoralBase/Attribute.h"
30
#include "CoralBase/AttributeSpecification.h"
31
32
namespace
popcon
33
{
34
class
L1RPCHwConfigSourceHandler
:
public
popcon::PopConSourceHandler
<L1RPCHwConfig>
35
{
36
37
public
:
38
L1RPCHwConfigSourceHandler
(
const
edm::ParameterSet
& ps);
39
~L1RPCHwConfigSourceHandler
()
override
;
40
void
getNewObjects
()
override
;
41
std::string
id
()
const override
{
return
m_name
;}
42
void
ConnectOnlineDB
(
std::string
connect
,
std::string
authPath
);
43
void
DisconnectOnlineDB
();
44
void
readHwConfig1
();
45
int
Compare2Configs
(
const
Ref
& set1,
L1RPCHwConfig
* set2);
46
47
private
:
48
L1RPCHwConfig
*
disabledDevs
;
49
cond::persistency::Session
session
;
50
std::string
m_name
;
51
int
m_dummy
;
52
int
m_validate
;
53
std::vector<int>
m_disableCrates
;
54
std::vector<int>
m_disableTowers
;
55
std::string
m_connect
;
56
std::string
m_authpath
;
57
58
};
59
}
60
#endif
Session.h
L1RPCHwConfig
Definition:
L1RPCHwConfig.h:70
reco::JetExtendedAssociation::Ref
edm::Ref< Container > Ref
Definition:
JetExtendedAssociation.h:32
popcon::L1RPCHwConfigSourceHandler::getNewObjects
void getNewObjects() override
Definition:
L1RPCHwConfigSourceHandler.cc:22
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
Event.h
MakerMacros.h
EventSetup.h
popcon
Definition:
Exception.h:6
popcon::L1RPCHwConfigSourceHandler::~L1RPCHwConfigSourceHandler
~L1RPCHwConfigSourceHandler() override
Definition:
L1RPCHwConfigSourceHandler.cc:18
popcon::L1RPCHwConfigSourceHandler::m_name
std::string m_name
Definition:
L1RPCHwConfigSourceHandler.h:50
popcon::L1RPCHwConfigSourceHandler::m_dummy
int m_dummy
Definition:
L1RPCHwConfigSourceHandler.h:51
popcon::L1RPCHwConfigSourceHandler::Compare2Configs
int Compare2Configs(const Ref &set1, L1RPCHwConfig *set2)
Definition:
L1RPCHwConfigSourceHandler.cc:226
L1RPCHwConfig.h
ParameterSetfwd.h
popcon::L1RPCHwConfigSourceHandler::m_disableCrates
std::vector< int > m_disableCrates
Definition:
L1RPCHwConfigSourceHandler.h:53
popcon::L1RPCHwConfigSourceHandler::m_disableTowers
std::vector< int > m_disableTowers
Definition:
L1RPCHwConfigSourceHandler.h:54
popcon::L1RPCHwConfigSourceHandler::id
std::string id() const override
Definition:
L1RPCHwConfigSourceHandler.h:41
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:32
popcon::L1RPCHwConfigSourceHandler::disabledDevs
L1RPCHwConfig * disabledDevs
Definition:
L1RPCHwConfigSourceHandler.h:48
popcon::L1RPCHwConfigSourceHandler::readHwConfig1
void readHwConfig1()
Definition:
L1RPCHwConfigSourceHandler.cc:97
ESHandle.h
L1RPCHwConfigRcd.h
expressLumiProducer_cff.authPath
authPath
Definition:
expressLumiProducer_cff.py:4
popcon::L1RPCHwConfigSourceHandler::m_connect
std::string m_connect
Definition:
L1RPCHwConfigSourceHandler.h:55
PopConSourceHandler.h
popcon::L1RPCHwConfigSourceHandler
Definition:
L1RPCHwConfigSourceHandler.h:34
popcon::L1RPCHwConfigSourceHandler::session
cond::persistency::Session session
Definition:
L1RPCHwConfigSourceHandler.h:49
popcon::L1RPCHwConfigSourceHandler::ConnectOnlineDB
void ConnectOnlineDB(std::string connect, std::string authPath)
Definition:
L1RPCHwConfigSourceHandler.cc:81
cond::persistency::Session
Definition:
Session.h:62
popcon::L1RPCHwConfigSourceHandler::m_validate
int m_validate
Definition:
L1RPCHwConfigSourceHandler.h:52
edm::ParameterSet
Definition:
ParameterSet.h:36
popcon::L1RPCHwConfigSourceHandler::DisconnectOnlineDB
void DisconnectOnlineDB()
Definition:
L1RPCHwConfigSourceHandler.cc:92
DBConfiguration_cff.connect
connect
Definition:
DBConfiguration_cff.py:18
popcon::L1RPCHwConfigSourceHandler::L1RPCHwConfigSourceHandler
L1RPCHwConfigSourceHandler(const edm::ParameterSet &ps)
Definition:
L1RPCHwConfigSourceHandler.cc:7
popcon::L1RPCHwConfigSourceHandler::m_authpath
std::string m_authpath
Definition:
L1RPCHwConfigSourceHandler.h:56
Handle.h
Generated for CMSSW Reference Manual by
1.8.11