Main Page
Namespaces
Classes
Package Documentation
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
32
33
#include "
CondCore/CondDB/interface/Session.h
"
34
#include "RelationalAccess/ITable.h"
35
#include "RelationalAccess/ISchema.h"
36
#include "RelationalAccess/IQuery.h"
37
#include "RelationalAccess/ICursor.h"
38
#include "CoralBase/AttributeList.h"
39
#include "CoralBase/Attribute.h"
40
#include "CoralBase/AttributeSpecification.h"
41
42
namespace
popcon
43
{
44
class
RPCEMapSourceHandler
:
public
popcon::PopConSourceHandler
<RPCEMap>
45
{
46
47
public
:
48
RPCEMapSourceHandler
(
const
edm::ParameterSet
& ps);
49
~RPCEMapSourceHandler
()
override
;
50
void
getNewObjects
()
override
;
51
std::string
id
()
const override
{
return
m_name
;}
52
void
ConnectOnlineDB
(
std::string
connect
,
std::string
authPath
);
53
void
DisconnectOnlineDB
();
54
void
readEMap1
();
55
int
Compare2EMaps
(
const
Ref
& map1,
RPCEMap
* map2);
56
57
private
:
58
RPCEMap
*
eMap
;
59
cond::persistency::Session
session
;
60
std::string
m_name
;
61
int
m_dummy
;
62
int
m_validate
;
63
std::string
m_connect
;
64
std::string
m_authpath
;
65
66
// utilities
67
std::string
IntToString
(
int
num
)
68
{
69
std::stringstream snum;
70
snum << num << std::flush;
71
return
(snum.str());
72
}
73
74
typedef
struct
{
int
febId,chamberId,connectorId,lbInputNum,
posInLocalEtaPart
,posInCmsEtaPart;
std::string
localEtaPart,cmsEtaPart;}
FEBStruct
;
75
};
76
}
77
#endif
popcon::RPCEMapSourceHandler::getNewObjects
void getNewObjects() override
Definition:
RPCEMapSourceHandler.cc:20
Session.h
reco::JetExtendedAssociation::Ref
edm::Ref< Container > Ref
Definition:
JetExtendedAssociation.h:32
popcon::RPCEMapSourceHandler::readEMap1
void readEMap1()
Definition:
RPCEMapSourceHandler.cc:81
popcon::RPCEMapSourceHandler::ConnectOnlineDB
void ConnectOnlineDB(std::string connect, std::string authPath)
Definition:
RPCEMapSourceHandler.cc:66
pileupDistInMC.num
num
Definition:
pileupDistInMC.py:64
popcon::RPCEMapSourceHandler::IntToString
std::string IntToString(int num)
Definition:
RPCEMapSourceHandler.h:67
FebLocationSpec.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
Event.h
popcon::RPCEMapSourceHandler::DisconnectOnlineDB
void DisconnectOnlineDB()
Definition:
RPCEMapSourceHandler.cc:76
MakerMacros.h
EventSetup.h
popcon
Definition:
Exception.h:6
LinkBoardSpec.h
RPCReadOutMapping.h
TriggerBoardSpec.h
RPCEMap
Definition:
RPCEMap.h:14
ParameterSetfwd.h
popcon::RPCEMapSourceHandler::RPCEMapSourceHandler
RPCEMapSourceHandler(const edm::ParameterSet &ps)
Definition:
RPCEMapSourceHandler.cc:7
popcon::RPCEMapSourceHandler::m_name
std::string m_name
Definition:
RPCEMapSourceHandler.h:60
popcon::RPCEMapSourceHandler::~RPCEMapSourceHandler
~RPCEMapSourceHandler() override
Definition:
RPCEMapSourceHandler.cc:16
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:32
DccSpec.h
ESHandle.h
popcon::RPCEMapSourceHandler::FEBStruct
Definition:
RPCEMapSourceHandler.h:74
RPCEMap.h
popcon::RPCEMapSourceHandler::Compare2EMaps
int Compare2EMaps(const Ref &map1, RPCEMap *map2)
Definition:
RPCEMapSourceHandler.cc:377
popcon::RPCEMapSourceHandler::FEBStruct::posInLocalEtaPart
int posInLocalEtaPart
Definition:
RPCEMapSourceHandler.h:74
ChamberStripSpec.h
LinkConnSpec.h
expressLumiProducer_cff.authPath
authPath
Definition:
expressLumiProducer_cff.py:4
popcon::RPCEMapSourceHandler::eMap
RPCEMap * eMap
Definition:
RPCEMapSourceHandler.h:58
popcon::RPCEMapSourceHandler::m_connect
std::string m_connect
Definition:
RPCEMapSourceHandler.h:63
popcon::RPCEMapSourceHandler::session
cond::persistency::Session session
Definition:
RPCEMapSourceHandler.h:59
popcon::RPCEMapSourceHandler::m_dummy
int m_dummy
Definition:
RPCEMapSourceHandler.h:61
popcon::RPCEMapSourceHandler::id
std::string id() const override
Definition:
RPCEMapSourceHandler.h:51
PopConSourceHandler.h
ChamberLocationSpec.h
popcon::RPCEMapSourceHandler
Definition:
RPCEMapSourceHandler.h:44
popcon::RPCEMapSourceHandler::m_validate
int m_validate
Definition:
RPCEMapSourceHandler.h:62
cond::persistency::Session
Definition:
Session.h:62
edm::ParameterSet
Definition:
ParameterSet.h:36
DBConfiguration_cff.connect
connect
Definition:
DBConfiguration_cff.py:18
FebConnectorSpec.h
RPCEMapRcd.h
popcon::RPCEMapSourceHandler::m_authpath
std::string m_authpath
Definition:
RPCEMapSourceHandler.h:64
DBSpecToDetUnit.h
Handle.h
Generated for CMSSW Reference Manual by
1.8.11