CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/HcalDigi/src/HODataFrame.cc File Reference

#include "DataFormats/HcalDigi/interface/HODataFrame.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 63 of file HODataFrame.cc.

References HODataFrame::fiberIdleOffset(), i, HODataFrame::id(), HODataFrame::presamples(), asciidump::s, HODataFrame::sample(), HODataFrame::size(), HODataFrame::zsMarkAndPass(), and HODataFrame::zsUnsuppressed().

                                                               {
  s << digi.id() << " " << digi.size() << " samples  " << digi.presamples() << " presamples ";
  if (digi.zsUnsuppressed()) s << " zsUS ";
  if (digi.zsMarkAndPass()) s << " zsM&P ";
  if (digi.fiberIdleOffset()!=0) {
    if (digi.fiberIdleOffset()==-1000) s << " nofiberOffset";
    else s << " fiberOffset=" << digi.fiberIdleOffset();
  }
  s << std::endl;
  for (int i=0; i<digi.size(); i++) 
    s << "  " << digi.sample(i) << std::endl;
  return s;
}