CMS 3D CMS Logo

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

◆ operator<<()

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

Definition at line 3 of file HFDataFrame.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 HFDataFrame::fiberIdleOffset(), mps_fire::i, HFDataFrame::id(), HFDataFrame::presamples(), alignCSCRings::s, HFDataFrame::sample(), HFDataFrame::size(), HFDataFrame::zsMarkAndPass(), and HFDataFrame::zsUnsuppressed().

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