3 #include <StBET4pMakerImp.h>
5 #include <StjBEMCTxt.h>
6 #include <StjEEMCTxt.h>
8 #include "StjTrackListCut.h"
10 #include <StjTrackCutDca.h>
11 #include <StjTrackCutDcaPtDependent.h>
12 #include <StjTrackCutEta.h>
13 #include <StjTrackCutPossibleHitRatio.h>
15 #include "StjTowerEnergyListCut.h"
17 #include <StjTowerEnergyCut2003BemcTower.h>
18 #include <StjTowerEnergyCutBemcWestOnly.h>
19 #include <StjTowerEnergyCutEnergy.h>
20 #include <StjTowerEnergyCutBemcStatus.h>
21 #include <StjTowerEnergyCutAdc.h>
23 #include "StjTowerEnergyCorrectionForTracks.h"
29 #include "StBET4pMakerImpTest.hh"
36 void StBET4pMakerImpTest::setUp()
41 void StBET4pMakerImpTest::tearDown()
46 void StBET4pMakerImpTest::testGetTrackAndEnergyList_withCut()
48 tpc =
new StjTPCMock(35);
49 bemc =
new StjBEMCMock(4500);
50 eemc =
new StjEEMCMock(1000);
53 tpcCut->addCut(
new StjTrackCutMock());
56 bemcCut->addCut(
new StjTowerEnergyCutMock());
61 pair<StjTrackList, StjTowerEnergyList> actual = imp->getTrackAndEnergyList();
62 CPPUNIT_ASSERT_EQUAL( (
size_t)0, actual.first.size() );
63 CPPUNIT_ASSERT_EQUAL( (
size_t)1000, actual.second.size() );
74 void StBET4pMakerImpTest::testGetTrackAndEnergyList_withoutCut()
76 tpc =
new StjTPCMock(35);
77 bemc =
new StjBEMCMock(4500);
78 eemc =
new StjEEMCMock(1000);
87 pair<StjTrackList, StjTowerEnergyList> actual = imp->getTrackAndEnergyList();
88 CPPUNIT_ASSERT_EQUAL( (
size_t)35, actual.first.size() );
89 CPPUNIT_ASSERT_EQUAL( (
size_t)5500, actual.second.size() );
100 void StBET4pMakerImpTest::testMake()