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 "DataFormats/Common/interface/DataFrameContainer.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 18 of file QIE11DataFrame.cc.

References QIE11DataFrame::capidError(), DetId::det(), QIE11DataFrame::detid(), DetId::Hcal, i, QIE11DataFrame::linkError(), DetId::rawId(), alignCSCRings::s, QIE11DataFrame::samples(), and QIE11DataFrame::wasMarkAndPass().

18  {
19  if (digi.detid().det()==DetId::Hcal) {
20  s << HcalGenericDetId(digi.detid());
21  } else {
22  s << "DetId(" << digi.detid().rawId() << ")";
23  }
24  s << " " << digi.samples() << " samples";
25  if (digi.linkError()) s << " LinkError ";
26  if (digi.capidError()) s << " CapIdError ";
27  if (digi.wasMarkAndPass()) s << " M&P ";
28  s << std::endl;
29  for (int i=0; i<digi.samples(); i++) {
30  s << " ADC=" << digi[i].adc() << " TDC=" << digi[i].tdc() << " CAPID=" << digi[i].capid();
31  if (digi[i].soi()) s << " SOI ";
32  s << std::endl;
33  }
34  return s;
35 }
int i
Definition: DBlmapReader.cc:9