CMS 3D CMS Logo

QIE11DataFrame.cc
Go to the documentation of this file.
3 
4 std::ostream& operator<<(std::ostream& s, const QIE11DataFrame& digi) {
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()) s << " LinkError ";
12  if (digi.capidError()) s << " CapIdError ";
13  if (digi.zsMarkAndPass()) s << " M&P ";
14  s << std::endl;
15  for (int i=0; i<digi.samples(); i++) {
16  QIE11DataFrame::Sample sam = digi[i];
17  s << " ADC=" << sam.adc() << " TDC=" << sam.tdc() << " CAPID=" << sam.capid();
18  if (sam.soi()) s << " SOI ";
19  s << std::endl;
20  }
21  return s;
22 }
DetId detid() const
Get the detector id.
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:50
std::ostream & operator<<(std::ostream &s, const QIE11DataFrame &digi)
bool linkError() const
was there a link error?
bool zsMarkAndPass() const
was this a mark-and-pass ZS event?
bool capidError() const
int samples() const
total number of samples in the digi
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:39