3 #include "StjTrgDisableTowerJP.h"
5 #include "StjTrgBEMCJetPatchTowerIdMap.h"
6 #include "StjTowerEnergyList.h"
8 #include "StjTowerEnergyCutEt.h"
9 #include "StjTowerEnergyListCut.h"
23 _jetPatchDsmAdc.clear();
25 _jetPatchEnergy.clear();
34 vector<int> srcJetPatchs = _src->jetPatches();
35 vector<int> srcJetPatchDsmAdc = _src->jetPatchDsmAdc();
40 StjTowerEnergyList energyList = _bemc->getEnergyList();
41 energyList = cut(energyList);
43 for(
size_t i = 0; i != srcJetPatchs.size(); ++i)
45 _jetPatches.push_back(srcJetPatchs[i]);
46 _jetPatchDsmAdc.push_back(srcJetPatchDsmAdc[i]);
50 for(StjTowerEnergyList::const_iterator it = energyList.begin(); it != energyList.end(); ++it)
52 if( _badTowerIdSet.count((*it).towerId) )
continue;
53 if(srcJetPatchs[i] == _jpTowerMap->getJetPatchIdForTower((*it).towerId))
56 energy += (*it).energy;
58 vec3.SetPtEtaPhi((*it).towerR, (*it).towerEta, (*it).towerPhi);
59 et += ((*it).energy)*TMath::Sin(vec3.Theta());
62 _jetPatchAdc.push_back(adc);
63 _jetPatchEnergy.push_back(energy);
64 _jetPatchEt.push_back(et);
67 _passed = ( ! _jetPatches.empty() );
70 bool StjTrgDisableTowerJP::soft()
const
76 vector<int> StjTrgDisableTowerJP::jetPatches()
82 vector<int> StjTrgDisableTowerJP::jetPatchDsmAdc()
85 return _jetPatchDsmAdc;
88 vector<unsigned int> StjTrgDisableTowerJP::jetPatchAdc()
94 vector<double> StjTrgDisableTowerJP::jetPatchEnergy()
97 return _jetPatchEnergy;
100 vector<double> StjTrgDisableTowerJP::jetPatchEt()