7 #include "StjTowerEnergyCorrectionForTracksFraction.h"
11 StjTowerEnergyList StjTowerEnergyCorrectionForTracksFraction::Do(
const StjTowerEnergyList& energyDepositList,
const StjTrackList& trackList)
13 StjTowerEnergyList elist;
15 for (StjTowerEnergyList::const_iterator iTower = energyDepositList.begin(); iTower != energyDepositList.end(); ++iTower) {
18 for (StjTrackList::const_iterator iTrack = trackList.begin(); iTrack != trackList.end(); ++iTrack) {
21 if (track.exitDetectorId == tower.detectorId && track.exitTowerId == tower.towerId) {
23 tower.energy -= mFraction * track.pt * cosh(track.eta);
37 if (tower.energy < 0) tower.energy = 1e-10;
38 elist.push_back(tower);