12#define BOOST_TEST_MODULE Test MCEventLabel class
13#define BOOST_TEST_MAIN
14#define BOOST_TEST_DYN_LINK
15#include <boost/test/unit_test.hpp>
27 for (
int itr = 0; itr < 100; itr++) {
29 float w = gRandom->Rndm();
31 LOG(info) <<
"Input: [" <<
src <<
'/' << ev <<
'/' <<
w <<
']';
32 LOG(info) <<
"Encoded: " << lb <<
" (packed: " << uint32_t(lb) <<
")";
35 lb.
get(evE, srcE, wE);
36 LOG(info) <<
"Decoded: [" << srcE <<
'/' << evE <<
'/' << wE <<
']';
void get(int &evID, int &srcID, float &corrW)
static constexpr uint32_t MaxEventID()
static constexpr float WeightPrecision()
static constexpr uint32_t MaxSourceID()
GLubyte GLubyte GLubyte GLubyte w
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
BOOST_AUTO_TEST_CASE(FlatHisto)
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"