CondTools
RPC
interface
RPCEMapSourceHandler.h
Go to the documentation of this file.
1
#ifndef RPCEMAPSOURCEHANDLER
2
#define RPCEMAPSOURCEHANDLER
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/RPCEMap.h
"
19
#include "
CondFormats/DataRecord/interface/RPCEMapRcd.h
"
20
#include "
CondFormats/RPCObjects/interface/RPCReadOutMapping.h
"
21
#include "
CondFormats/RPCObjects/interface/DccSpec.h
"
22
#include "
CondFormats/RPCObjects/interface/TriggerBoardSpec.h
"
23
#include "
CondFormats/RPCObjects/interface/LinkConnSpec.h
"
24
#include "
CondFormats/RPCObjects/interface/LinkBoardSpec.h
"
25
#include "
CondFormats/RPCObjects/interface/ChamberLocationSpec.h
"
26
#include "
CondFormats/RPCObjects/interface/FebLocationSpec.h
"
27
#include "
CondFormats/RPCObjects/interface/FebConnectorSpec.h
"
28
#include "
CondFormats/RPCObjects/interface/ChamberStripSpec.h
"
29
#include "
CondFormats/RPCObjects/interface/DBSpecToDetUnit.h
"
30
31
#include "
CondCore/CondDB/interface/Session.h
"
32
#include "RelationalAccess/ITable.h"
33
#include "RelationalAccess/ISchema.h"
34
#include "RelationalAccess/IQuery.h"
35
#include "RelationalAccess/ICursor.h"
36
#include "CoralBase/AttributeList.h"
37
#include "CoralBase/Attribute.h"
38
#include "CoralBase/AttributeSpecification.h"
39
40
namespace
popcon
{
41
class
RPCEMapSourceHandler
:
public
popcon::PopConSourceHandler
<RPCEMap> {
42
public
:
43
RPCEMapSourceHandler
(
const
edm::ParameterSet
& ps);
44
~RPCEMapSourceHandler
()
override
;
45
void
getNewObjects
()
override
;
46
std::string
id
()
const override
{
return
m_name
; }
47
void
ConnectOnlineDB
(
std::string
connect
,
std::string
authPath
);
48
void
DisconnectOnlineDB
();
49
void
readEMap1
();
50
int
Compare2EMaps
(
const
Ref
& map1,
RPCEMap
* map2);
51
52
private
:
53
RPCEMap
*
eMap
;
54
cond::persistency::Session
session
;
55
std::string
m_name
;
56
int
m_dummy
;
57
int
m_validate
;
58
std::string
m_connect
;
59
std::string
m_authpath
;
60
61
// utilities
62
std::string
IntToString
(
int
num
) {
63
std::stringstream snum;
64
snum <<
num
<< std::flush;
65
return
(snum.str());
66
}
67
68
typedef
struct
{
69
int
febId, chamberId, connectorId, lbInputNum,
posInLocalEtaPart
, posInCmsEtaPart;
70
std::string
localEtaPart
, cmsEtaPart;
71
}
FEBStruct
;
72
};
73
}
// namespace popcon
74
#endif
lumi_dqm_sourceclient-live_cfg.authPath
authPath
Definition:
lumi_dqm_sourceclient-live_cfg.py:33
PopConSourceHandler.h
Handle.h
ChamberStripSpec.h
RPCReadOutMapping.h
popcon::RPCEMapSourceHandler::m_connect
std::string m_connect
Definition:
RPCEMapSourceHandler.h:58
ESHandle.h
popcon::RPCEMapSourceHandler::m_authpath
std::string m_authpath
Definition:
RPCEMapSourceHandler.h:59
popcon::RPCEMapSourceHandler::m_name
std::string m_name
Definition:
RPCEMapSourceHandler.h:55
popcon::RPCEMapSourceHandler::session
cond::persistency::Session session
Definition:
RPCEMapSourceHandler.h:54
popcon::RPCEMapSourceHandler::ConnectOnlineDB
void ConnectOnlineDB(std::string connect, std::string authPath)
Definition:
RPCEMapSourceHandler.cc:61
FebLocationSpec.h
popcon::RPCEMapSourceHandler::id
std::string id() const override
Definition:
RPCEMapSourceHandler.h:46
popcon::RPCEMapSourceHandler::readEMap1
void readEMap1()
Definition:
RPCEMapSourceHandler.cc:72
popcon::RPCEMapSourceHandler::RPCEMapSourceHandler
RPCEMapSourceHandler(const edm::ParameterSet &ps)
Definition:
RPCEMapSourceHandler.cc:7
RPCEMapRcd.h
MakerMacros.h
RPCEMap
Definition:
RPCEMap.h:13
popcon::RPCEMapSourceHandler
Definition:
RPCEMapSourceHandler.h:41
popcon::RPCEMapSourceHandler::Compare2EMaps
int Compare2EMaps(const Ref &map1, RPCEMap *map2)
Definition:
RPCEMapSourceHandler.cc:390
popcon::RPCEMapSourceHandler::DisconnectOnlineDB
void DisconnectOnlineDB()
Definition:
RPCEMapSourceHandler.cc:70
popcon::RPCEMapSourceHandler::~RPCEMapSourceHandler
~RPCEMapSourceHandler() override
Definition:
RPCEMapSourceHandler.cc:14
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
FebConnectorSpec.h
edm::ParameterSet
Definition:
ParameterSet.h:36
Event.h
popcon::RPCEMapSourceHandler::FEBStruct::posInLocalEtaPart
int posInLocalEtaPart
Definition:
RPCEMapSourceHandler.h:69
LinkBoardSpec.h
cond::persistency::Session
Definition:
Session.h:63
popcon::RPCEMapSourceHandler::FEBStruct
Definition:
RPCEMapSourceHandler.h:68
popcon::RPCEMapSourceHandler::eMap
RPCEMap * eMap
Definition:
RPCEMapSourceHandler.h:53
DBConfiguration_cff.connect
connect
Definition:
DBConfiguration_cff.py:18
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
EgammaValidation_cff.num
num
Definition:
EgammaValidation_cff.py:34
TriggerBoardSpec.h
popcon
Definition:
Exception.h:6
reco::JetExtendedAssociation::Ref
edm::Ref< Container > Ref
Definition:
JetExtendedAssociation.h:32
DBSpecToDetUnit.h
popcon::RPCEMapSourceHandler::FEBStruct::localEtaPart
std::string localEtaPart
Definition:
RPCEMapSourceHandler.h:70
popcon::RPCEMapSourceHandler::m_validate
int m_validate
Definition:
RPCEMapSourceHandler.h:57
ParameterSetfwd.h
EventSetup.h
RPCEMap.h
ChamberLocationSpec.h
Session.h
popcon::RPCEMapSourceHandler::IntToString
std::string IntToString(int num)
Definition:
RPCEMapSourceHandler.h:62
LinkConnSpec.h
popcon::RPCEMapSourceHandler::getNewObjects
void getNewObjects() override
Definition:
RPCEMapSourceHandler.cc:16
DccSpec.h
popcon::RPCEMapSourceHandler::m_dummy
int m_dummy
Definition:
RPCEMapSourceHandler.h:56
Generated for CMSSW Reference Manual by
1.8.16