Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DQM
L1TMonitor
src
L1TRateHelper.cc
Go to the documentation of this file.
1
#include "
DQM/L1TMonitor/interface/L1TRateHelper.h
"
2
3
4
namespace
L1TRateHelper {
5
6
7
std::pair< int, int> L1TRateHelper::removeAndGetRateForEarliestTime(){
8
if
(
m_rateMap
.begin() ==
m_rateMap
.end() )
9
return
std::make_pair(-1,-1);
10
11
if
(
m_timeStart
==-1) {
12
m_timeStart
=
m_rateMap
.begin()->second.getTime()-1;
// so time will start from 1
13
}
14
int
r1 =
m_rateMap
.begin()->second.getTime()-
m_timeStart
;
15
int
r2 =
m_rateMap
.begin()->second.m_events;
16
m_lastRemovedOrbit
=
m_rateMap
.begin()->second.m_orbitHigh;
17
m_rateMap
.erase(
m_rateMap
.begin());
18
return
std::make_pair(r1,r2);
19
}
20
21
22
}
23
24
L1TRateHelper.h
L1TRateHelper::L1TRateHelper::m_timeStart
int m_timeStart
Definition:
L1TRateHelper.h:65
L1TRateHelper::L1TRateHelper::m_lastRemovedOrbit
int m_lastRemovedOrbit
Definition:
L1TRateHelper.h:64
L1TRateHelper::L1TRateHelper::m_rateMap
TRateMap m_rateMap
Definition:
L1TRateHelper.h:63
Generated for CMSSW Reference Manual by
1.8.5