StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTowerEnergyFraction.cxx
1  //
2 // Grant Webb <grant.webb@uky.edu>
3 // University of Kentucky
4 // 6 March 2012
5 //
6 
7 #include "StjTowerEnergyFraction.h"
8 
9 ClassImp(StjTowerEnergyFraction);
10 
11 StjTowerEnergyList StjTowerEnergyFraction::Do( const StjTowerEnergyList& energyDepositList)
12 {
13  StjTowerEnergyList elist;
14  // Tower loop
15  for (StjTowerEnergyList::const_iterator iTower = energyDepositList.begin(); iTower != energyDepositList.end(); ++iTower) {
16 
17  StjTowerEnergy tower = *iTower;
18  // Add a certain fraction to the tower energy
19  tower.energy += mFraction *tower.energy;
20  elist.push_back(tower);
21  } // End tower loop
22  return elist;
23 }