CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
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(), alignCSCRings::s, HODataFrame::sample(), HODataFrame::size(), HODataFrame::zsMarkAndPass(), and HODataFrame::zsUnsuppressed().

63  {
64  s << digi.id() << " " << digi.size() << " samples " << digi.presamples() << " presamples ";
65  if (digi.zsUnsuppressed()) s << " zsUS ";
66  if (digi.zsMarkAndPass()) s << " zsM&P ";
67  if (digi.fiberIdleOffset()!=0) {
68  if (digi.fiberIdleOffset()==-1000) s << " nofiberOffset";
69  else s << " fiberOffset=" << digi.fiberIdleOffset();
70  }
71  s << std::endl;
72  for (int i=0; i<digi.size(); i++)
73  s << " " << digi.sample(i) << std::endl;
74  return s;
75 }
int i
Definition: DBlmapReader.cc:9
int fiberIdleOffset() const
offset of bunch number for this channel relative to nominal set in the unpacker (range is +7-&gt;-7...
Definition: HODataFrame.cc:50
bool zsUnsuppressed() const
was ZS unsuppressed?
Definition: HODataFrame.h:33
const HcalQIESample & sample(int i) const
access a sample
Definition: HODataFrame.h:40
const HcalDetId & id() const
Definition: HODataFrame.h:23
bool zsMarkAndPass() const
was ZS MarkAndPass?
Definition: HODataFrame.h:31
int size() const
total number of samples in the digi
Definition: HODataFrame.h:27
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: HODataFrame.h:29