2 #include <StjJetCutPt.h>
3 #include <StjJetCutEta.h>
4 #include <StjJetCutDetectorEta.h>
5 #include <StjJetCutNFourVecs.h>
6 #include <StjJetCutTrgBHT.h>
7 #include <StjJetCutTrgBJP.h>
9 #include <StjTrgBEMCJetPatchTowerIdMap2005.h>
11 #include <StjJetList.h>
13 #include "StjTrgMock.hh"
15 #include "StjJetCutTest.hh"
20 void StjJetCutTest::setUp()
25 void StjJetCutTest::tearDown()
30 void StjJetCutTest::testPt()
37 CPPUNIT_ASSERT( cut(p1) );
42 CPPUNIT_ASSERT( ! cut(p2) );
45 void StjJetCutTest::testEta()
52 CPPUNIT_ASSERT( ! cut(p1) );
57 CPPUNIT_ASSERT( cut(p2) );
62 CPPUNIT_ASSERT( cut(p3) );
65 void StjJetCutTest::testDetectorEta()
72 CPPUNIT_ASSERT( ! cut(p1) );
77 CPPUNIT_ASSERT( cut(p2) );
82 CPPUNIT_ASSERT( cut(p3) );
85 void StjJetCutTest::testNFourVecs()
94 CPPUNIT_ASSERT( cut(p1) );
102 CPPUNIT_ASSERT( ! cut(p2) );
105 void StjJetCutTest::testTrgBHT_notPass()
115 four1.detectorId = 9;
117 p1.fourVecList.push_back(four1);
119 CPPUNIT_ASSERT( cut(p1) );
122 void StjJetCutTest::testTrgBHT_pass()
126 trg._towers.push_back(1);
133 four1.detectorId = 9;
135 p1.fourVecList.push_back(four1);
137 CPPUNIT_ASSERT( ! cut(p1) );
140 void StjJetCutTest::testTrgBHT_type()
144 trg._towers.push_back(1);
151 four1.detectorId = 0;
153 p1.fourVecList.push_back(four1);
155 CPPUNIT_ASSERT( cut(p1) );
158 void StjJetCutTest::testTrgBHT_detectorId()
162 trg._towers.push_back(1);
169 four1.detectorId = 13;
171 p1.fourVecList.push_back(four1);
173 CPPUNIT_ASSERT( cut(p1) );
176 void StjJetCutTest::testTrgBHT_towerId()
180 trg._towers.push_back(1);
187 four1.detectorId = 9;
189 p1.fourVecList.push_back(four1);
191 CPPUNIT_ASSERT( cut(p1) );
194 void StjJetCutTest::testTrgBJP_notPass()
204 four1.detectorId = 9;
206 p1.fourVecList.push_back(four1);
208 CPPUNIT_ASSERT( cut(p1) );
211 void StjJetCutTest::testTrgBJP_pass()
215 trg._jetPatches.push_back(2);
222 four1.detectorId = 9;
224 p1.fourVecList.push_back(four1);
226 CPPUNIT_ASSERT( ! cut(p1) );
229 void StjJetCutTest::testTrgBJP_type()
233 trg._jetPatches.push_back(2);
240 four1.detectorId = 0;
242 p1.fourVecList.push_back(four1);
244 CPPUNIT_ASSERT( cut(p1) );
247 void StjJetCutTest::testTrgBJP_detectorId()
251 trg._jetPatches.push_back(2);
258 four1.detectorId = 13;
260 p1.fourVecList.push_back(four1);
262 CPPUNIT_ASSERT( cut(p1) );
265 void StjJetCutTest::testTrgBJP_jetPatchId()
269 trg._jetPatches.push_back(2);
276 four1.detectorId = 9;
278 p1.fourVecList.push_back(four1);
280 CPPUNIT_ASSERT( cut(p1) );