test
CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 61 of file HFDataFrame.cc.

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

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