Project
Loading...
Searching...
No Matches
testClosureCoDecDigit.cxx File Reference
#include <boost/test/unit_test.hpp>
#include <boost/mpl/list.hpp>
#include <fstream>
#include "MCHRawDecoder/DataDecoder.h"
#include "MCHRawEncoderDigit/DigitRawEncoder.h"
#include "DataFormatsMCH/Digit.h"
#include "Framework/Logger.h"
#include <boost/test/data/test_case.hpp>
#include <boost/test/data/monomorphic.hpp>
#include <array>
#include "MCHMappingInterface/Segmentation.h"
#include "MCHRawCommon/CoDecParam.h"

Go to the source code of this file.

Classes

struct  DePadId
 

Macros

#define BOOST_TEST_MODULE   Test MCHRaw ClosureDigit
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

std::ostream & operator<< (std::ostream &os, const DePadId &dpi)
 
template<typename T >
SampaChannelHandler handlePacketStoreAsVec (std::vector< T > &result)
 
template<>
SampaChannelHandler handlePacketStoreAsVec (std::vector< std::string > &result)
 
template<>
SampaChannelHandler handlePacketStoreAsVec (std::vector< DePadId > &result)
 
void writeDigits ()
 
std::vector< std::byte > getBuffer (const char *filename)
 
template<typename T >
std::vector< T > readDigits ()
 
 BOOST_AUTO_TEST_CASE (WrittenAndReadBackDigitsShouldBeTheSameStringVersion)
 
 BOOST_AUTO_TEST_CASE (WrittenAndReadBackDigitsShouldBeTheSame)
 

Variables

constexpr const charsampaClusterFormat = "{}-CH{}-{}"
 
const bool useDummyElecMap = true
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 14 of file testClosureCoDecDigit.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 13 of file testClosureCoDecDigit.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test MCHRaw ClosureDigit

Definition at line 12 of file testClosureCoDecDigit.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( WrittenAndReadBackDigitsShouldBeTheSame  )

Definition at line 172 of file testClosureCoDecDigit.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( WrittenAndReadBackDigitsShouldBeTheSameStringVersion  )

Definition at line 138 of file testClosureCoDecDigit.cxx.

◆ getBuffer()

std::vector< std::byte > getBuffer ( const char filename)

Definition at line 111 of file testClosureCoDecDigit.cxx.

◆ handlePacketStoreAsVec() [1/3]

template<>
SampaChannelHandler handlePacketStoreAsVec ( std::vector< DePadId > &  result)

Definition at line 69 of file testClosureCoDecDigit.cxx.

◆ handlePacketStoreAsVec() [2/3]

template<>
SampaChannelHandler handlePacketStoreAsVec ( std::vector< std::string > &  result)

Definition at line 61 of file testClosureCoDecDigit.cxx.

◆ handlePacketStoreAsVec() [3/3]

template<typename T >
SampaChannelHandler handlePacketStoreAsVec ( std::vector< T > &  result)

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const DePadId dpi 
)

Definition at line 50 of file testClosureCoDecDigit.cxx.

◆ readDigits()

template<typename T >
std::vector< T > readDigits ( )

Definition at line 128 of file testClosureCoDecDigit.cxx.

◆ writeDigits()

void writeDigits ( )

Definition at line 81 of file testClosureCoDecDigit.cxx.

Variable Documentation

◆ sampaClusterFormat

constexpr const char* sampaClusterFormat = "{}-CH{}-{}"
constexpr

Definition at line 31 of file testClosureCoDecDigit.cxx.

◆ useDummyElecMap

const bool useDummyElecMap = true

Definition at line 32 of file testClosureCoDecDigit.cxx.