Skip to content
Snippets Groups Projects

Fix UT Decoder

Closed Da Yu Tou requested to merge dtou_fix_ut_decoder into ut/zs_decoder_fix
Files
43
@@ -15,6 +15,7 @@
#include "Event/RawBank.h"
#include "Event/RawBankReadoutStatus.h"
#include "Gaudi/Accumulators.h"
#include "Kernel/STLExtensions.h"
#include "LHCbAlgs/Transformer.h"
#include "boost/container/small_vector.hpp"
#include <Gaudi/Accumulators/Histogram.h>
@@ -75,13 +76,13 @@ namespace {
}
template <typename T, auto N>
constexpr auto pop( gsl::span<T, N>& v, bool isLittleEndian = true ) {
constexpr auto pop( LHCb::span<T, N>& v, bool isLittleEndian = true ) {
auto first = v[0];
v = v.template subspan<1>();
return isLittleEndian ? first : __builtin_bswap32( first );
}
template <typename T, auto N>
constexpr void advance( gsl::span<T, N>& v, int s ) {
constexpr void advance( LHCb::span<T, N>& v, int s ) {
v = v.subspan( s );
}
Loading