Project
Loading...
Searching...
No Matches
SampaHeader.h File Reference
#include <cstdlib>
#include <iostream>
#include "MCHRawCommon/DataFormats.h"

Go to the source code of this file.

Classes

class  o2::mch::raw::SampaHeader
 SampaHeader is the 50-bits header word used in Sampa data transmission protocol. More...
 

Namespaces

namespace  o2
 a couple of static helper functions to create timestamp values for CCDB queries or override obsolete objects
 
namespace  o2::mch
 
namespace  o2::mch::raw
 

Enumerations

enum class  o2::mch::raw::SampaPacketType : uint8_t {
  o2::mch::raw::HeartBeat = 0 , o2::mch::raw::DataTruncated = 1 , o2::mch::raw::Sync = 2 , o2::mch::raw::DataTruncatedTriggerTooEarly = 3 ,
  o2::mch::raw::Data = 4 , o2::mch::raw::DataNumWords = 5 , o2::mch::raw::DataTriggerTooEarly = 6 , o2::mch::raw::DataTriggerTooEarlyNumWords = 7
}
 

Functions

constexpr bool o2::mch::raw::isSampaSync (uint64_t w)
 Whether the 50 LSB bits match the sync word.
 
SampaHeader o2::mch::raw::sampaSync ()
 The 50-bits Sampa SYNC word.
 
SampaHeader o2::mch::raw::sampaHeartbeat (uint8_t elinkId, uint20_t bunchCrossing)
 Heartbeat packet.
 
DualSampaChannelId o2::mch::raw::getDualSampaChannelId (const SampaHeader &sh)
 Return channel number (0..63)
 
std::string o2::mch::raw::packetTypeName (SampaPacketType pkt)
 packetTypeName returns a string representation of the given packet type.
 
int o2::mch::raw::computeHammingCode (uint64_t value)
 
int o2::mch::raw::computeHammingCode1 (uint64_t value)
 
int o2::mch::raw::computeHammingCode2 (uint64_t value)
 
int o2::mch::raw::computeHammingCode3 (uint64_t value)
 
int o2::mch::raw::computeHammingCode4 (uint64_t value)
 
int o2::mch::raw::computeHeaderParity (uint64_t value)
 
int o2::mch::raw::computeHeaderParity1 (uint64_t value)
 
int o2::mch::raw::computeHeaderParity2 (uint64_t value)
 
int o2::mch::raw::computeHeaderParity3 (uint64_t value)
 
int o2::mch::raw::computeHeaderParity4 (uint64_t value)
 
std::string o2::mch::raw::asString (const SampaHeader &sh)
 
std::ostream & o2::mch::raw::operator<< (std::ostream &os, const SampaHeader &sh)
 

Variables

constexpr uint64_t o2::mch::raw::sampaSyncWord {0x1555540f00113}