CMS 3D CMS Logo

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

◆ operator<<()

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

Definition at line 63 of file CastorDataFrame.cc.

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

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