DQM
RPCMonitorClient
src
RPCDBHandler.cc
Go to the documentation of this file.
1
#include "
CondCore/CondDB/interface/Types.h
"
2
#include "
DQM/RPCMonitorClient/interface/RPCDBHandler.h
"
3
4
RPCDBHandler::RPCDBHandler
(
const
edm::ParameterSet
& iConfig)
5
: m_name(iConfig.getUntrackedParameter<
std
::
string
>(
"name"
,
"RPCDBHandler"
)),
6
sinceTime(iConfig.getUntrackedParameter<unsigned>(
"IOVRun"
, 0)) {}
7
8
RPCDBHandler::~RPCDBHandler
() {}
9
10
void
RPCDBHandler::getNewObjects
() {
11
cond::Time_t
myTime =
sinceTime
;
12
13
// std::cout << "sinceTime= " << myTime << std::endl;
14
15
size_t
n_empty_run = 0;
16
if
(
tagInfo
().
size
> 0 && (
tagInfo
().lastInterval.since + 1) < myTime) {
17
n_empty_run = myTime -
tagInfo
().
lastInterval
.
since
- 1;
18
}
19
20
if
(n_empty_run != 0) {
21
RPCDQMObject
*
r
=
new
RPCDQMObject
();
22
m_to_transfer
.push_back(std::make_pair((
RPCDQMObject
*)(
r
->Fake_RPCDQMObject()),
tagInfo
().
lastInterval
.
since
+ 1));
23
}
24
25
m_to_transfer
.push_back(std::make_pair(
rpcDQMObject
, myTime));
26
}
27
28
void
RPCDBHandler::initObject
(
RPCDQMObject
* fObject) {
rpcDQMObject
= fObject; }
popcon::PopConSourceHandler< RPCDQMObject >::m_to_transfer
OldContainer m_to_transfer
Definition:
PopConSourceHandler.h:162
RPCDBHandler.h
RPCDBHandler::getNewObjects
void getNewObjects() override
Definition:
RPCDBHandler.cc:10
RPCDBHandler::initObject
void initObject(RPCDQMObject *)
Definition:
RPCDBHandler.cc:28
RPCDBHandler::RPCDBHandler
RPCDBHandler(const edm::ParameterSet &pset)
Definition:
RPCDBHandler.cc:4
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:36
popcon::PopConSourceHandler< RPCDQMObject >::tagInfo
cond::TagInfo_t const & tagInfo() const
Definition:
PopConSourceHandler.h:78
RPCDQMObject
Definition:
RPCDQMObject.h:10
cond::Iov_t::since
Time_t since
Definition:
Types.h:53
cond::Time_t
unsigned long long Time_t
Definition:
Time.h:14
RPCDBHandler::rpcDQMObject
RPCDQMObject * rpcDQMObject
Definition:
RPCDBHandler.h:37
RPCDBHandler::sinceTime
unsigned int sinceTime
Definition:
RPCDBHandler.h:36
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
cond::TagInfo_t::lastInterval
Iov_t lastInterval
Definition:
Types.h:73
std
Definition:
JetResolutionObject.h:76
RPCDBHandler::~RPCDBHandler
~RPCDBHandler() override
Definition:
RPCDBHandler.cc:8
Types.h
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
Generated for CMSSW Reference Manual by
1.8.16