NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
ThresholdTest.h
1 
2 #ifndef BASELINEPROCESSORTEST_H
3 #define BASELINEPROCESSORTEST_H
4 
5 #include <iostream>
6 #include <cppunit/extensions/HelperMacros.h>
7 #include "Threshold.hpp"
8 #include "TraceDefs.h"
9 
10 #ifndef USING_TRANAL_NAMESPACE
11 using namespace TrAnal;
12 #define USING_TRANAL_NAMESPACE
13 #endif
14 
15 
16 class ThresholdTest : public CppUnit::TestFixture
17 {
18 
19  private:
20  TraceS null_tr;
21  TraceS simple_tr;
22  TraceS step_tr;
23  TraceS negslope_tr;
24 
25  public:
26  // Define the test suite
27  CPPUNIT_TEST_SUITE( ThresholdTest );
28 
29  CPPUNIT_TEST ( testProcess );
30  CPPUNIT_TEST ( testFirstValSatisfiesThresh );
31  CPPUNIT_TEST ( testNoSatisfaction );
32  CPPUNIT_TEST ( testAlgoIteratorProcess );
33 
34  CPPUNIT_TEST_SUITE_END();
35 
36  public:
37  // Begin the standard methods
38  void setUp();
39  void tearDown();
40 
41  // Begin tests
42  void testConstructor();
43 
44  void testProcess();
45  void testFirstValSatisfiesThresh();
46  void testSetOffset();
47 
48  void testNoSatisfaction();
49  void testAlgoIteratorProcess();
50 };
51 
52 #endif
Definition: Trace.hpp:40
Definition: ThresholdTest.h:16
Definition: AlgoIterator.hpp:12