CMS 3D CMS Logo

RPCDCCLink.cc
Go to the documentation of this file.
2 
3 #include <ostream>
4 #include <sstream>
5 
7  : id_(0x0)
8 {}
9 
10 RPCDCCLink::RPCDCCLink(std::uint32_t const & id)
11  : id_(id)
12 {}
13 
15  , int dccinput
16  , int tbinput)
17  : id_(0x0)
18 {
19  setFED(fed);
20  setDCCInput(dccinput);
21  setTBInput(tbinput);
22 }
23 
24 std::uint32_t RPCDCCLink::getMask() const
25 {
26  std::uint32_t mask(0x0);
27  if (id_ & mask_fed_)
28  mask |= mask_fed_;
29  if (id_ & mask_dccinput_)
30  mask |= mask_dccinput_;
31  if (id_ & mask_tbinput_)
32  mask |= mask_tbinput_;
33  return mask;
34 }
35 
37 {
38  std::ostringstream oss;
39  oss << "RPCDCCLink_";
43  return oss.str();
44 }
45 
46 std::ostream & operator<<(std::ostream & ostream, RPCDCCLink const & link)
47 {
48  return (ostream << link.getName());
49 }