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.

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

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 }
constexpr HcalDetId const & id() const
Definition: HFDataFrame.h:23
constexpr bool zsMarkAndPass() const
was ZS MarkAndPass?
Definition: HFDataFrame.h:31
constexpr int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: HFDataFrame.h:29
constexpr HcalQIESample const & sample(int i) const
access a sample
Definition: HFDataFrame.h:40
constexpr int size() const
total number of samples in the digi
Definition: HFDataFrame.h:27
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
constexpr bool zsUnsuppressed() const
was ZS unsuppressed?
Definition: HFDataFrame.h:33