Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2026-04-05 08:15:53

0001 // @file mvtx_utils.h
0002 // @brief Declarations of helper classes for the MVTX
0003 
0004 #ifndef MVTXDECODER_UTILS_H
0005 #define MVTXDECODER_UTILS_H
0006 
0007 #include <cstdint>
0008 #include <iostream>
0009 
0010 namespace mvtx_utils
0011 {
0012 
0013 #define clean_errno() (errno == 0 ? "None" : strerror(errno)) << " "
0014 #define log_error std::cerr << "[ERROR] (" << __FILE__ << ": " << __LINE__ << ":errno: " << clean_errno()
0015 
0016   constexpr uint8_t FLXWordLength = 32;
0017 
0018   template <typename A, typename B>
0019   bool comp(const A& a, const B& b)
0020   {
0021     return a.second < b.second;
0022   }
0023 
0024 }  // namespace mvtx_utils
0025 
0026 #endif