3 #include "StjTrgSoftEtThresholdBHT.h"
5 #include "StjTowerEnergyCutEt.h"
6 #include "StjTowerEnergyCutBemcStatus.h"
7 #include "StjTowerEnergyPrint.h"
8 #include "StjTowerEnergyCutEt.h"
9 #include "StjTowerEnergyCutAdc.h"
23 : _bemc(bemc), _minEt(minEt), _runNumber(-1), _eventId(-1)
30 bool StjTrgSoftEtThresholdBHT::isNewEvent()
32 if(_runNumber != _trg->runNumber())
return true;
33 if(_eventId != _trg->eventId())
return true;
37 void StjTrgSoftEtThresholdBHT::read()
39 _runNumber = _trg->runNumber();
40 _eventId = _trg->eventId();
48 StjTowerEnergyList energyList = _bemc->getEnergyList();
49 energyList = _cut(energyList);
52 _passed = ( ! energyList.empty() );
54 for(StjTowerEnergyList::const_iterator it = energyList.begin(); it != energyList.end(); ++it) {
55 _towers.push_back((*it).towerId);
56 _towerDsmAdc.push_back(0);
57 _towerAdc.push_back((*it).adc);
58 _towerEnergy.push_back((*it).energy);
60 vec3.SetPtEtaPhi((*it).towerR, (*it).towerEta, (*it).towerPhi);
61 double Et = ((*it).energy)*TMath::Sin(vec3.Theta());
62 _towerEt.push_back(Et);
67 bool StjTrgSoftEtThresholdBHT::soft()
69 if(isNewEvent()) read();
73 vector<int> StjTrgSoftEtThresholdBHT::towers()
75 if(isNewEvent()) read();
79 vector<int> StjTrgSoftEtThresholdBHT::towerDsmAdc()
81 if(isNewEvent()) read();
85 vector<unsigned int> StjTrgSoftEtThresholdBHT::towerAdc()
87 if(isNewEvent()) read();
91 vector<double> StjTrgSoftEtThresholdBHT::towerEnergy()
93 if(isNewEvent()) read();
97 vector<double> StjTrgSoftEtThresholdBHT::towerEt()
99 if(isNewEvent()) read();