Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:18

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 <cassert>
0009 #include <iostream>
0010 #include <limits>
0011 #include <array>
0012 #include <memory>
0013 #include <phool/recoConsts.h>
0014 
0015 namespace mvtx_utils {
0016 
0017 #define clean_errno() (errno == 0 ? "None" : strerror(errno)) << " "
0018 #define log_error std::cerr << "[ERROR] (" << __FILE__ << ": " << __LINE__ << ":errno: " << clean_errno()
0019 
0020   constexpr uint8_t FLXWordLength = 32;
0021 
0022   template < typename A, typename B >
0023   bool comp(A a, B b)
0024   {
0025     return a.second < b.second;
0026   }
0027 } //namespace mvtx_utils
0028 
0029 #endif