CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
HcalUpgradeDataFrame.cc File Reference
#include "DataFormats/HcalDigi/interface/HcalUpgradeDataFrame.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const HcalUpgradeDataFrame &digi)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const HcalUpgradeDataFrame digi 
)

Definition at line 69 of file HcalUpgradeDataFrame.cc.

References HcalUpgradeDataFrame::adc(), HcalUpgradeDataFrame::capId(), i, HcalUpgradeDataFrame::id(), HcalUpgradeDataFrame::presamples(), alignCSCRings::s, HcalUpgradeDataFrame::size(), HcalUpgradeDataFrame::tdc(), HcalUpgradeDataFrame::valid(), HcalUpgradeDataFrame::zsMarkAndPass(), and HcalUpgradeDataFrame::zsUnsuppressed().

69  {
70  s << digi.id() << " " << digi.size() << " samples " << digi.presamples() << " presamples ";
71  if (digi.zsUnsuppressed()) s << " zsUS";
72  if (digi.zsMarkAndPass()) s << " zsM&P";
73  s << std::endl;
74  for (int i=0; i<digi.size(); i++) {
75  if ( i < digi.presamples() ) s << " (PRE) " ;
76  else s << " " ;
77  s << int(digi.capId(i)) << " (capId) ";
78  s << int(digi.adc(i)) << " (adc) " ;
79  s << int(digi.tdc(i)) << " (tdc) " ;
80  if ( digi.valid(i) ) s << " (DV) " ;
81  s << std::endl ;
82  }
83  return s;
84 }
int i
Definition: DBlmapReader.cc:9
int capId(int iSample=0) const
bool valid(int iSample=0) const
uint16_t tdc(int iSample=0) const
const HcalDetId & id() const
uint16_t adc(int iSample=0) const