12 using std::stringstream;
13 #define ASSERT_EQUAL(x,y)\
17 stringstream difference;\
18 difference<<x<<" vs "<<y;\
19 Error("Test failed: file %s; line %d: %s", __FILE__ , __LINE__,difference.str().c_str());\
35 ev.
Get(
"TestRawEvent",iHandle);
43 ev.
Get(
"DAQ",pHandle);
47 ev.
Get(
"DAQ",piHandle);
53 Info(
"----TEST SUMMARY-----");
54 Info(
"OK: %d", fTestOK);
55 if(fTestKO >0 ) Error(
"KO: %d", fTestKO);
56 if(fTestOK != 291460) Panic(
"Expected test %d vs %d",291460,fTestOK);
QTObjectHandle< TH1D > hHandle("MyHisto")
#define ASSERT_EQUAL(x, y)
#define REGISTER_MODULE(clazz)
one-line description of your module
void Do(Diana::QEvent &ev)
Do method.
void Init(Diana::QEvent &ev)
Init method.
void Get(const char *owner, ReadHandle< Q > &handle) const
Get a QObject Handle in read mode.
virtual bool IsValid() const
Check object validity.
read handle to access QEvent QObject's.
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...