11 using namespace Diana;
14 #define ASSERT_EQUAL(x,y)\
18 stringstream difference;\
19 difference<<x<<" vs "<<y;\
20 Error("Test failed: file %s; line %d: %s", __FILE__ , __LINE__,difference.str().c_str());\
40 if(mainChannel == 500) {
41 const QEvent& other = neighbours[0];
45 const QVector& pulse = ev.
Get<
QPulse>(
"DAQ",
"Pulse").GetSamples();
46 const QVector& opulse = other.
Get<
QPulse>(
"DAQ",
"Pulse").GetSamples();
47 for(
size_t i = 0; i < pulse.Size(); i++) {
51 for(
size_t i = 0 ; i < neighbours.
Size(); i++) {
52 const QEvent& other = neighbours[i];
67 if(!isEnabled())
return;
68 Info(
"----TEST SUMMARY-----");
69 Info(
"OK: %d", fTestOK);
70 if(fTestKO >0) Error(
"KO: %d", fTestKO);
#define ASSERT_EQUAL(x, y)
#define REGISTER_MODULE(clazz)
one-line description of your module
void Init(Diana::QEvent &ev)
Init method.
void Do(Diana::QEvent &ev, const Diana::QEventList &neighbours)
Do method. Declare and implement only one of the two versions.
MTestNeighboursContinuousIO()
~MTestNeighboursContinuousIO()
list of references to const QEvent (s)
size_t Size() const
number of QEvent (s)
void Get(const char *owner, ReadHandle< Q > &handle) const
Get a QObject Handle in read mode.
Raw event: bolometer channel, trigger positions and types.
const int & GetChannelId() const
Get ChannelId.
Raw event: sampled waveform.
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...