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  s << "ID=" << vi.iD << " ROC=" << vi.roc;
27 
28  return s;
29 }
30 
31 //----------------------------------------------------------------------------------------------------
32 
34  auto it = ROCMapping.find(fp);
35  if (it != ROCMapping.end()) {
36  edm::LogError("RPix") << "WARNING in DAQMapping::insert > Overwriting entry at " << fp << ". Previous: "
37  << " " << ROCMapping[fp] << ","
38  << " new: "
39  << " " << vi << ". ";
40  }
41 
42  ROCMapping[fp] = vi;
43 }
Contains mappind data related to a ROC.
Log< level::Error, false > LogError
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:32
void insert(const CTPPSPixelFramePosition &fp, const CTPPSPixelROCInfo &vi)