#include <ostream>
#include <string>
#include <utility>
#include <vector>
#include "DataFormats/L1Trigger/interface/L1MonitorDigi.h"
Go to the source code of this file.
Classes | |
struct | GltDEDigi |
class | L1DataEmulDigi |
Functions | |
std::ostream & | operator<< (std::ostream &, const L1DataEmulDigi &) |
std::ostream & | operator<< (std::ostream &, const GltDEDigi &) |
std::ostream& operator<< | ( | std::ostream & | , |
const L1DataEmulDigi & | |||
) |
Definition at line 52 of file L1DataEmulDigi.cc.
References L1DataEmulDigi::cid(), L1DataEmulDigi::data(), L1DataEmulDigi::rank(), alignCSCRings::s, L1DataEmulDigi::sid(), L1DataEmulDigi::type(), L1DataEmulDigi::x1(), L1DataEmulDigi::x2(), and L1DataEmulDigi::x3().
{ unsigned word[2]; float rankarr[2]; de.data(word); de.rank(rankarr); s << "DEdigi" << " subsystem: " << std::setw(2) << de.sid() << " (cid." << std::setw(2) << de.cid() << ")" << " location: " << "(" << std::setw(5) << std::setprecision(2) << de.x1() << "," << std::setw(5) << std::setprecision(2) << de.x2() << "," << std::setw(5) << std::setprecision(2) << de.x3() << ")" << " type: " << de.type() << std::hex << std::setfill('0') << " dword:0x" << std::setw(8)<< word[0] << " eword:0x" << std::setw(8)<< word[1] << std::dec << std::setfill(' ') << " rank:" << "(" << std::setw(5) << std::setprecision(2) << rankarr[0] << "," << std::setw(5) << std::setprecision(2) << rankarr[1] << ")"; return s; }
std::ostream& operator<< | ( | std::ostream & | , |
const GltDEDigi & | |||
) |
Definition at line 105 of file L1DataEmulDigi.cc.
References begin, GltDEDigi::globalDBit, GltDEDigi::gltDecBits, GltDEDigi::gltTchBits, i, and alignCSCRings::s.
{ GltDEDigi::GltBits dbits[2], tbits[2]; bool glbit[2]; for(int i=0; i<2; i++) { glbit[i]=glt.globalDBit[i]; dbits[i]=glt.gltDecBits[i]; tbits[i]=glt.gltTchBits[i]; } s << "GT DEdigi" << " decision: " << glbit[0]; if(glbit[0]!=glbit[1]) s << "(data), " << glbit[1] << "(emul)"; s << "\n data dec-word: "; for(GltDEDigi::GltBits::const_iterator i=dbits[0].begin(); i!=dbits[0].end(); i++) s<<*i; s << "\n emul dec-word: "; for(GltDEDigi::GltBits::const_iterator i=dbits[1].begin(); i!=dbits[1].end(); i++) s<<*i; s << "\n data techical: "; for(GltDEDigi::GltBits::const_iterator i=tbits[0].begin(); i!=tbits[0].end(); i++) s<<*i; s << "\n emul technical: "; for(GltDEDigi::GltBits::const_iterator i=tbits[1].begin(); i!=tbits[1].end(); i++) s<<*i; return s; }