test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 32 of file QIE11DataFrame.cc.

References QIE11DataFrame::Sample::adc(), QIE11DataFrame::Sample::capid(), QIE11DataFrame::capidError(), DetId::det(), QIE11DataFrame::detid(), DetId::Hcal, i, QIE11DataFrame::linkError(), DetId::rawId(), alignCSCRings::s, QIE11DataFrame::samples(), QIE11DataFrame::Sample::soi(), QIE11DataFrame::Sample::tdc(), and QIE11DataFrame::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.capidError()) s << " CapIdError ";
41  if (digi.zsMarkAndPass()) s << " M&P ";
42  s << std::endl;
43  for (int i=0; i<digi.samples(); i++) {
44  QIE11DataFrame::Sample sam = digi[i];
45  s << " ADC=" << sam.adc() << " TDC=" << sam.tdc() << " CAPID=" << sam.capid();
46  if (sam.soi()) s << " SOI ";
47  s << std::endl;
48  }
49  return s;
50 }
int i
Definition: DBlmapReader.cc:9