CMS 3D CMS Logo

OmtfRpcDataWrod64.cc
Go to the documentation of this file.
2 
3 #include <bitset>
4 
5 namespace omtf {
6  std::ostream &operator<<(std::ostream &out, const RpcDataWord64 &o) {
7  out << "RpcDataWord64: "
8  << " type: " << DataWord64::type(o.type()) << " bx: " << o.bxNum_ << " lnk: " << o.linkNum_;
9  out << std::hex;
10  out << " frame1: 0x" << o.frame1_;
11  if (o.frame1_ != 0)
12  out << " (" << std::bitset<16>(o.frame1_) << ")";
13  out << " frame2: 0x" << o.frame2_;
14  if (o.frame2_ != 0)
15  out << " (" << std::bitset<16>(o.frame2_) << ")";
16  out << " frame3: 0x" << o.frame3_;
17  if (o.frame3_ != 0)
18  out << " (" << std::bitset<16>(o.frame3_) << ")";
19  out << std::dec;
20  return out;
21  }
22 } // namespace omtf
Type type(const T &)
std::ostream & operator<<(std::ostream &out, const CscDataWord64 &o)