CMS 3D CMS Logo

HODataFrame.cc
Go to the documentation of this file.
2 
3 std::ostream& operator<<(std::ostream& s, const HODataFrame& 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 }
16 
17 
HcalDetId const & id() const
Definition: HODataFrame.h:27
int fiberIdleOffset() const
offset of bunch number for this channel relative to nominal set in the unpacker (range is +7->-7...
Definition: HODataFrame.h:47
std::ostream & operator<<(std::ostream &s, const HODataFrame &digi)
Definition: HODataFrame.cc:3
bool zsUnsuppressed() const
was ZS unsuppressed?
Definition: HODataFrame.h:37
const HcalQIESample & sample(int i) const
access a sample
Definition: HODataFrame.h:44
bool zsMarkAndPass() const
was ZS MarkAndPass?
Definition: HODataFrame.h:35
int size() const
total number of samples in the digi
Definition: HODataFrame.h:31
int presamples() const
number of samples before the sample from the triggered beam crossing (according to the hardware) ...
Definition: HODataFrame.h:33