CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 4 of file QIE11DataFrame.cc.

4  {
5  if (digi.detid().det() == DetId::Hcal) {
6  s << "DetID=" << HcalGenericDetId(digi.detid()) << " flavor=" << digi.flavor();
7  } else {
8  s << "DetId(" << digi.detid().rawId() << ")";
9  }
10  s << " " << digi.samples() << " samples";
11  if (digi.linkError())
12  s << " LinkError ";
13  if (digi.capidError())
14  s << " CapIdError ";
15  if (digi.zsMarkAndPass())
16  s << " M&P ";
17  s << std::endl;
18  for (int i = 0; i < digi.samples(); i++) {
19  QIE11DataFrame::Sample sam = digi[i];
20  s << " ADC=" << sam.adc() << " TDC=" << sam.tdc() << " CAPID=" << sam.capid();
21  if (sam.soi())
22  s << " SOI ";
23  s << std::endl;
24  }
25  return s;
26 }

References QIE11DataFrame::Sample::adc(), QIE11DataFrame::Sample::capid(), QIE11DataFrame::capidError(), DetId::det(), QIE11DataFrame::detid(), QIE11DataFrame::flavor(), DetId::Hcal, mps_fire::i, QIE11DataFrame::linkError(), DetId::rawId(), alignCSCRings::s, QIE11DataFrame::samples(), QIE11DataFrame::Sample::soi(), QIE11DataFrame::Sample::tdc(), and QIE11DataFrame::zsMarkAndPass().

QIE11DataFrame::Sample::soi
constexpr bool soi() const
Definition: QIE11DataFrame.h:44
mps_fire.i
i
Definition: mps_fire.py:355
HcalGenericDetId
Definition: HcalGenericDetId.h:15
QIE11DataFrame::zsMarkAndPass
constexpr bool zsMarkAndPass() const
was this a mark-and-pass ZS event?
Definition: QIE11DataFrame.h:94
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
DetId::Hcal
Definition: DetId.h:28
alignCSCRings.s
s
Definition: alignCSCRings.py:92
QIE11DataFrame::Sample
Definition: QIE11DataFrame.h:25
QIE11DataFrame::Sample::tdc
constexpr int tdc() const
Definition: QIE11DataFrame.h:41
QIE11DataFrame::Sample::capid
constexpr int capid() const
Definition: QIE11DataFrame.h:45
QIE11DataFrame::samples
constexpr int samples() const
total number of samples in the digi
Definition: QIE11DataFrame.h:77
QIE11DataFrame::Sample::adc
constexpr int adc() const
Definition: QIE11DataFrame.h:40
QIE11DataFrame::capidError
constexpr bool capidError() const
Definition: QIE11DataFrame.h:92
QIE11DataFrame::detid
constexpr DetId detid() const
Get the detector id.
Definition: QIE11DataFrame.h:67
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
QIE11DataFrame::flavor
constexpr int flavor() const
get the flavor of the frame
Definition: QIE11DataFrame.h:87
QIE11DataFrame::linkError
constexpr bool linkError() const
was there a link error?
Definition: QIE11DataFrame.h:89