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>
45 testobject.
setFw(0x2A012);
48 for (
int i = 0;
i < 4;
i++) {
60 std::array<int, 3> Ghigh = {0, 0, 115};
61 std::array<int, 3> Glow = {0, 0, 51};
62 std::array<int, 3> Jhigh = {0, 0, 255};
63 std::array<int, 3> Jlow = {0, 0, 204};
67 int Region = 0xffffffff;
76 for (
int itrig = 0; itrig < 3; itrig++) {
111 ref.setRegion(0xffffff7f);
113 ref.setGammaHigh(2, 77);
114 ref.setGammaLow(2, 51);
115 ref.setJetHigh(2, 191);
116 ref.setJetLow(2, 128);
119 ref.setMedianMode(1);
120 ref.setPHOSScale(0, 1);
121 ref.setPHOSScale(1, 2);
122 ref.setPHOSScale(2, 1);
123 ref.setPHOSScale(3, 0);
130 std::string
reference = std::string(
"PatchSize: 2, GetRawData: 1, Region: 0xffffffff (b'11111111111111111111111111111111), Median: 0, Firmware: 0x2a012\n") + std::string(
"Gamma High: (0, 0, 115)\nGamma Low: (0, 0, 51)\nJet High: (0, 0, 255)\nJet Low: (0, 0, 204)\n");
134 std::stringstream testmaker;
CCDB container for STU DCS data in EMCAL.
void setPatchSize(int size)
int getJetHigh(int vzpar) const
void setGammaHigh(int vzpar, int val)
void setPHOSScale(int iscale, int val)
int getJetLow(int vzpar) const
void setJetHigh(int vzpar, int val)
int getGammaLow(int vzpar) const
void setMedianMode(int mode)
int getMedianMode() const
void setGammaLow(int vzpar, int val)
void setJetLow(int vzpar, int val)
int getGammaHigh(int vzpar) const
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())