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

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 48 of file ITkStripCablingData.cxx.

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

◆ operator>>()

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

Definition at line 36 of file ITkStripCablingData.cxx.

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