3 #include "StBET4pMakerImp.h"
9 #include "StjTrackListCut.h"
10 #include "StjTowerEnergyListCut.h"
12 #include "StjAbstractTowerEnergyCorrectionForTracks.h"
22 : _tpc(tpc), _bemc(bemc), _eemc(eemc)
23 , _tpcCut(tpcCut), _bemcCut(bemcCut)
24 , _correctTowerEnergyForTracks(correctTowerEnergyForTracks)
29 void StBET4pMakerImp::Init()
36 std::pair<StjTrackList, StjTowerEnergyList> StBET4pMakerImp::getTrackAndEnergyList()
38 StjTrackList trackList = _tpc->getTrackList();
39 StjTowerEnergyList bemcEnergyList = _bemc->getEnergyList();
40 StjTowerEnergyList eemcEnergyList = _eemc->getEnergyList();
42 trackList = (*_tpcCut)(trackList);
43 bemcEnergyList = (*_bemcCut)(bemcEnergyList);
45 StjTowerEnergyList energyList;
46 energyList.insert(energyList.end(),bemcEnergyList.begin(),bemcEnergyList.end());
47 energyList.insert(energyList.end(),eemcEnergyList.begin(),eemcEnergyList.end());
49 energyList = (*_correctTowerEnergyForTracks)(energyList,trackList);
51 return make_pair(trackList,energyList);