CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
L1DataEmulDigi.cc File Reference
#include "DataFormats/L1Trigger/interface/L1DataEmulDigi.h"
#include <iomanip>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const L1DataEmulDigi &de)
 
std::ostream & operator<< (std::ostream &s, const GltDEDigi &glt)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const L1DataEmulDigi de 
)

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().

52  {
53  unsigned word[2];
54  float rankarr[2];
55  de.data(word);
56  de.rank(rankarr);
57  s << "DEdigi"
58  << " subsystem: " << std::setw(2) << de.sid()
59  << " (cid." << std::setw(2) << de.cid() << ")"
60  << " location: "
61  << "(" << std::setw(5) << std::setprecision(2) << de.x1()
62  << "," << std::setw(5) << std::setprecision(2) << de.x2()
63  << "," << std::setw(5) << std::setprecision(2) << de.x3() << ")"
64  << " type: " << de.type()
65  << std::hex << std::setfill('0')
66  << " dword:0x" << std::setw(8)<< word[0]
67  << " eword:0x" << std::setw(8)<< word[1]
68  << std::dec << std::setfill(' ')
69  << " rank:"
70  << "(" << std::setw(5) << std::setprecision(2) << rankarr[0]
71  << "," << std::setw(5) << std::setprecision(2) << rankarr[1] << ")";
72  return s;
73 }
void rank(float *r) const
int sid() const
int type() const
void data(unsigned int *d) const
int cid() const
double x2() const
double x1() const
double x3() const
std::ostream& operator<< ( std::ostream &  s,
const GltDEDigi glt 
)

Definition at line 105 of file L1DataEmulDigi.cc.

References begin, GltDEDigi::globalDBit, GltDEDigi::gltDecBits, GltDEDigi::gltTchBits, i, and alignCSCRings::s.

105  {
106  GltDEDigi::GltBits dbits[2], tbits[2];
107  bool glbit[2];
108  for(int i=0; i<2; i++) {
109  glbit[i]=glt.globalDBit[i];
110  dbits[i]=glt.gltDecBits[i];
111  tbits[i]=glt.gltTchBits[i];
112  }
113  s << "GT DEdigi"
114  << " decision: "
115  << glbit[0];
116  if(glbit[0]!=glbit[1])
117  s << "(data), " << glbit[1] << "(emul)";
118  s << "\n data dec-word: ";
119  for(GltDEDigi::GltBits::const_iterator i=dbits[0].begin();
120  i!=dbits[0].end(); i++) s<<*i;
121  s << "\n emul dec-word: ";
122  for(GltDEDigi::GltBits::const_iterator i=dbits[1].begin();
123  i!=dbits[1].end(); i++) s<<*i;
124  s << "\n data techical: ";
125  for(GltDEDigi::GltBits::const_iterator i=tbits[0].begin();
126  i!=tbits[0].end(); i++) s<<*i;
127  s << "\n emul technical: ";
128  for(GltDEDigi::GltBits::const_iterator i=tbits[1].begin();
129  i!=tbits[1].end(); i++) s<<*i;
130  return s;
131 }
int i
Definition: DBlmapReader.cc:9
std::vector< bool > GltBits
GltBits gltTchBits[2]
#define begin
Definition: vmac.h:31
bool globalDBit[2]
GltBits gltDecBits[2]