60 (
double phi,
double eta,
unsigned int key,
61 const std::vector<int>& em_digits,
62 const std::vector<int>& em_et,
63 const std::vector<int>& em_digits_bcid,
64 const std::vector<int>& em_bcid,
65 int em_error,
int em_peak,
int em_adc_peak,
66 const std::vector<int>& had_digits,
67 const std::vector<int>& had_et,
68 const std::vector<int>& had_digits_bcid,
69 const std::vector<int>& had_bcid,
70 int had_error,
int had_peak,
int had_adc_peak):
74 m_had_adc(had_digits),
77 m_em_extBCID(em_digits_bcid),
78 m_had_extBCID(had_digits_bcid),
83 m_had_error(had_error),
85 m_em_adc_peak(em_adc_peak),
87 m_had_adc_peak(had_adc_peak)
91 TriggerTower::~TriggerTower(){
96 return m_em_energy[m_em_peak];
101 return m_had_energy[m_had_peak];
105 const std::vector<int> & TriggerTower::emLUT()
const
106 {
return m_em_energy; }
109 const std::vector<int> & TriggerTower::hadLUT()
const
110 {
return m_had_energy; }
113 const std::vector<int> & TriggerTower::emADC()
const
117 const std::vector<int> & TriggerTower::hadADC()
const
118 {
return m_had_adc; }
123 if (m_em_BCID.size() != m_em_energy.size() &&
124 m_em_BCID.size() == m_em_adc.size())
return m_em_BCID[m_em_adc_peak];
126 return m_em_BCID[m_em_peak];
131 if (m_had_BCID.size() != m_had_energy.size() &&
132 m_had_BCID.size() == m_had_adc.size())
return m_had_BCID[m_had_adc_peak];
134 return m_had_BCID[m_had_peak];
139 {
return m_em_BCID; }
143 {
return m_had_BCID; }
146 {
return m_em_extBCID; }
150 {
return m_had_extBCID; }
154 const std::vector<int>&
et,
155 const std::vector<int>& digits_bcid,
156 const std::vector<int>&
bcid,
157 int error,
int peak,
int adc_peak) {
161 m_em_extBCID = digits_bcid;
164 m_em_adc_peak = adc_peak;
169 const std::vector<int>& digits_bcid,
const std::vector<int>&
bcid,
170 int error,
int peak,
int adc_peak) {
174 m_had_extBCID = digits_bcid;
177 m_had_adc_peak = adc_peak;
197 if (m_em_energy[m_em_peak]>=m_saturation){
208 if (m_had_energy[m_had_peak]>=m_saturation){