3 #include "StjTrgSoftMuDstEmcTriggerMaker.h"
5 #include <StEmcTriggerMaker/StEmcTriggerMaker.h>
7 #include <StjTrgSoftGetAdcEt.h>
14 : _emcTrigMaker(emcTrigMaker), _adcEt(adcEt)
19 void StjTrgSoftMuDstEmcTriggerMaker::setTrg(
StjTrg* trg)
25 bool StjTrgSoftMuDstEmcTriggerMaker::soft()
27 return _emcTrigMaker->
isTrigger(_trg->id());
30 std::vector<int> StjTrgSoftMuDstEmcTriggerMaker::towers()
34 for(std::map<int,int>::const_iterator tower = towerMap.begin(); tower != towerMap.end(); ++tower) {
35 ret.push_back(tower->first);
40 std::vector<int> StjTrgSoftMuDstEmcTriggerMaker::towerDsmAdc()
44 for(std::map<int,int>::const_iterator tower = towerMap.begin(); tower != towerMap.end(); ++tower) {
45 ret.push_back(tower->second);
50 std::vector<int> StjTrgSoftMuDstEmcTriggerMaker::jetPatches()
54 for(map<int,int>::const_iterator jp = jetPatchMap.begin(); jp != jetPatchMap.end(); ++jp) {
55 ret.push_back(jp->first);
60 std::vector<int> StjTrgSoftMuDstEmcTriggerMaker::jetPatchDsmAdc()
64 for(map<int,int>::const_iterator jp = jetPatchMap.begin(); jp != jetPatchMap.end(); ++jp) {
65 ret.push_back(jp->second);
70 std::vector<unsigned int> StjTrgSoftMuDstEmcTriggerMaker::towerAdc()
72 return _adcEt->towerAdc();
75 std::vector<double> StjTrgSoftMuDstEmcTriggerMaker::towerEnergy()
77 return _adcEt->towerEnergy();
80 std::vector<double> StjTrgSoftMuDstEmcTriggerMaker::towerEt()
82 return _adcEt->towerEt();
85 std::vector<unsigned int> StjTrgSoftMuDstEmcTriggerMaker::jetPatchAdc()
87 return _adcEt->jetPatchAdc();
90 std::vector<double> StjTrgSoftMuDstEmcTriggerMaker::jetPatchEnergy()
92 return _adcEt->jetPatchEnergy();
95 std::vector<double> StjTrgSoftMuDstEmcTriggerMaker::jetPatchEt()
97 return _adcEt->jetPatchEt();
map< int, int > barrelJetPatchesAboveThreshold(int trigId)
map contains (key,value) = (patchId,ADC) of all JP above DSM threshold. map is empty if threshold = 0...
map< int, int > barrelTowersAboveThreshold(int trigId)
map contains (key,value) = (softId,ADC) of all towers above DSM threshold. map is empty if threshold ...
int isTrigger(int trigId)
1==Yes,0==No,-1==Don't Know. Same convention holds for other methods where appropriate.