15#define BOOST_TEST_MODULE Test TPC DigitContainer reset
16#define BOOST_TEST_MAIN
17#define BOOST_TEST_DYN_LINK
18#include <boost/test/unit_test.hpp>
20#include <fmt/format.h>
44 digitContainer.
reset();
47 digitContainer.
addDigit(labelFirst,
CRU(0), 600, globalPad, 100);
50 std::vector<CommonMode> commonMode;
55 digitContainer.
reset();
59 digitContainer.
addDigit(labelSecond,
CRU(10), 153, globalPad, 100);
62 BOOST_REQUIRE(
digits.size() == 1);
63 const auto digitLabels =
labels.getLabels(0);
65 for (
const auto&
label : digitLabels) {
Simple interface to the CDB manager.
Definition of the Digit Container.
std::vector< o2::MCCompLabel > labels
Definition of the SAMPA response.
static void updateFromString(std::string const &)
static CDBInterface & instance()
void fillOutputContainer(std::vector< Digit > &output, dataformats::MCTruthContainer< MCCompLabel > &mcTruth, std::vector< CommonMode > &commonModeOutput, const Sector §or, TimeBin eventTimeBin=0, bool isContinuous=true, bool finalFlush=false)
void reset()
Reset the container.
void addDigit(const MCCompLabel &label, const CRU &cru, TimeBin timeBin, GlobalPadNumber globalPad, float signal)
static Mapper & instance(const std::string mappingDir="")
GlobalPadNumber getPadNumberInROC(const PadROCPos &rocPadPosition) const
Pad and row inside a ROC.
static SAMPAProcessing & instance()
GLuint GLsizei const GLchar * label
Global TPC definitions and constants.
BOOST_AUTO_TEST_CASE(ClusterHardware_test1)
@ PropagateADC
Just propagate the bare ADC value.
unsigned short GlobalPadNumber
global pad number
BOOST_CHECK_EQUAL(triggersD.size(), triggers.size())
std::vector< Digit > digits