15 rctLookupTables_(rctLookupTables),
17 nonisolatedEGObjects(4),
43 for(
int i = 0;
i<4;
i++){
79 for(
int i = 0;
i<4;
i++){
90 std::vector<unsigned short> isoCards03(8);
91 std::vector<unsigned short> isoCards46(8);
92 std::vector<unsigned short> sortIso(8);
94 for (
int i = 0;
i < 8;
i++){
95 isoCards03.at(
i) = isoElectrons.at(
i);
97 for (
int i = 0;
i < 6;
i++){
98 isoCards46.at(
i) = isoElectrons.at(
i+8);
100 isoCards46.at(6) = 0;
101 isoCards46.at(7) = 0;
106 sortIso.at(0) = isoCards03.at(0);
107 sortIso.at(2) = isoCards03.at(2);
108 sortIso.at(4) = isoCards03.at(4);
109 sortIso.at(6) = isoCards03.at(6);
110 sortIso.at(1) = isoCards46.at(0);
111 sortIso.at(3) = isoCards46.at(2);
112 sortIso.at(5) = isoCards46.at(4);
113 sortIso.at(7) = isoCards46.at(6);
131 std::vector<unsigned short> nonIsoCards03(8);
132 std::vector<unsigned short> nonIsoCards46(8);
133 std::vector<unsigned short> sortNonIso(8);
135 for (
int i = 0;
i < 8;
i++){
136 nonIsoCards03.at(
i) = nonIsoElectrons.at(
i);
138 for (
int i = 0;
i < 6;
i++){
139 nonIsoCards46.at(
i) = nonIsoElectrons.at(
i+8);
141 nonIsoCards46.at(6) = 0;
142 nonIsoCards46.at(7) = 0;
147 sortNonIso.at(0) = nonIsoCards03.at(0);
148 sortNonIso.at(2) = nonIsoCards03.at(2);
149 sortNonIso.at(4) = nonIsoCards03.at(4);
150 sortNonIso.at(6) = nonIsoCards03.at(6);
151 sortNonIso.at(1) = nonIsoCards46.at(0);
152 sortNonIso.at(3) = nonIsoCards46.at(2);
153 sortNonIso.at(5) = nonIsoCards46.at(4);
154 sortNonIso.at(7) = nonIsoCards46.at(6);
170 for(
int i = 0;
i<14;
i++)
177 for(
int i = 0;
i<14;
i++)
183 bitset<14> overflows;
184 for(
int i = 0;
i<14;
i++)
185 overflows[
i] = overflow.at(
i);
196 for(
int i = 0;
i<8;
i++){
203 for(
int i = 8;
i<14;
i++){
216 unsigned short temp, temp2;
222 temp = electrons.at(7);
223 electrons.at(7) = electrons.at(5);
224 electrons.at(5) = electrons.at(3);
225 electrons.at(3) = electrons.at(1);
226 electrons.at(1) =
temp;
234 temp = electrons.at(7);
235 temp2 = electrons.at(5);
236 electrons.at(7) = electrons.at(3);
237 electrons.at(5) = electrons.at(1);
238 electrons.at(3) =
temp;
239 electrons.at(1) = temp2;
247 temp = electrons.at(1);
248 electrons.at(1) = electrons.at(3);
249 electrons.at(3) = electrons.at(5);
250 electrons.at(5) = electrons.at(7);
251 electrons.at(7) =
temp;
264 for (i = 0; i < 4; i++)
272 temp = array.at(2 * i);
273 array.at(2 * i) = array.at((2 * i) + 1);
274 array.at((2 * i) + 1) =
temp;
284 for(
int i=0;
i<4;
i++) {
289 for(
int i=0;
i<22;
i++)
unsigned short overFlowBits
std::vector< unsigned short > nonisolatedEGObjects
std::vector< unsigned short > isolatedEGObjects
std::vector< unsigned short > HFRegions
void fillTauBits(std::vector< unsigned short > tau)
void asicCompare(std::vector< unsigned short > &array)
unsigned jscQuietThresholdEndcap() const
void fillHFRegionSums(std::vector< unsigned short > hfRegionSums)
std::vector< unsigned short > jetRegions
unsigned quietThresholdEndcap
void fillIsolatedEGObjects(std::vector< unsigned short > isoElectrons)
std::vector< unsigned short > barrelRegions
unsigned quietThresholdBarrel
void fillOverFlowBits(std::vector< unsigned short > overflow)
unsigned int emRank(unsigned short energy) const
void fillMIPBits(std::vector< unsigned short > mip)
void asicSort(std::vector< unsigned short > &electrons)
const L1RCTParameters * rctParameters() const
std::vector< unsigned short > hfFineGrainBits
void fillNonIsolatedEGObjects(std::vector< unsigned short > nonIsoElectrons)
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