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 43 of file HcalUpgradeDataFrame.cc.

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

43  {
44  s << digi.id() << " " << digi.size() << " samples " << digi.presamples() << " presamples ";
45  for (int i=0; i<digi.size(); i++) {
46  int relSample = i - digi.presamples() ;
47  if ( relSample < 0 ) s << " (PRE) " ;
48  else s << " " ;
49  s << int(digi.adc(relSample)) << " (adc) " ;
50  s << int(digi.tdc(relSample)) << " (tdc) " ;
51  if ( digi.valid(relSample) ) s << " (DV) " ;
52  s << std::endl ;
53  }
54  return s;
55 }
int i
Definition: DBlmapReader.cc:9
uint8_t tdc(int iSample=0) const
bool valid(int iSample=0) const
const HcalDetId & id() const
uint16_t adc(int iSample=0) const