12#define BOOST_TEST_MODULE Test EMCAL Calib
13#define BOOST_TEST_MAIN
14#define BOOST_TEST_DYN_LINK
15#include <boost/test/unit_test.hpp>
43 testobject.
setFw(0x21);
57 std::array<uint32_t, 6> MaskReg = {1024, 0, 512, 31985, 0, 0};
67 for (
int ireg = 0; ireg < 6; ireg++) {
108 ref.setMaskReg(768, 0);
109 ref.setMaskReg(15, 1);
110 ref.setMaskReg(37632, 2);
111 ref.setMaskReg(63, 3);
112 ref.setMaskReg(0, 4);
113 ref.setMaskReg(208, 5);
120 std::string
reference = std::string(
"SELPF: 0x1e1f, L0SEL: 0x1, L0COSM: 0x64, GTHRL0: 0x84, RLBKSTU: 0x0, FW: 0x21\n") + std::string(
"Reg0: b'00000000000000000000010000000000 (1024)\nReg1: b'00000000000000000000000000000000 (0)\n") + std::string(
"Reg2: b'00000000000000000000001000000000 (512)\nReg3: b'00000000000000000111110011110001 (31985)\n") + std::string(
"Reg4: b'00000000000000000000000000000000 (0)\nReg5: b'00000000000000000000000000000000 (0)\n");
124 std::stringstream testmaker;
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
CCDB container for TRU DCS data in EMCAL.
void setL0SEL(uint64_t la)
uint64_t getSELPF() const
uint64_t getGTHRL0() const
uint64_t getRLBKSTU() const
uint64_t getL0COSM() const
void setL0COSM(uint64_t lc)
void setGTHRL0(uint64_t lg)
uint32_t getMaskReg(int pos) const
void setSELPF(uint64_t pf)
void setRLBKSTU(uint64_t rb)
uint64_t getL0SEL() const
void setMaskReg(uint32_t msk, int pos)
BOOST_AUTO_TEST_CASE(asynch_schedule_test)
void ConfigureReference(TriggerSTUDCS &testobject)
Apply reference configuration Reference configuration taken from pp 2016.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
FIXME: do not use data model tables.
BOOST_CHECK_EQUAL(triggersD.size(), triggers.size())