CMS 3D CMS Logo

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

Functions

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

Function Documentation

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

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 i
Definition: DBlmapReader.cc:9