13#include "trg/trg/Signal.h"
19#define NAME "TRGSignalTest"
20#define VERSION "version 0.00"
26 cout << NAME <<
" ... " << VERSION << endl;
33 cout <<
"TRGSignal::active test ..." << endl;
38 cout <<
"t0.active()=" << t0.active() << endl;
39 cout <<
"t0.active(-10, -1)=" << t0.active(-10, -1) << endl;
40 cout <<
"t0.active(-1, 1)=" << t0.active(-1, 1) << endl;
41 cout <<
"t0.active(-10, 20)=" << t0.active(-10, 20) << endl;
42 cout <<
"t0.active(3, 4)=" << t0.active(3, 4) << endl;
43 cout <<
"t0.active(3, 12)=" << t0.active(3, 12) << endl;
44 cout <<
"t0.active(12, 100)=" << t0.active(12, 100) << endl;
47 cout <<
"TRGSignal::unset test ..." << endl;
50 cout <<
"t0.unset(-10, -1)" << endl;
53 cout <<
"t0.unset(-1, 1)" << endl;
56 cout <<
"t0.unset(-10, 20)" << endl;
59 cout <<
"t0.unset(3, 4)" << endl;
62 cout <<
"t0.unset(3, 12)" << endl;
65 cout <<
"t0.unset(12, 100)" << endl;
71 cout << NAME <<
" ... terminated" << endl;
A class to represent a digitized signal. Unit is nano second.
A class to represent a digitized signal. Unit is nano second.
const TRGSignal & unset(int t0, int t1)
clear(or unset) with leading edge at clock t0 and with trailing edge at clock t1.
void dump(const std::string &message="", const std::string &pre="") const
dumps contents.
Abstract base class for different kinds of events.