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.

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 }

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

mps_fire.i
i
Definition: mps_fire.py:428
CastorDataFrame::id
const HcalCastorDetId & id() const
Definition: CastorDataFrame.h:22
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CastorDataFrame::sample
const HcalQIESample & sample(int i) const
access a sample
Definition: CastorDataFrame.h:39
CastorDataFrame::size
int size() const
total number of samples in the digi
Definition: CastorDataFrame.h:26
CastorDataFrame::fiberIdleOffset
int fiberIdleOffset() const
offset of bunch number for this channel relative to nominal set in the unpacker (range is +7->-7....
Definition: CastorDataFrame.cc:47
CastorDataFrame::presamples
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware)
Definition: CastorDataFrame.h:28