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_)
21  mask |= mask_dccinput_;
22  if (id_ & mask_tbinput_)
23  mask |= 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()); }
MainPageGenerator.link
link
Definition: MainPageGenerator.py:271
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29