Main Page
Namespaces
Classes
Package Documentation
CVS Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
tuple ret
prodAgent to be discontinued
Definition:
runTheMatrix.py:596
TotemFramePosition
Definition:
TotemFramePosition.h:32
CounterChecker::word
unsigned short word
Definition:
CounterChecker.h:28
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
counter
static std::atomic< unsigned int > counter
Definition:
SharedResourceNames.cc:18
Generated for CMSSW Reference Manual by
1.8.5