ATLAS Offline Software
Functions
CMAidentity.cxx File Reference
#include "RPC_CondCabling/CMAidentity.h"
#include <iomanip>
#include <string>
Include dependency graph for CMAidentity.cxx:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &stream, const CMAidentity &id)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  stream,
const CMAidentity id 
)

Definition at line 98 of file CMAidentity.cxx.

98  {
99  char exttag[5] = {' ', ' ', ' ', ' ', '\0'};
100  const char* tag = CMAidentity::covtag(id.m_params.coverage);
101  for (int i = 0; i < 5; ++i) {
102  if (tag[i] == '\0') break;
103  exttag[i] = tag[i];
104  }
105 
106  std::string covtag(exttag);
107 
108  std::string type = (id.type() == Phi) ? " phi cma " + covtag : " eta cma " + covtag;
109  if (!covtag.empty()) type = type + " ";
110  stream << type << std::setw(2) << id.number() << ": Eta ";
111  stream << std::setw(2) << id.eta_index();
112  stream << " Phi " << std::setw(2) << id.phi_index();
113  stream << " PAD " << std::setw(2) << id.PAD_index();
114  stream << " Ixx " << std::setw(2) << id.Ixx_index();
115  return stream;
116 }
Phi
@ Phi
Definition: RPCdef.h:8
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
lumiFormat.i
int i
Definition: lumiFormat.py:92
CMAidentity::covtag
static const char * covtag(const CMAcoverage co)
Definition: CMAidentity.h:24
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24