Skip to content
Snippets Groups Projects
Commit 1687d811 authored by Roel Aaij's avatar Roel Aaij
Browse files

Fix build warnings

parent 6597bb69
No related branches found
No related tags found
No related merge requests found
Pipeline #7468537 passed
......@@ -17,7 +17,6 @@
#include <fmt/format.h>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/program_options.hpp>
......@@ -44,38 +43,6 @@
using namespace std;
namespace po = boost::program_options;
namespace ba = boost::algorithm;
struct CaloRawBank {
uint32_t source_id = 0;
uint32_t const* data = nullptr;
uint32_t const* end = nullptr;
// For MEP format
CaloRawBank( const uint32_t sid, const char* fragment, const uint16_t s )
: source_id{sid}
, data{reinterpret_cast<uint32_t const*>( fragment )}
, end{reinterpret_cast<uint32_t const*>( fragment + s )} {
assert( s % sizeof( uint32_t ) == 0 );
}
};
struct ODINRawBank {
uint32_t const* data = nullptr;
uint16_t size = 0;
/// Constructor from MEP layout
ODINRawBank( const uint32_t, const char* fragment, uint16_t s ) {
data = reinterpret_cast<uint32_t const*>( fragment );
size = s;
}
};
namespace {
const std::array<std::tuple<char, std::uint16_t, short>, 5> event_type_chars = {
{{'P', 0x02, 0}, {'N', 0x04, 1}, {'L', 0x08, 2}, {'1', 0x10, 3}, {'2', 0x20, 4}}};
}
int main( int argc, char* argv[] ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment