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