CMS 3D CMS Logo

RPCFebConnector.h
Go to the documentation of this file.
1 #ifndef CondFormats_RPCObjects_RPCFebConnector_h
2 #define CondFormats_RPCObjects_RPCFebConnector_h
3 
4 #include <cstdint>
5 #include <string>
6 #include <iosfwd>
7 
9 
11 
13 public:
14  static unsigned int const min_first_strip_ = 1;
15  static unsigned int const max_first_strip_ = 128;
16  static unsigned int const nchannels_ = 16;
17 
18  static unsigned int bit_count(std::uint16_t);
19 
20 public:
21  RPCFebConnector(RPCDetId const& rpc_det_id = RPCDetId(0, 0, 1, 1, 1, 1, 0),
22  unsigned int first_strip = 1,
23  int slope = 1,
24  std::uint16_t channels = 0x0);
25 
26  void reset();
27 
28  RPCDetId getRPCDetId() const;
29  unsigned int getFirstStrip() const;
30  int getSlope() const;
31  std::uint16_t getChannels() const;
32 
33  RPCFebConnector& setRPCDetId(RPCDetId const& rpc_det_id);
34  RPCFebConnector& setFirstStrip(unsigned int strip);
36  RPCFebConnector& setChannels(std::uint16_t channels);
37 
38  bool isActive(unsigned int channel) const;
39  unsigned int getNChannels() const;
40  unsigned int getStrip(unsigned int channel) const;
41 
42  bool hasStrip(unsigned int strip) const;
43  unsigned int getChannel(unsigned int strip) const;
44 
45  std::string getString() const;
46 
47 protected:
48  std::uint8_t first_strip_;
49  ::int8_t slope_;
50  std::uint16_t channels_;
51 
52  std::uint32_t rpc_det_id_;
53 
55 };
56 
57 std::ostream& operator<<(std::ostream& ostream, RPCFebConnector const& connector);
58 
59 #include "CondFormats/RPCObjects/interface/RPCFebConnector.icc"
60 
61 #endif // CondFormats_RPCObjects_RPCFebConnector_h
RPCFebConnector::isActive
bool isActive(unsigned int channel) const
RPCFebConnector::bit_count
static unsigned int bit_count(std::uint16_t)
RPCFebConnector::slope_
::int8_t slope_
-1 or 1
Definition: RPCFebConnector.h:49
RPCFebConnector::max_first_strip_
static unsigned const int max_first_strip_
Definition: RPCFebConnector.h:15
RPCFebConnector::getNChannels
unsigned int getNChannels() const
RPCFebConnector::getRPCDetId
RPCDetId getRPCDetId() const
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
RPCDetId
Definition: RPCDetId.h:16
RPCFebConnector::setChannels
RPCFebConnector & setChannels(std::uint16_t channels)
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
RPCFebConnector
Definition: RPCFebConnector.h:12
RPCFebConnector::hasStrip
bool hasStrip(unsigned int strip) const
RPCFebConnector::getChannels
std::uint16_t getChannels() const
RPCFebConnector::RPCFebConnector
RPCFebConnector(RPCDetId const &rpc_det_id=RPCDetId(0, 0, 1, 1, 1, 1, 0), unsigned int first_strip=1, int slope=1, std::uint16_t channels=0x0)
Definition: RPCFebConnector.cc:6
RPCFebConnector::getFirstStrip
unsigned int getFirstStrip() const
RPCFebConnector::setSlope
RPCFebConnector & setSlope(int slope)
RPCFebConnector::min_first_strip_
static unsigned const int min_first_strip_
Definition: RPCFebConnector.h:14
RPCFebConnector::getChannel
unsigned int getChannel(unsigned int strip) const
RPCFebConnector::setFirstStrip
RPCFebConnector & setFirstStrip(unsigned int strip)
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RPCDetId.h
RPCFebConnector::reset
void reset()
RPCFebConnector::rpc_det_id_
std::uint32_t rpc_det_id_
Definition: RPCFebConnector.h:52
Serializable.h
operator<<
std::ostream & operator<<(std::ostream &ostream, RPCFebConnector const &connector)
Definition: RPCFebConnector.cc:18
RPCFebConnector::first_strip_
std::uint8_t first_strip_
strip, allowing range [1-128]
Definition: RPCFebConnector.h:48
RPCFebConnector::setRPCDetId
RPCFebConnector & setRPCDetId(RPCDetId const &rpc_det_id)
RPCFebConnector::getSlope
int getSlope() const
RPCFebConnector::getString
std::string getString() const
Definition: RPCFebConnector.cc:11
ewkTauDQM_cfi.channels
channels
Definition: ewkTauDQM_cfi.py:14
RPCFebConnector::channels_
std::uint16_t channels_
active channels in range [1-16]
Definition: RPCFebConnector.h:50
RPCFebConnector::nchannels_
static unsigned const int nchannels_
Definition: RPCFebConnector.h:16
slope
static const double slope[3]
Definition: CastorTimeSlew.cc:6
RPCFebConnector::getStrip
unsigned int getStrip(unsigned int channel) const