CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCFebConnector.cc
Go to the documentation of this file.
2 
3 #include <ostream>
4 #include <sstream>
5 
6 RPCFebConnector::RPCFebConnector(RPCDetId const & _rpc_det_id
7  , unsigned int _first_strip
8  , int _slope
9  , ::uint16_t _channels)
10  : first_strip_(1)
11  , slope_(_slope < 0 ? -1 : 1)
12  , channels_(_channels)
13  , rpc_det_id_(_rpc_det_id.rawId())
14 {
15  setFirstStrip(_first_strip);
16 }
17 
19 {
20  std::ostringstream _oss;
21  _oss << rpc_det_id_ << '_'
22  << (int)first_strip_ << (slope_ < 0 ? '-' : '+') << '_'
23  << std::hex << std::showbase << channels_;
24  return _oss.str();
25 }
26 
27 std::ostream & operator<<(std::ostream & _ostream, RPCFebConnector const & _connector)
28 {
29  return (_ostream << _connector.getString());
30 }
::int8_t slope_
-1 or 1
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
::uint32_t rpc_det_id_
::uint8_t first_strip_
strip, allowing range [1-128]
::uint16_t channels_
active channels in range [1-16]
std::string getString() const