#include "RPC_CondCabling/CMAidentity.h"
#include <iomanip>
#include <string>
Go to the source code of this file.
◆ operator<<()
| std::ostream & operator<< |
( |
std::ostream & | stream, |
|
|
const CMAidentity & | id ) |
Definition at line 98 of file CMAidentity.cxx.
98 {
99 char exttag[5] = {' ', ' ', ' ', ' ', '\0'};
101 for (
int i = 0;
i < 5; ++
i) {
102 if (tag[i] == '\0') break;
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();
116}
static const char * covtag(const CMAcoverage co)