CMS 3D CMS Logo

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

◆ operator<<()

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

Definition at line 3 of file HODataFrame.cc.

3  {
4  s << digi.id() << " " << digi.size() << " samples " << digi.presamples() << " presamples ";
5  if (digi.zsUnsuppressed())
6  s << " zsUS ";
7  if (digi.zsMarkAndPass())
8  s << " zsM&P ";
9  if (digi.fiberIdleOffset() != 0) {
10  if (digi.fiberIdleOffset() == -1000)
11  s << " nofiberOffset";
12  else
13  s << " fiberOffset=" << digi.fiberIdleOffset();
14  }
15  s << std::endl;
16  for (int i = 0; i < digi.size(); i++)
17  s << " " << digi.sample(i) << std::endl;
18  return s;
19 }

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

HODataFrame::sample
constexpr const HcalQIESample & sample(int i) const
access a sample
Definition: HODataFrame.h:40
mps_fire.i
i
Definition: mps_fire.py:428
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HODataFrame::fiberIdleOffset
constexpr int fiberIdleOffset() const
offset of bunch number for this channel relative to nominal set in the unpacker (range is +7->-7....
Definition: HODataFrame.h:43
HODataFrame::size
constexpr int size() const
total number of samples in the digi
Definition: HODataFrame.h:27
HODataFrame::presamples
constexpr int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware)
Definition: HODataFrame.h:29
HODataFrame::zsMarkAndPass
constexpr bool zsMarkAndPass() const
was ZS MarkAndPass?
Definition: HODataFrame.h:31
HODataFrame::zsUnsuppressed
constexpr bool zsUnsuppressed() const
was ZS unsuppressed?
Definition: HODataFrame.h:33
HODataFrame::id
constexpr HcalDetId const & id() const
Definition: HODataFrame.h:23