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