CMS 3D CMS Logo

Functions
QIE10DataFrame.cc File Reference
#include "DataFormats/HcalDigi/interface/QIE10DataFrame.h"
#include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const QIE10DataFrame &digi)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const QIE10DataFrame digi 
)

Definition at line 4 of file QIE10DataFrame.cc.

4  {
5  if (digi.detid().det() == DetId::Hcal) {
6  s << HcalGenericDetId(digi.detid());
7  } else {
8  s << "DetId(" << digi.detid().rawId() << ")";
9  }
10  s << " " << digi.samples() << " samples";
11  if (digi.linkError())
12  s << " LinkError ";
13  if (digi.zsMarkAndPass())
14  s << " MaP ";
15  s << std::endl;
16  for (int i = 0; i < digi.samples(); i++) {
17  QIE10DataFrame::Sample sam = digi[i];
18  s << " ADC=" << sam.adc() << " TDC(LE)=" << sam.le_tdc() << " TDC(TE)=" << sam.te_tdc()
19  << " CAPID=" << sam.capid();
20  if (sam.soi())
21  s << " SOI ";
22  if (!sam.ok())
23  s << " !OK ";
24  s << std::endl;
25  }
26  return s;
27 }

References QIE10DataFrame::Sample::adc(), QIE10DataFrame::Sample::capid(), DetId::det(), QIE10DataFrame::detid(), DetId::Hcal, mps_fire::i, QIE10DataFrame::Sample::le_tdc(), QIE10DataFrame::linkError(), QIE10DataFrame::Sample::ok(), DetId::rawId(), alignCSCRings::s, QIE10DataFrame::samples(), QIE10DataFrame::Sample::soi(), QIE10DataFrame::Sample::te_tdc(), and QIE10DataFrame::zsMarkAndPass().

mps_fire.i
i
Definition: mps_fire.py:428
HcalGenericDetId
Definition: HcalGenericDetId.h:15
QIE10DataFrame::samples
constexpr int samples() const
total number of samples in the digi
Definition: QIE10DataFrame.h:86
QIE10DataFrame::linkError
constexpr bool linkError() const
Definition: QIE10DataFrame.h:101
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
QIE10DataFrame::Sample::le_tdc
constexpr int le_tdc() const
Definition: QIE10DataFrame.h:45
QIE10DataFrame::Sample::adc
constexpr int adc() const
Definition: QIE10DataFrame.h:44
DetId::Hcal
Definition: DetId.h:28
alignCSCRings.s
s
Definition: alignCSCRings.py:92
QIE10DataFrame::detid
constexpr DetId detid() const
Get the detector id.
Definition: QIE10DataFrame.h:76
QIE10DataFrame::Sample::te_tdc
constexpr int te_tdc() const
Definition: QIE10DataFrame.h:46
QIE10DataFrame::Sample::capid
constexpr int capid() const
Definition: QIE10DataFrame.h:49
QIE10DataFrame::Sample::ok
constexpr bool ok() const
Definition: QIE10DataFrame.h:47
QIE10DataFrame::zsMarkAndPass
constexpr bool zsMarkAndPass() const
Definition: QIE10DataFrame.h:104
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
QIE10DataFrame::Sample
Definition: QIE10DataFrame.h:20
QIE10DataFrame::Sample::soi
constexpr bool soi() const
Definition: QIE10DataFrame.h:48