CMS 3D CMS Logo

Classes | Functions
QIE10DataFrame.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  QIE10DataFrame
 
class  QIE10DataFrame::Sample
 

Functions

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

Function Documentation

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

Definition at line 54 of file QIE10DataFrame.cc.

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

54  {
55  if (digi.detid().det()==DetId::Hcal) {
56  s << HcalGenericDetId(digi.detid());
57  } else {
58  s << "DetId(" << digi.detid().rawId() << ")";
59  }
60  s << " " << digi.samples() << " samples";
61  if (digi.linkError()) s << " LinkError ";
62  if (digi.zsMarkAndPass()) s << " MaP ";
63  s << std::endl;
64  for (int i=0; i<digi.samples(); i++) {
65  QIE10DataFrame::Sample sam = digi[i];
66  s << " ADC=" << sam.adc() << " TDC(LE)=" << sam.le_tdc() << " TDC(TE)=" << sam.te_tdc() << " CAPID=" << sam.capid();
67  if (sam.soi()) s << " SOI ";
68  if (!sam.ok()) s << " !OK ";
69  s << std::endl;
70  }
71  return s;
72 }