CMS 3D CMS Logo

Classes | Functions
QIE11DataFrame.h File Reference
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/Common/interface/DataFrame.h"
#include <ostream>

Go to the source code of this file.

Classes

class  QIE11DataFrame
 
class  QIE11DataFrame::Sample
 

Functions

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

Function Documentation

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

Definition at line 4 of file QIE11DataFrame.cc.

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().

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 }