9 #include "StjTowerEnergyCorrectionForTracksMip.h"
13 StjTowerEnergyList StjTowerEnergyCorrectionForTracksMip::Do(
const StjTowerEnergyList& energyDepositList,
const StjTrackList& trackList)
15 StjTowerEnergyList elist;
17 for (StjTowerEnergyList::const_iterator iTower = energyDepositList.begin(); iTower != energyDepositList.end(); ++iTower) {
19 float eta = tower.towerEta;
21 for (StjTrackList::const_iterator iTrack = trackList.begin(); iTrack != trackList.end(); ++iTrack) {
24 if (track.exitDetectorId == tower.detectorId && track.exitTowerId == tower.towerId) {
26 tower.energy -= 0.261*(1+0.056*eta*eta)*cosh(eta);
30 if (tower.energy > 0) elist.push_back(tower);