CMS 3D CMS Logo

RPCDCCLink.cc
Go to the documentation of this file.
2 
3 #include <ostream>
4 #include <sstream>
5 
6 RPCDCCLink::RPCDCCLink() : id_(0x0) {}
7 
8 RPCDCCLink::RPCDCCLink(std::uint32_t const& id) : id_(id) {}
9 
10 RPCDCCLink::RPCDCCLink(int fed, int dccinput, int tbinput) : id_(0x0) {
11  setFED(fed);
12  setDCCInput(dccinput);
13  setTBInput(tbinput);
14 }
15 
16 std::uint32_t RPCDCCLink::getMask() const {
17  std::uint32_t mask(0x0);
18  if (id_ & mask_fed_)
19  mask |= mask_fed_;
20  if (id_ & mask_dccinput_)
22  if (id_ & mask_tbinput_)
24  return mask;
25 }
26 
28  std::ostringstream oss;
29  oss << "RPCDCCLink_";
33  return oss.str();
34 }
35 
36 std::ostream& operator<<(std::ostream& ostream, RPCDCCLink const& link) { return (ostream << link.getName()); }
constexpr uint32_t mask
Definition: gpuClustering.h:26