Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:30

0001 /****************************************************************************
0002  *
0003  * This is a part of TOTEM offline software.
0004  * Authors: 
0005  *   Maciej Wróbel (wroblisko@gmail.com)
0006  *   Jan Kašpar (jan.kaspar@gmail.com)
0007  *
0008  ****************************************************************************/
0009 
0010 #include "EventFilter/CTPPSRawToDigi/interface/CounterChecker.h"
0011 
0012 using namespace std;
0013 
0014 void CounterChecker::Fill(word counter, TotemFramePosition fr) {
0015   pair<CounterMap::iterator, bool> ret;
0016 
0017   vector<TotemFramePosition> list;
0018   list.push_back(fr);
0019   ret = relationMap.insert(pair<word, vector<TotemFramePosition> >(counter, list));
0020   if (ret.second == false)
0021     relationMap[counter].push_back(fr);
0022 }