test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
();
50
void
getNewObjects
();
51
std::string
id
()
const
{
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
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
popcon::RPCEMapSourceHandler::IntToString
std::string IntToString(int num)
Definition:
RPCEMapSourceHandler.h:67
popcon::RPCEMapSourceHandler::getNewObjects
void getNewObjects()
Definition:
RPCEMapSourceHandler.cc:20
FebLocationSpec.h
Event.h
popcon::RPCEMapSourceHandler::DisconnectOnlineDB
void DisconnectOnlineDB()
Definition:
RPCEMapSourceHandler.cc:76
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:7
popcon::RPCEMapSourceHandler::m_name
std::string m_name
Definition:
RPCEMapSourceHandler.h:60
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:31
DccSpec.h
pileupDistInMC.num
tuple num
Definition:
pileupDistInMC.py:64
ESHandle.h
popcon::RPCEMapSourceHandler::~RPCEMapSourceHandler
~RPCEMapSourceHandler()
Definition:
RPCEMapSourceHandler.cc:16
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
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
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:59
edm::ParameterSet
Definition:
ParameterSet.h:36
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:51
popcon::RPCEMapSourceHandler::m_authpath
std::string m_authpath
Definition:
RPCEMapSourceHandler.h:64
DBSpecToDetUnit.h
Generated for CMSSW Reference Manual by
1.8.5