CMS 3D CMS Logo

HBHEDataFrame.cc
Go to the documentation of this file.
2 
3 std::ostream& operator<<(std::ostream& s, const HBHEDataFrame& digi) {
4  s << digi.id() << " " << digi.size() << " samples " << digi.presamples() << " presamples ";
5  if (digi.zsUnsuppressed()) s << " zsUS";
6  if (digi.zsMarkAndPass()) s << " zsM&P";
7  if (digi.fiberIdleOffset()!=0) {
8  if (digi.fiberIdleOffset()==-1000) s << " nofiberOffset";
9  else s << " fiberOffset=" << digi.fiberIdleOffset();
10  }
11  s << std::endl;
12  for (int i=0; i<digi.size(); i++)
13  s << " " << digi.sample(i) << std::endl;
14  return s;
15 }
bool zsUnsuppressed() const
was ZS unsuppressed?
Definition: HBHEDataFrame.h:37
bool zsMarkAndPass() const
was ZS MarkAndPass?
Definition: HBHEDataFrame.h:35
int size() const
total number of samples in the digi
Definition: HBHEDataFrame.h:31
std::ostream & operator<<(std::ostream &s, const HBHEDataFrame &digi)
Definition: HBHEDataFrame.cc:3
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: HBHEDataFrame.h:33
int fiberIdleOffset() const
offset of bunch number for this channel relative to nominal set in the unpacker (range is +7->-7...
Definition: HBHEDataFrame.h:47
HcalQIESample const & sample(int i) const
access a sample
Definition: HBHEDataFrame.h:44
const HcalDetId & id() const
Definition: HBHEDataFrame.h:27