test
CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 61 of file CastorDataFrame.cc.

References CastorDataFrame::fiberIdleOffset(), i, CastorDataFrame::id(), CastorDataFrame::presamples(), alignCSCRings::s, CastorDataFrame::sample(), and CastorDataFrame::size().

61  {
62  s << digi.id() << " " << digi.size() << " samples " << digi.presamples() << " presamples " << std::endl;
63  if (digi.fiberIdleOffset()!=0) {
64  if (digi.fiberIdleOffset()==-1000) s << " nofiberOffset";
65  else s << " fiberOffset=" << digi.fiberIdleOffset();
66  }
67  for (int i=0; i<digi.size(); i++)
68  s << " " << digi.sample(i) << std::endl;
69  return s;
70 }
int i
Definition: DBlmapReader.cc:9
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
int fiberIdleOffset() const
offset of bunch number for this channel relative to nominal set in the unpacker (range is +7-&gt;-7...
const HcalQIESample & sample(int i) const
access a sample
const HcalCastorDetId & id() const
int size() const
total number of samples in the digi