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

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

Definition at line 36 of file QIE11DataFrame.cc.

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

36  {
37  if (digi.detid().det()==DetId::Hcal) {
38  s << HcalGenericDetId(digi.detid());
39  } else {
40  s << "DetId(" << digi.detid().rawId() << ")";
41  }
42  s << " " << digi.samples() << " samples";
43  if (digi.linkError()) s << " LinkError ";
44  if (digi.capidError()) s << " CapIdError ";
45  if (digi.zsMarkAndPass()) s << " M&P ";
46  s << std::endl;
47  for (int i=0; i<digi.samples(); i++) {
48  QIE11DataFrame::Sample sam = digi[i];
49  s << " ADC=" << sam.adc() << " TDC=" << sam.tdc() << " CAPID=" << sam.capid();
50  if (sam.soi()) s << " SOI ";
51  s << std::endl;
52  }
53  return s;
54 }
DetId detid() const
Get the detector id.
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
bool linkError() const
bool zsMarkAndPass() const
was this a mark-and-pass ZS event?
bool capidError() const
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
int samples() const
total number of samples in the digi