CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
QIE10DataFrame.cc
Go to the documentation of this file.
3 
4 std::ostream& operator<<(std::ostream& s, const QIE10DataFrame& digi) {
5  if (digi.detid().det() == DetId::Hcal) {
6  s << HcalGenericDetId(digi.detid());
7  } else {
8  s << "DetId(" << digi.detid().rawId() << ")";
9  }
10  s << " " << digi.samples() << " samples";
11  if (digi.linkError())
12  s << " LinkError ";
13  if (digi.zsMarkAndPass())
14  s << " MaP ";
15  s << std::endl;
16  for (int i = 0; i < digi.samples(); i++) {
17  QIE10DataFrame::Sample sam = digi[i];
18  s << " ADC=" << sam.adc() << " TDC(LE)=" << sam.le_tdc() << " TDC(TE)=" << sam.te_tdc()
19  << " CAPID=" << sam.capid();
20  if (sam.soi())
21  s << " SOI ";
22  if (!sam.ok())
23  s << " !OK ";
24  s << std::endl;
25  }
26  return s;
27 }
constexpr int capid() const
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
constexpr DetId detid() const
Get the detector id.
constexpr bool zsMarkAndPass() const
constexpr bool linkError() const
constexpr bool soi() const
constexpr int le_tdc() const
constexpr int adc() const
constexpr int samples() const
total number of samples in the digi
constexpr int te_tdc() const
constexpr bool ok() const
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46