3 #include <StjTrackList.h>
5 #include <StjTrackListCut.h>
7 #include <StjTrackCutDca.h>
8 #include <StjTrackCutDcaPtDependent.h>
9 #include <StjTrackCutEta.h>
10 #include <StjTrackCutPossibleHitRatio.h>
11 #include <StjTrackCutNHits.h>
12 #include <StjTrackCutFlag.h>
18 #include "StjTrackListCutTest.hh"
25 void StjTrackListCutTest::setUp()
30 void StjTrackListCutTest::tearDown()
36 void StjTrackListCutTest::testFlag()
45 listIn.push_back(track1);
49 listIn.push_back(track2);
51 StjTrackList listExpected;
52 listExpected.push_back(track1);
55 StjTrackList listActual = (*cut)(listIn);
57 CPPUNIT_ASSERT_EQUAL( listExpected, listActual );
62 void StjTrackListCutTest::testNHits()
71 listIn.push_back(track1);
75 listIn.push_back(track2);
79 listIn.push_back(track3);
81 StjTrackList listExpected;
82 listExpected.push_back(track1);
85 StjTrackList listActual = (*cut)(listIn);
87 CPPUNIT_ASSERT_EQUAL( listExpected, listActual );
92 void StjTrackListCutTest::test2005()
104 listIn.push_back(track1);
109 listIn.push_back(track2);
114 listIn.push_back(track3);
119 listIn.push_back(track4);
121 StjTrackList listExpected;
122 listExpected.push_back(track1);
125 StjTrackList listActual = (*cut)(listIn);
127 CPPUNIT_ASSERT_EQUAL( listExpected, listActual );
133 void StjTrackListCutTest::test2006()
148 listIn.push_back(track1);
155 listIn.push_back(track2);
162 listIn.push_back(track3);
169 listIn.push_back(track4);
176 listIn.push_back(track5);
183 listIn.push_back(track6);
190 listIn.push_back(track7);
197 listIn.push_back(track8);
205 track9.nHitsPoss = 11;
206 listIn.push_back(track9);
213 listIn.push_back(track10);
215 StjTrackList listExpected;
216 listExpected.push_back(track5);
217 listExpected.push_back(track7);
218 listExpected.push_back(track9);
221 StjTrackList listActual = (*cut)(listIn);
223 CPPUNIT_ASSERT_EQUAL( listExpected, listActual );