CMS 3D CMS Logo

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 
11 
12 using namespace std;
13 
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 }
ret
prodAgent to be discontinued
unsigned short word
void Fill(word counter, TotemFramePosition fr)
add new value to map, counter takes value of EC or BC number
static std::atomic< unsigned int > counter