1 #ifndef DTRawToDigi_DTROChainCoding_h
2 #define DTRawToDigi_DTROChainCoding_h
16 #include <boost/cstdint.hpp>
42 const int & rob,
const int & tdc,
const int & channel) {
58 inline void setChain(
const int & ddu,
const int & ros,
59 const int & rob,
const int & tdc,
const int & channel) {
DTROChainCoding(const int &ddu, const int &ros, const int &rob, const int &tdc, const int &channel)
static const int ROS_MASK
static const int ROB_MASK
DTROChainCoding()
Constructors.
void setTDC(const int &ID)
int getSC() const
SC getters: same as ROS getters (SC data goes in the corresponding ROS)
static const int ROB_SHIFT
uint32_t getCode() const
Getters ///////////////////////.
static const int ROS_SHIFT
void setChain(const int &ddu, const int &ros, const int &rob, const int &tdc, const int &channel)
static const int DDU_MASK
static const int TDC_MASK
void setChannel(const int &ID)
static const int CHANNEL_MASK
static const int DDU_SHIFT
void setROB(const int &ID)
void setROS(const int &ID)
void setDDU(const int &ID)
need to reset the bits before setting
static const int CHANNEL_SHIFT
static const int TDC_SHIFT
virtual ~DTROChainCoding()
Destructor.
void setCode(const uint32_t &code_)
Setters ///////////////////////.
DTROChainCoding(uint32_t code_)