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 GltDEDigi &glt)
 
std::ostream & operator<< (std::ostream &s, const L1DataEmulDigi &de)
 

Function Documentation

◆ operator<<() [1/2]

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

Definition at line 112 of file L1DataEmulDigi.cc.

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 }

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

◆ operator<<() [2/2]

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

Definition at line 69 of file L1DataEmulDigi.cc.

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 }

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

mps_fire.i
i
Definition: mps_fire.py:428
L1DataEmulDigi::type
int type() const
Definition: L1DataEmulDigi.h:61
L1DataEmulDigi::sid
int sid() const
Definition: L1DataEmulDigi.h:56
L1DataEmulDigi::x2
double x2() const
Definition: L1DataEmulDigi.h:59
L1DataEmulDigi::x1
double x1() const
Definition: L1DataEmulDigi.h:58
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
alignCSCRings.s
s
Definition: alignCSCRings.py:92
L1DataEmulDigi::rank
void rank(float *r) const
Definition: L1DataEmulDigi.h:66
L1DataEmulDigi::cid
int cid() const
Definition: L1DataEmulDigi.h:57
GltDEDigi::GltBits
std::vector< bool > GltBits
Definition: L1DataEmulDigi.h:90
glt
double glt
Definition: hdecay.h:102
L1DataEmulDigi::x3
double x3() const
Definition: L1DataEmulDigi.h:60
L1DataEmulDigi::data
void data(unsigned int *d) const
Definition: L1DataEmulDigi.h:62
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142