EventFilter
CTPPSRawToDigi
src
CounterChecker.cc
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* This is a part of TOTEM offline software.
4
* Authors:
5
* Maciej Wróbel (wroblisko@gmail.com)
6
* Jan Kašpar (jan.kaspar@gmail.com)
7
*
8
****************************************************************************/
9
10
#include "
EventFilter/CTPPSRawToDigi/interface/CounterChecker.h
"
11
12
using namespace
std
;
13
14
void
CounterChecker::Fill
(
word
counter
,
TotemFramePosition
fr) {
15
pair<CounterMap::iterator, bool>
ret
;
16
17
vector<TotemFramePosition> list;
18
list.push_back(fr);
19
ret
= relationMap.insert(pair<
word
, vector<TotemFramePosition> >(
counter
, list));
20
if
(
ret
.second ==
false
)
21
relationMap[
counter
].push_back(fr);
22
}
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition:
runTheMatrix.py:543
counter
Definition:
counter.py:1
CounterChecker::word
unsigned short word
Definition:
CounterChecker.h:33
TotemFramePosition
Definition:
TotemFramePosition.h:31
counter
static std::atomic< unsigned int > counter
Definition:
SharedResourceNames.cc:18
std
Definition:
JetResolutionObject.h:76
CounterChecker.h
CounterChecker::Fill
void Fill(word counter, TotemFramePosition fr)
add new value to map, counter takes value of EC or BC number
Definition:
CounterChecker.cc:14
Generated for CMSSW Reference Manual by
1.8.16