CMS 3D CMS Logo

CTPPSPixelDAQMapping.cc
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  *
4  * Authors:
5  * F.Ferro ferro@ge.infn.it
6  *
7  ****************************************************************************/
8 
10 
12 
13 using namespace std;
14 
15 //----------------------------------------------------------------------------------------------------
16 
17 std::set<unsigned int> CTPPSPixelDAQMapping::fedIds() const {
18  std::set<unsigned int> fedSet;
19  for (const auto &p : ROCMapping){
20  fedSet.insert(p.first.getFEDId() );
21  }
22  return fedSet;
23 }
24 
25 std::ostream& operator << (std::ostream& s, const CTPPSPixelROCInfo &vi)
26 {
27  s << "ID="<< vi.iD << " ROC=" << vi.roc;
28 
29  return s;
30 }
31 
32 //----------------------------------------------------------------------------------------------------
33 
35 {
36  auto it = ROCMapping.find(fp);
37  if (it != ROCMapping.end())
38  {
39  edm::LogError("RPix") << "WARNING in DAQMapping::insert > Overwriting entry at " << fp << ". Previous: "
40  << " " << ROCMapping[fp] << "," << " new: " << " " << vi << ". ";
41  }
42 
43  ROCMapping[fp] = vi;
44 }
Contains mappind data related to a ROC.
std::set< unsigned int > fedIds() const
uint32_t iD
the symbolic id
std::ostream & operator<<(std::ostream &out, const std::tuple< Types... > &value)
Definition: Utilities.h:38
void insert(const CTPPSPixelFramePosition &fp, const CTPPSPixelROCInfo &vi)