CMS 3D CMS Logo

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