3 #include "StjTrgSoftMuDstTriggerSimuMaker.h"
5 #include "StTriggerUtilities/StTriggerSimuMaker.h"
6 #include "StTriggerUtilities/StTriggerSimuResult.h"
10 #include <StjTrgSoftGetAdcEt.h>
15 : _simuTrig(simuTrig), _adcEt(adcEt)
20 void StjTrgSoftMuDstTriggerSimuMaker::setTrg(
StjTrg* trg)
26 bool StjTrgSoftMuDstTriggerSimuMaker::soft()
28 return _simuTrig->isTrigger(_trg->id());
31 std::vector<int> StjTrgSoftMuDstTriggerSimuMaker::towers()
35 std::vector<short> towerId = trigResult.highTowerIds();
39 std::copy(towerId.begin(), towerId.end(), back_inserter(ret));
44 std::vector<int> StjTrgSoftMuDstTriggerSimuMaker::towerDsmAdc()
48 std::vector<short> towerId = trigResult.highTowerIds();
52 for(
size_t i = 0; i != towerId.size(); ++i){
59 std::vector<int> StjTrgSoftMuDstTriggerSimuMaker::jetPatches()
63 std::vector<short> jpId = trigResult.jetPatchIds();
67 std::copy(jpId.begin(), jpId.end(), back_inserter(ret));
72 std::vector<int> StjTrgSoftMuDstTriggerSimuMaker::jetPatchDsmAdc()
76 std::vector<short> jpId = trigResult.jetPatchIds();
80 for(
size_t i = 0; i != jpId.size(); ++i){
87 std::vector<unsigned int> StjTrgSoftMuDstTriggerSimuMaker::towerAdc()
89 return _adcEt->towerAdc();
92 std::vector<double> StjTrgSoftMuDstTriggerSimuMaker::towerEnergy()
94 return _adcEt->towerEnergy();
97 std::vector<double> StjTrgSoftMuDstTriggerSimuMaker::towerEt()
99 return _adcEt->towerEt();
102 std::vector<unsigned int> StjTrgSoftMuDstTriggerSimuMaker::jetPatchAdc()
104 return _adcEt->jetPatchAdc();
107 std::vector<double> StjTrgSoftMuDstTriggerSimuMaker::jetPatchEnergy()
109 return _adcEt->jetPatchEnergy();
112 std::vector<double> StjTrgSoftMuDstTriggerSimuMaker::jetPatchEt()
114 return _adcEt->jetPatchEt();
int jetPatchAdc(short jetPatchId) const
returns DSM ADC if above trigger threshold, otherwise -1
int highTowerAdc(short towerId) const
returns DSM ADC if above trigger threshold, otherwise -1
const StTriggerSimuResult & detailedResult(int trigId)
returns object containing detailed information about simulation of given trigger