src
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
popcon::RPCEMapSourceHandler::getNewObjects
void getNewObjects() override
Definition:
RPCEMapSourceHandler.cc:16
Session.h
popcon::RPCEMapSourceHandler::readEMap1
void readEMap1()
Definition:
RPCEMapSourceHandler.cc:72
popcon::RPCEMapSourceHandler::ConnectOnlineDB
void ConnectOnlineDB(std::string connect, std::string authPath)
Definition:
RPCEMapSourceHandler.cc:61
popcon::RPCEMapSourceHandler::IntToString
std::string IntToString(int num)
Definition:
RPCEMapSourceHandler.h:62
FebLocationSpec.h
Event.h
popcon::RPCEMapSourceHandler::DisconnectOnlineDB
void DisconnectOnlineDB()
Definition:
RPCEMapSourceHandler.cc:70
MakerMacros.h
EventSetup.h
popcon
Definition:
Exception.h:6
LinkBoardSpec.h
RPCReadOutMapping.h
TriggerBoardSpec.h
RPCEMap
Definition:
RPCEMap.h:13
ParameterSetfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
popcon::RPCEMapSourceHandler::RPCEMapSourceHandler
RPCEMapSourceHandler(const edm::ParameterSet &ps)
Definition:
RPCEMapSourceHandler.cc:7
GlobalPosition_Frontier_DevDB_cff.connect
connect
Definition:
GlobalPosition_Frontier_DevDB_cff.py:8
popcon::RPCEMapSourceHandler::m_name
std::string m_name
Definition:
RPCEMapSourceHandler.h:55
popcon::RPCEMapSourceHandler::~RPCEMapSourceHandler
~RPCEMapSourceHandler() override
Definition:
RPCEMapSourceHandler.cc:14
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:30
DccSpec.h
ESHandle.h
popcon::RPCEMapSourceHandler::FEBStruct
Definition:
RPCEMapSourceHandler.h:68
RPCEMap.h
popcon::RPCEMapSourceHandler::Compare2EMaps
int Compare2EMaps(const Ref &map1, RPCEMap *map2)
Definition:
RPCEMapSourceHandler.cc:390
popcon::RPCEMapSourceHandler::FEBStruct::posInLocalEtaPart
int posInLocalEtaPart
Definition:
RPCEMapSourceHandler.h:69
ChamberStripSpec.h
LinkConnSpec.h
popcon::RPCEMapSourceHandler::eMap
RPCEMap * eMap
Definition:
RPCEMapSourceHandler.h:53
EgammaValidation_cff.num
num
Definition:
EgammaValidation_cff.py:33
popcon::RPCEMapSourceHandler::m_connect
std::string m_connect
Definition:
RPCEMapSourceHandler.h:58
popcon::RPCEMapSourceHandler::session
cond::persistency::Session session
Definition:
RPCEMapSourceHandler.h:54
popcon::RPCEMapSourceHandler::m_dummy
int m_dummy
Definition:
RPCEMapSourceHandler.h:56
PopConSourceHandler.h
popcon::RPCEMapSourceHandler::FEBStruct::localEtaPart
std::string localEtaPart
Definition:
RPCEMapSourceHandler.h:70
ChamberLocationSpec.h
popcon::RPCEMapSourceHandler
Definition:
RPCEMapSourceHandler.h:41
popcon::PopConSourceHandler< RPCEMap >::Ref
std::unique_ptr< RPCEMap > Ref
Definition:
PopConSourceHandler.h:37
popcon::RPCEMapSourceHandler::m_validate
int m_validate
Definition:
RPCEMapSourceHandler.h:57
cond::persistency::Session
Definition:
Session.h:63
edm::ParameterSet
Definition:
ParameterSet.h:47
FebConnectorSpec.h
RPCEMapRcd.h
lumi_dqm_sourceclient-live_cfg.authPath
authPath
Definition:
lumi_dqm_sourceclient-live_cfg.py:34
popcon::RPCEMapSourceHandler::id
std::string id() const override
Definition:
RPCEMapSourceHandler.h:46
popcon::RPCEMapSourceHandler::m_authpath
std::string m_authpath
Definition:
RPCEMapSourceHandler.h:59
DBSpecToDetUnit.h
Handle.h
Generated for CMSSW Reference Manual by
1.8.14