CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 62 of file ZDCDataFrame.cc.

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

62  {
63  s << digi.id() << " " << digi.size() << " samples " << digi.presamples() << " presamples ";
64  if (digi.zsUnsuppressed()) s << " zsUS ";
65  if (digi.zsMarkAndPass()) s << " zsM&P ";
66  if (digi.fiberIdleOffset()!=0) {
67  if (digi.fiberIdleOffset()==-1000) s << " nofiberOffset";
68  else s << " fiberOffset=" << digi.fiberIdleOffset();
69  }
70  s << std::endl;
71  for (int i=0; i<digi.size(); i++)
72  s << " " << digi.sample(i) << std::endl;
73  return s;
74 }
int i
Definition: DBlmapReader.cc:9
bool zsUnsuppressed() const
was ZS unsuppressed?
Definition: ZDCDataFrame.h:32
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: ZDCDataFrame.h:28
const HcalQIESample & sample(int i) const
access a sample
Definition: ZDCDataFrame.h:39
const HcalZDCDetId & id() const
Definition: ZDCDataFrame.h:22
int size() const
total number of samples in the digi
Definition: ZDCDataFrame.h:26
int fiberIdleOffset() const
offset of bunch number for this channel relative to nominal set in the unpacker (range is +7-&gt;-7...
Definition: ZDCDataFrame.cc:48
bool zsMarkAndPass() const
was ZS MarkAndPass?
Definition: ZDCDataFrame.h:30
string s
Definition: asciidump.py:422