|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef MUONNSWCOMMONDECODE_NSWELINK_H
5 #define MUONNSWCOMMONDECODE_NSWELINK_H
96 unsigned int running_checksum = 0;
98 for (
unsigned int i = 0;
i < buflen; ++
i, ++
p)
99 running_checksum += *
p;
101 running_checksum = (running_checksum & 0xff) + (running_checksum >> 8);
102 running_checksum = (running_checksum & 0xff) + (running_checksum >> 8);
103 running_checksum = (~running_checksum) & 0xff;
105 return running_checksum;
108 #endif // MUONNSWCOMMONDECODE_NSWELINK_H
const std::vector< Muon::nsw::VMMChannel * > & get_channels() const
unsigned int nwords() const
unsigned int m_packet_status
unsigned int m_running_checksum
uint16_t flagMiss() const
unsigned int status() const
unsigned int nhits() const
uint16_t nhitsTrail() const
unsigned int test_checksum(const uint8_t *buffer, unsigned int buflen)
const Muon::nsw::NSWResourceId * elinkId() const
This class provides conversion from CSC RDO data to CSC Digits.
NSWElink(const uint32_t *bs, uint32_t remaining)
static const unsigned int s_null_packet_length
NSWElink & operator=(const NSWElink &)=delete
Muon::nsw::NSWResourceId * m_elinkId
std::vector< Muon::nsw::VMMChannel * > m_channels
uint32_t elinkWord() const
NSWElink(const NSWElink &)=delete
Muon::nsw::NSWResourceId * elinkId()