3 #include <StjDijetCutAsymmetricPt.h>
4 #include <StjDijetCutEta.h>
5 #include <StjDijetCutEta3MinusEta4.h>
6 #include <StjDijetCutDPhi.h>
7 #include <StjDijetCutTrgBHT.h>
8 #include <StjDijetCutTrgBJP.h>
10 #include <StjTrgBEMCJetPatchTowerIdMap2005.h>
12 #include <StjDijetList.h>
14 #include "StjTrgMock.hh"
16 #include "StjDijetCutTest.hh"
21 void StjDijetCutTest::setUp()
26 void StjDijetCutTest::tearDown()
31 void StjDijetCutTest::testAsymmetricPt()
38 CPPUNIT_ASSERT( cut(dijet) );
42 CPPUNIT_ASSERT( cut(dijet) );
46 CPPUNIT_ASSERT( cut(dijet) );
50 CPPUNIT_ASSERT( cut(dijet) );
54 CPPUNIT_ASSERT( ! cut(dijet) );
58 CPPUNIT_ASSERT( ! cut(dijet) );
61 void StjDijetCutTest::testEta()
68 CPPUNIT_ASSERT( ! cut(dijet) );
70 dijet.jet3.eta = -0.1;
72 CPPUNIT_ASSERT( cut(dijet) );
76 CPPUNIT_ASSERT( cut(dijet) );
79 dijet.jet4.eta = -0.1;
80 CPPUNIT_ASSERT( cut(dijet) );
84 CPPUNIT_ASSERT( cut(dijet) );
86 dijet.jet3.eta = -0.2;
88 CPPUNIT_ASSERT( cut(dijet) );
91 dijet.jet4.eta = -0.2;
92 CPPUNIT_ASSERT( cut(dijet) );
95 void StjDijetCutTest::testEta3MinusEta4()
100 dijet.jet3.eta = 0.2;
101 dijet.jet4.eta = 0.1;
102 CPPUNIT_ASSERT( ! cut(dijet) );
104 dijet.jet3.eta = 0.61;
105 dijet.jet4.eta = 0.1;
106 CPPUNIT_ASSERT( cut(dijet) );
109 void StjDijetCutTest::testDPhi()
115 CPPUNIT_ASSERT( cut(dijet) );
118 CPPUNIT_ASSERT( ! cut(dijet) );
121 void StjDijetCutTest::testTrgBHT_notPass()
131 four1.detectorId = 9;
133 dijet.jet3.fourVecList.push_back(four1);
135 CPPUNIT_ASSERT( cut(dijet) );
138 void StjDijetCutTest::testTrgBHT_pass()
142 trg._towers.push_back(1);
149 four1.detectorId = 9;
151 dijet.jet3.fourVecList.push_back(four1);
153 CPPUNIT_ASSERT( ! cut(dijet) );
158 four2.detectorId = 9;
160 dijet2.jet4.fourVecList.push_back(four2);
162 CPPUNIT_ASSERT( ! cut(dijet) );
165 void StjDijetCutTest::testTrgBHT_type()
169 trg._towers.push_back(1);
176 four1.detectorId = 0;
178 dijet.jet3.fourVecList.push_back(four1);
180 CPPUNIT_ASSERT( cut(dijet) );
183 void StjDijetCutTest::testTrgBHT_detectorId()
187 trg._towers.push_back(1);
194 four1.detectorId = 13;
196 dijet.jet4.fourVecList.push_back(four1);
198 CPPUNIT_ASSERT( cut(dijet) );
201 void StjDijetCutTest::testTrgBHT_towerId()
205 trg._towers.push_back(1);
212 four1.detectorId = 9;
214 dijet.jet3.fourVecList.push_back(four1);
216 CPPUNIT_ASSERT( cut(dijet) );
219 void StjDijetCutTest::testTrgBJP_notPass()
229 four1.detectorId = 9;
231 dijet.jet4.fourVecList.push_back(four1);
233 CPPUNIT_ASSERT( cut(dijet) );
236 void StjDijetCutTest::testTrgBJP_pass()
240 trg._jetPatches.push_back(2);
247 four1.detectorId = 9;
249 dijet.jet3.fourVecList.push_back(four1);
251 CPPUNIT_ASSERT( ! cut(dijet) );
254 void StjDijetCutTest::testTrgBJP_type()
258 trg._jetPatches.push_back(2);
265 four1.detectorId = 0;
267 dijet.jet4.fourVecList.push_back(four1);
269 CPPUNIT_ASSERT( cut(dijet) );
272 void StjDijetCutTest::testTrgBJP_detectorId()
276 trg._jetPatches.push_back(2);
283 four1.detectorId = 13;
285 dijet.jet4.fourVecList.push_back(four1);
287 CPPUNIT_ASSERT( cut(dijet) );
290 void StjDijetCutTest::testTrgBJP_jetPatchId()
294 trg._jetPatches.push_back(2);
301 four1.detectorId = 9;
303 dijet.jet3.fourVecList.push_back(four1);
305 CPPUNIT_ASSERT( cut(dijet) );