![]() |
Project
|
#include "MCHRawElecMap/Mapper.h"#include "MCHRawEncoderPayload/DataBlock.h"#include <boost/test/unit_test.hpp>#include <boost/property_tree/ptree.hpp>#include "DetectorsRaw/HBFUtils.h"#include "DetectorsRaw/RawFileWriter.h"#include "Framework/Logger.h"#include "MCHRawCommon/DataFormats.h"#include "MCHRawDecoder/PageDecoder.h"#include "MCHRawEncoderPayload/PayloadEncoder.h"#include "MCHRawEncoderPayload/PayloadPaginator.h"#include <boost/mpl/list.hpp>#include <fmt/format.h>#include <iostream>Go to the source code of this file.
Classes | |
| struct | BareGen |
| struct | UserLogicGen |
| struct | UserLogicGen1 |
| struct | BareDummy |
| struct | UserLogicDummy |
| struct | UserLogicDummy1 |
Macros | |
| #define | BOOST_TEST_MODULE Test MCHRaw Closure |
| #define | BOOST_TEST_MAIN |
| #define | BOOST_TEST_DYN_LINK |
Typedefs | |
| typedef boost::mpl::list< BareGen, UserLogicGen, UserLogicGen1, BareDummy, UserLogicDummy, UserLogicDummy1 > | testTypes |
Functions | |
| template<typename ELECMAP , typename FORMAT , typename CHARGESUM , int VERSION> | |
| std::vector< std::byte > | paginate (gsl::span< const std::byte > buffer, const std::string &tmpbasename) |
| std::vector< SampaCluster > | getSampaClusters (const std::string &d) |
| std::set< DsElecId > | getDs (gsl::span< std::string > data) |
| template<typename ELECMAP , typename FORMAT , typename CHARGESUM , int VERSION> | |
| std::vector< std::byte > | createBuffer (gsl::span< std::string > data, uint32_t orbit=12345, uint16_t bc=678) |
| SampaChannelHandler | handlePacketStoreAsVec (std::vector< std::string > &result) |
| template<typename ELECMAP > | |
| bool | testDecode (gsl::span< const std::byte > testBuffer, gsl::span< std::string > expected) |
| BOOST_AUTO_TEST_CASE_TEMPLATE (ClosureChargeSum, T, testTypes) | |
| BOOST_AUTO_TEST_CASE_TEMPLATE (ClosureSample, T, testTypes) | |
Variables | |
| std::vector< std::string > | chargeSumInput |
| std::vector< std::string > | sampleInput |
| constexpr const char * | sampaClusterFormat = "{}-CH{}-{}" |
| #define BOOST_TEST_DYN_LINK |
Definition at line 16 of file testClosureCoDec.cxx.
| #define BOOST_TEST_MAIN |
Definition at line 15 of file testClosureCoDec.cxx.
| #define BOOST_TEST_MODULE Test MCHRaw Closure |
Definition at line 14 of file testClosureCoDec.cxx.
| typedef boost::mpl::list<BareGen, UserLogicGen, UserLogicGen1, BareDummy, UserLogicDummy, UserLogicDummy1> testTypes |
Definition at line 283 of file testClosureCoDec.cxx.
| BOOST_AUTO_TEST_CASE_TEMPLATE | ( | ClosureChargeSum | , |
| T | , | ||
| testTypes | |||
| ) |
Definition at line 285 of file testClosureCoDec.cxx.
| BOOST_AUTO_TEST_CASE_TEMPLATE | ( | ClosureSample | , |
| T | , | ||
| testTypes | |||
| ) |
Definition at line 294 of file testClosureCoDec.cxx.
| std::vector< std::byte > createBuffer | ( | gsl::span< std::string > | data, |
| uint32_t | orbit = 12345, |
||
| uint16_t | bc = 678 |
||
| ) |
Definition at line 168 of file testClosureCoDec.cxx.
| std::set< DsElecId > getDs | ( | gsl::span< std::string > | data | ) |
Definition at line 144 of file testClosureCoDec.cxx.
| std::vector< SampaCluster > getSampaClusters | ( | const std::string & | d | ) |
Definition at line 115 of file testClosureCoDec.cxx.
| SampaChannelHandler handlePacketStoreAsVec | ( | std::vector< std::string > & | result | ) |
Definition at line 207 of file testClosureCoDec.cxx.
| std::vector< std::byte > paginate | ( | gsl::span< const std::byte > | buffer, |
| const std::string & | tmpbasename | ||
| ) |
Definition at line 68 of file testClosureCoDec.cxx.
| bool testDecode | ( | gsl::span< const std::byte > | testBuffer, |
| gsl::span< std::string > | expected | ||
| ) |
Definition at line 216 of file testClosureCoDec.cxx.
| std::vector<std::string> chargeSumInput |
Definition at line 33 of file testClosureCoDec.cxx.
|
constexpr |
Definition at line 108 of file testClosureCoDec.cxx.
| std::vector<std::string> sampleInput |
Definition at line 50 of file testClosureCoDec.cxx.