ATLAS Offline Software
Functions
ITkPixelCablingData.cxx File Reference
#include "ITkPixelCabling/ITkPixelCablingData.h"
#include <iostream>
Include dependency graph for ITkPixelCablingData.cxx:

Go to the source code of this file.

Functions

std::istream & operator>> (std::istream &is, ITkPixelCablingData &cabling)
 
std::ostream & operator<< (std::ostream &os, const ITkPixelCablingData &cabling)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const ITkPixelCablingData cabling 
)

Definition at line 47 of file ITkPixelCablingData.cxx.

48  {
49  for (const auto & [offlineId, onlineId]:cabling.m_offline2OnlineMap){
50  os<<offlineId<<", "<<onlineId<<"\n";
51  }
52  os<<std::endl;
53  return os;
54 }

◆ operator>>()

std::istream& operator>> ( std::istream &  is,
ITkPixelCablingData cabling 
)

Definition at line 35 of file ITkPixelCablingData.cxx.

35  {
36  unsigned int onlineInt{}, offlineInt{};
37  //very primitive, should refine with regex and value range checking
38  while(is>>offlineInt>>onlineInt){
39  const Identifier offlineId(offlineInt);
40  const ITkPixelOnlineId onlineId(onlineInt);
41  cabling.m_offline2OnlineMap[offlineId] = onlineId;
42  }
43  return is;
44 }
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
ITkPixelOnlineId
Definition: ITkPixelOnlineId.h:16
Identifier
Definition: IdentifierFieldParser.cxx:14