15 rctLookupTables_(rctLookupTables),
17 nonisolatedEGObjects(4),
31 for (
int i = 0;
i < 8;
i++) {
42 for (
int i = 0;
i < 4;
i++) {
78 for (
int i = 0;
i < 4;
i++) {
89 std::vector<unsigned short> isoCards03(8);
90 std::vector<unsigned short> isoCards46(8);
91 std::vector<unsigned short> sortIso(8);
93 for (
int i = 0;
i < 8;
i++) {
94 isoCards03.at(
i) = isoElectrons.at(
i);
96 for (
int i = 0;
i < 6;
i++) {
97 isoCards46.at(
i) = isoElectrons.at(
i + 8);
100 isoCards46.at(7) = 0;
105 sortIso.at(0) = isoCards03.at(0);
106 sortIso.at(2) = isoCards03.at(2);
107 sortIso.at(4) = isoCards03.at(4);
108 sortIso.at(6) = isoCards03.at(6);
109 sortIso.at(1) = isoCards46.at(0);
110 sortIso.at(3) = isoCards46.at(2);
111 sortIso.at(5) = isoCards46.at(4);
112 sortIso.at(7) = isoCards46.at(6);
130 std::vector<unsigned short> nonIsoCards03(8);
131 std::vector<unsigned short> nonIsoCards46(8);
132 std::vector<unsigned short> sortNonIso(8);
134 for (
int i = 0;
i < 8;
i++) {
135 nonIsoCards03.at(
i) = nonIsoElectrons.at(
i);
137 for (
int i = 0;
i < 6;
i++) {
138 nonIsoCards46.at(
i) = nonIsoElectrons.at(
i + 8);
140 nonIsoCards46.at(6) = 0;
141 nonIsoCards46.at(7) = 0;
146 sortNonIso.at(0) = nonIsoCards03.at(0);
147 sortNonIso.at(2) = nonIsoCards03.at(2);
148 sortNonIso.at(4) = nonIsoCards03.at(4);
149 sortNonIso.at(6) = nonIsoCards03.at(6);
150 sortNonIso.at(1) = nonIsoCards46.at(0);
151 sortNonIso.at(3) = nonIsoCards46.at(2);
152 sortNonIso.at(5) = nonIsoCards46.at(4);
153 sortNonIso.at(7) = nonIsoCards46.at(6);
169 for (
int i = 0;
i < 14;
i++)
176 for (
int i = 0;
i < 14;
i++)
182 bitset<14> overflows;
183 for (
int i = 0;
i < 14;
i++)
184 overflows[
i] = overflow.at(
i);
195 for (
int i = 0;
i < 8;
i++) {
202 for (
int i = 8;
i < 14;
i++) {
214 unsigned short temp, temp2;
220 temp = electrons.at(7);
221 electrons.at(7) = electrons.at(5);
222 electrons.at(5) = electrons.at(3);
223 electrons.at(3) = electrons.at(1);
224 electrons.at(1) =
temp;
232 temp = electrons.at(7);
233 temp2 = electrons.at(5);
234 electrons.at(7) = electrons.at(3);
235 electrons.at(5) = electrons.at(1);
236 electrons.at(3) =
temp;
237 electrons.at(1) = temp2;
245 temp = electrons.at(1);
246 electrons.at(1) = electrons.at(3);
247 electrons.at(3) = electrons.at(5);
248 electrons.at(5) = electrons.at(7);
249 electrons.at(7) =
temp;
260 for (i = 0; i < 4; i++) {
266 temp = array.at(2 * i);
267 array.at(2 * i) = array.at((2 * i) + 1);
268 array.at((2 * i) + 1) =
temp;
277 for (
int i = 0;
i < 4;
i++) {
283 for (
int i = 0;
i < 22;
i++)
unsigned short overFlowBits
void fillIsolatedEGObjects(const std::vector< unsigned short > &isoElectrons)
std::vector< unsigned short > nonisolatedEGObjects
std::vector< unsigned short > isolatedEGObjects
std::vector< unsigned short > HFRegions
void asicCompare(std::vector< unsigned short > &array)
void fillOverFlowBits(const std::vector< unsigned short > &overflow)
unsigned jscQuietThresholdEndcap() const
void fillHFRegionSums(const std::vector< unsigned short > &hfRegionSums)
std::vector< unsigned short > jetRegions
unsigned quietThresholdEndcap
std::vector< unsigned short > barrelRegions
unsigned quietThresholdBarrel
unsigned int emRank(unsigned short energy) const
void fillTauBits(const std::vector< unsigned short > &tau)
void asicSort(std::vector< unsigned short > &electrons)
const L1RCTParameters * rctParameters() const
std::vector< unsigned short > hfFineGrainBits
void fillNonIsolatedEGObjects(const std::vector< unsigned short > &nonIsoElectrons)
void fillMIPBits(const std::vector< unsigned short > &mip)
L1RCTJetSummaryCard()=delete
const L1RCTLookupTables * rctLookupTables_
unsigned jscQuietThresholdBarrel() const
unsigned int lookup(unsigned short ecalInput, unsigned short hcalInput, unsigned short fgbit, unsigned short crtNo, unsigned short crdNo, unsigned short twrNo) const