![]() |
Project
|
Test MID raw data decoder. More...
#include <boost/test/unit_test.hpp>
#include <boost/test/data/test_case.hpp>
#include <vector>
#include <map>
#include "Framework/Logger.h"
#include "CommonDataFormat/InteractionRecord.h"
#include "DetectorsRaw/RawFileReader.h"
#include "DataFormatsMID/ColumnData.h"
#include "DataFormatsMID/ROBoard.h"
#include "Headers/RAWDataHeader.h"
#include "MIDBase/DetectorParameters.h"
#include "MIDBase/Mapping.h"
#include "MIDRaw/ColumnDataToLocalBoard.h"
#include "MIDRaw/CrateParameters.h"
#include "MIDRaw/DecodedDataAggregator.h"
#include "MIDRaw/Decoder.h"
#include "MIDRaw/Encoder.h"
#include "MIDRaw/GBTUserLogicEncoder.h"
#include "MIDRaw/LinkDecoder.h"
#include "MIDRaw/ROBoardResponse.h"
Go to the source code of this file.
Macros | |
#define | BOOST_TEST_MODULE Test MID raw |
#define | BOOST_TEST_DYN_LINK |
Functions | |
o2::mid::ColumnData | getColData (uint8_t deId, uint8_t columnId, uint16_t nbp=0, uint16_t bp1=0, uint16_t bp2=0, uint16_t bp3=0, uint16_t bp4=0) |
std::vector< o2::mid::ColumnData > | sortData (const std::vector< o2::mid::ColumnData > &data, size_t first, size_t last) |
void | doTest (const std::map< o2::InteractionRecord, std::vector< o2::mid::ColumnData > > &inData, const std::vector< o2::mid::ROFRecord > &rofRecords, const std::vector< o2::mid::ColumnData > &data, const o2::mid::EventType inEventType=o2::mid::EventType::Standard) |
std::tuple< std::vector< o2::mid::ColumnData >, std::vector< o2::mid::ROFRecord > > | encodeDecode (std::map< o2::InteractionRecord, std::vector< o2::mid::ColumnData > > inData, o2::mid::EventType inEventType=o2::mid::EventType::Standard) |
BOOST_AUTO_TEST_CASE (ColumnDataConverter) | |
BOOST_AUTO_TEST_CASE (ROResponse) | |
BOOST_AUTO_TEST_CASE (GBTUserLogicDecoder) | |
BOOST_AUTO_TEST_CASE (SmallSample) | |
BOOST_AUTO_TEST_CASE (LargeBufferSample) | |
#define BOOST_TEST_DYN_LINK |
Definition at line 18 of file testRaw.cxx.
#define BOOST_TEST_MODULE Test MID raw |
Definition at line 17 of file testRaw.cxx.
BOOST_AUTO_TEST_CASE | ( | ColumnDataConverter | ) |
Definition at line 133 of file testRaw.cxx.
BOOST_AUTO_TEST_CASE | ( | GBTUserLogicDecoder | ) |
Event with just one link fired
Definition at line 184 of file testRaw.cxx.
BOOST_AUTO_TEST_CASE | ( | LargeBufferSample | ) |
Definition at line 288 of file testRaw.cxx.
BOOST_AUTO_TEST_CASE | ( | ROResponse | ) |
Definition at line 167 of file testRaw.cxx.
BOOST_AUTO_TEST_CASE | ( | SmallSample | ) |
Event with just one link fired
Definition at line 258 of file testRaw.cxx.
void doTest | ( | const std::map< o2::InteractionRecord, std::vector< o2::mid::ColumnData > > & | inData, |
const std::vector< o2::mid::ROFRecord > & | rofRecords, | ||
const std::vector< o2::mid::ColumnData > & | data, | ||
const o2::mid::EventType | inEventType = o2::mid::EventType::Standard |
||
) |
Definition at line 66 of file testRaw.cxx.
std::tuple< std::vector< o2::mid::ColumnData >, std::vector< o2::mid::ROFRecord > > encodeDecode | ( | std::map< o2::InteractionRecord, std::vector< o2::mid::ColumnData > > | inData, |
o2::mid::EventType | inEventType = o2::mid::EventType::Standard |
||
) |
Definition at line 89 of file testRaw.cxx.
o2::mid::ColumnData getColData | ( | uint8_t | deId, |
uint8_t | columnId, | ||
uint16_t | nbp = 0 , |
||
uint16_t | bp1 = 0 , |
||
uint16_t | bp2 = 0 , |
||
uint16_t | bp3 = 0 , |
||
uint16_t | bp4 = 0 |
||
) |
Definition at line 44 of file testRaw.cxx.
std::vector< o2::mid::ColumnData > sortData | ( | const std::vector< o2::mid::ColumnData > & | data, |
size_t | first, | ||
size_t | last | ||
) |
Definition at line 57 of file testRaw.cxx.