3 #include <StjTrackTowerEnergyListToFourVecList.h>
5 #include <StjTowerEnergyList.h>
6 #include <StjTrackList.h>
7 #include <StjFourVecList.h>
9 #include "StjTrackTowerEnergyListToFourVecListTest.hh"
18 void StjTrackTowerEnergyListToFourVecListTest::setUp()
23 void StjTrackTowerEnergyListToFourVecListTest::tearDown()
28 void StjTrackTowerEnergyListToFourVecListTest::testOne()
30 StjTrackList trackList;
33 track1.runNumber = 100;
35 track1.detectorId = 1;
40 trackList.push_back(track1);
43 track2.runNumber = 100;
45 track2.detectorId = 1;
50 trackList.push_back(track2);
52 StjTowerEnergyList energyList;
55 energy1.runNumber = 100;
57 energy1.detectorId = 9;
60 energy1.towerR = 225.0;
61 energy1.towerEta = 0.3;
62 energy1.towerPhi = 0.0;
63 energy1.towerR = 225.0;
64 energy1.vertexX = 0.0;
65 energy1.vertexY = 0.0;
66 energy1.vertexZ = 0.0;
67 energyList.push_back(energy1);
70 energy2.runNumber = 100;
72 energy2.detectorId = 9;
75 energy2.towerR = 225.0;
76 energy2.towerEta = 0.3;
77 energy2.towerPhi = 0.0;
78 energy2.towerR = 225.0;
79 energy2.vertexX = 0.0;
80 energy2.vertexY = 0.0;
81 energy2.vertexZ = 0.0;
82 energyList.push_back(energy2);
85 energy3.runNumber = 100;
87 energy3.detectorId = 9;
88 energy3.towerId = 119;
90 energy3.towerR = 225.0;
91 energy3.towerEta = 0.3;
92 energy3.towerPhi = 0.0;
93 energy3.towerR = 225.0;
94 energy3.vertexX = 0.0;
95 energy3.vertexY = 0.0;
96 energy3.vertexZ = 0.0;
97 energyList.push_back(energy3);
101 StjFourVecList fourList = toFourVec(trackList, energyList);
103 CPPUNIT_ASSERT_EQUAL( (
size_t)5, fourList.size());
104 for(StjFourVecList::const_iterator it = fourList.begin(); it != fourList.end(); ++it) {