16 const std::string &
name,
19 declareInterface<IeFEXtauAlgo>(
this);
27 m_eTowerContainerKey );
30 << m_eTowerContainerKey.key());
31 return StatusCode::FAILURE;
33 return StatusCode::SUCCESS;
41 m_eTowerContainerKey );
43 for (
unsigned int ieta = 0; ieta < 3; ieta++) {
44 for (
unsigned int iphi = 0; iphi < 3; iphi++) {
45 if (((efex_id % 3 == 0) && (fpga_id == 0) && (central_eta == 0) &&
47 ((efex_id % 3 == 2) && (fpga_id == 3) && (central_eta == 5) &&
49 m_twrcells[ieta][iphi] = 0;
50 m_em0cells[ieta][iphi] = 0;
51 m_em3cells[ieta][iphi] = 0;
52 m_hadcells[ieta][iphi] = 0;
53 for (
unsigned int i = 0;
i < 4;
i++) {
54 m_em1cells[4 * ieta +
i][iphi] = 0;
55 m_em2cells[4 * ieta +
i][iphi] = 0;
60 m_twrcells[ieta][iphi] = tmpTower->
getTotalET();
64 for (
unsigned int i = 0;
i < 4;
i++) {
65 m_em1cells[4 * ieta +
i][iphi] = tmpTower->
getET(1,
i);
66 m_em2cells[4 * ieta +
i][iphi] = tmpTower->
getET(2,
i);
77 std::vector<unsigned int> &RcoreSums,
78 std::vector<unsigned int> &RemSums) {
88 unsigned int core = rHadCore();
89 unsigned int env = rHadEnv();
91 rHadVec.push_back(core);
92 rHadVec.push_back(
env);
97 unsigned int core = rCoreCore();
98 unsigned int env = rCoreEnv();
100 unsigned int num = core;
103 float out =
denom ?
static_cast<float>(
num) /
static_cast<float>(
denom) : 0;
109 unsigned int core = rHadCore();
110 unsigned int env = rHadEnv();
112 unsigned int num = core;
115 float out =
denom ?
static_cast<float>(
num) /
static_cast<float>(
denom) : 0;
121 std::vector<unsigned int> &rCoreVec)
const {
122 unsigned int core = rCoreCore();
123 unsigned int env = rCoreEnv();
125 rCoreVec.push_back(core);
126 rCoreVec.push_back(
env);
132 if (m_cellsSet ==
false) {
134 "Layers not built, cannot accurately determine if a seed tower.");
140 unsigned int centralET = m_twrcells[1][1];
144 for (
unsigned int bphi = 0; bphi < 3; bphi++) {
146 if ((
beta == 1) && (bphi == 1)) {
151 if (
beta == 2 || (
beta == 1 && bphi == 2)) {
152 if (centralET <= m_twrcells[
beta][bphi]) {
158 else if (
beta == 0 || (
beta == 1 && bphi == 0)) {
159 if (centralET < m_twrcells[
beta][bphi]) {