CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

Definition at line 32 of file QIE10DataFrame.cc.

References QIE10DataFrame::Sample::adc(), QIE10DataFrame::Sample::capid(), DetId::det(), QIE10DataFrame::detid(), DetId::Hcal, 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().

32  {
33  if (digi.detid().det()==DetId::Hcal) {
34  s << HcalGenericDetId(digi.detid());
35  } else {
36  s << "DetId(" << digi.detid().rawId() << ")";
37  }
38  s << " " << digi.samples() << " samples";
39  if (digi.linkError()) s << " LinkError ";
40  if (digi.zsMarkAndPass()) s << " MaP ";
41  s << std::endl;
42  for (int i=0; i<digi.samples(); i++) {
43  QIE10DataFrame::Sample sam = digi[i];
44  s << " ADC=" << sam.adc() << " TDC(LE)=" << sam.le_tdc() << " TDC(TE)=" << sam.te_tdc() << " CAPID=" << sam.capid();
45  if (sam.soi()) s << " SOI ";
46  if (!sam.ok()) s << " !OK ";
47  s << std::endl;
48  }
49  return s;
50 }
int samples() const
total number of samples in the digi
int i
Definition: DBlmapReader.cc:9
bool linkError() const
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
bool zsMarkAndPass() const
DetId detid() const
Get the detector id.
Detector det() const
get the detector field from this detid
Definition: DetId.h:35