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 15 of file QIE10DataFrame.cc.

References DetId::det(), QIE10DataFrame::detid(), DetId::Hcal, i, QIE10DataFrame::linkError(), convertSQLiteXML::ok, DetId::rawId(), alignCSCRings::s, QIE10DataFrame::samples(), and QIE10DataFrame::wasMarkAndPass().

15  {
16  if (digi.detid().det()==DetId::Hcal) {
17  s << HcalGenericDetId(digi.detid());
18  } else {
19  s << "DetId(" << digi.detid().rawId() << ")";
20  }
21  s << " " << digi.samples() << " samples";
22  if (digi.linkError()) s << " LinkError ";
23  if (digi.wasMarkAndPass()) s << " MaP ";
24  s << std::endl;
25  for (int i=0; i<digi.samples(); i++) {
26  s << " ADC=" << digi[i].adc() << " TDC(LE)=" << digi[i].le_tdc() << " TDC(TE)=" << digi[i].te_tdc() << " CAPID=" << digi[i].capid();
27  if (digi[i].soi()) s << " SOI ";
28  if (!digi[i].ok()) s << " !OK ";
29  s << std::endl;
30  }
31  return s;
32 }
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 wasMarkAndPass() const
DetId detid() const
Get the detector id.
Detector det() const
get the detector field from this detid
Definition: DetId.h:35