CMS 3D CMS Logo

QIE11DataFrame.cc
Go to the documentation of this file.
3 
4 std::ostream& operator<<(std::ostream& s, const QIE11DataFrame& digi) {
5  if (digi.detid().det() == DetId::Hcal) {
6  s << "DetID=" << HcalGenericDetId(digi.detid()) << " flavor=" << digi.flavor();
7  } else {
8  s << "DetId(" << digi.detid().rawId() << ")";
9  }
10  s << " " << digi.samples() << " samples";
11  if (digi.linkError())
12  s << " LinkError ";
13  if (digi.capidError())
14  s << " CapIdError ";
15  if (digi.zsMarkAndPass())
16  s << " M&P ";
17  s << std::endl;
18  for (int i = 0; i < digi.samples(); i++) {
19  QIE11DataFrame::Sample sam = digi[i];
20  s << " ADC=" << sam.adc() << " TDC=" << sam.tdc() << " CAPID=" << sam.capid();
21  if (sam.soi())
22  s << " SOI ";
23  s << std::endl;
24  }
25  return s;
26 }
constexpr int flavor() const
get the flavor of the frame
constexpr bool capidError() const
constexpr bool zsMarkAndPass() const
was this a mark-and-pass ZS event?
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
constexpr DetId detid() const
Get the detector id.
constexpr int capid() const
std::ostream & operator<<(std::ostream &s, const QIE11DataFrame &digi)
constexpr int tdc() const
constexpr int adc() const
constexpr int samples() const
total number of samples in the digi
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
constexpr bool soi() const
constexpr bool linkError() const
was there a link error?