CMS 3D CMS Logo

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

◆ operator<<() [1/2]

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

Definition at line 69 of file L1DataEmulDigi.cc.

References L1DataEmulDigi::cid(), L1DataEmulDigi::data(), TauDecayModes::dec, L1DataEmulDigi::rank(), alignCSCRings::s, L1DataEmulDigi::sid(), L1DataEmulDigi::type(), L1DataEmulDigi::x1(), L1DataEmulDigi::x2(), and L1DataEmulDigi::x3().

69  {
70  unsigned word[2];
71  float rankarr[2];
72  de.data(word);
73  de.rank(rankarr);
74  s << "DEdigi"
75  << " subsystem: " << std::setw(2) << de.sid() << " (cid." << std::setw(2) << de.cid() << ")"
76  << " location: "
77  << "(" << std::setw(5) << std::setprecision(2) << de.x1() << "," << std::setw(5) << std::setprecision(2) << de.x2()
78  << "," << std::setw(5) << std::setprecision(2) << de.x3() << ")"
79  << " type: " << de.type() << std::hex << std::setfill('0') << " dword:0x" << std::setw(8) << word[0] << " eword:0x"
80  << std::setw(8) << word[1] << std::dec << std::setfill(' ') << " rank:"
81  << "(" << std::setw(5) << std::setprecision(2) << rankarr[0] << "," << std::setw(5) << std::setprecision(2)
82  << rankarr[1] << ")";
83  return s;
84 }
void data(unsigned int *d) const
int type() const
void rank(float *r) const
double x3() const
int cid() const
double x2() const
uint64_t word
double x1() const
int sid() const

◆ operator<<() [2/2]

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

Definition at line 112 of file L1DataEmulDigi.cc.

References glt, mps_fire::i, and alignCSCRings::s.

112  {
113  GltDEDigi::GltBits dbits[2], tbits[2];
114  bool glbit[2];
115  for (int i = 0; i < 2; i++) {
116  glbit[i] = glt.globalDBit[i];
117  dbits[i] = glt.gltDecBits[i];
118  tbits[i] = glt.gltTchBits[i];
119  }
120  s << "GT DEdigi"
121  << " decision: " << glbit[0];
122  if (glbit[0] != glbit[1])
123  s << "(data), " << glbit[1] << "(emul)";
124  s << "\n data dec-word: ";
125  for (GltDEDigi::GltBits::const_iterator i = dbits[0].begin(); i != dbits[0].end(); i++)
126  s << *i;
127  s << "\n emul dec-word: ";
128  for (GltDEDigi::GltBits::const_iterator i = dbits[1].begin(); i != dbits[1].end(); i++)
129  s << *i;
130  s << "\n data techical: ";
131  for (GltDEDigi::GltBits::const_iterator i = tbits[0].begin(); i != tbits[0].end(); i++)
132  s << *i;
133  s << "\n emul technical: ";
134  for (GltDEDigi::GltBits::const_iterator i = tbits[1].begin(); i != tbits[1].end(); i++)
135  s << *i;
136  return s;
137 }
std::vector< bool > GltBits
double glt
Definition: hdecay.h:104