15 : crtNo(crtNo), rctLookupTables_(rctLookupTables), isolatedEGObjects(4),
16 nonisolatedEGObjects(4), jetRegions(22), HFRegions(8), barrelRegions(14),
17 mipBits(0), quietBits(0), tauBits(0), overFlowBits(0), hfFineGrainBits(8)
22 const std::vector<unsigned short> &hfRegionSums) {
24 for (
int i = 0;
i < 8;
i++) {
36 for (
int i = 0;
i < 4;
i++) {
72 for (
int i = 0;
i < 4;
i++) {
80 const std::vector<unsigned short> &isoElectrons) {
84 std::vector<unsigned short> isoCards03(8);
85 std::vector<unsigned short> isoCards46(8);
86 std::vector<unsigned short> sortIso(8);
88 for (
int i = 0;
i < 8;
i++) {
89 isoCards03.at(
i) = isoElectrons.at(
i);
91 for (
int i = 0;
i < 6;
i++) {
92 isoCards46.at(
i) = isoElectrons.at(
i + 8);
100 sortIso.at(0) = isoCards03.at(0);
101 sortIso.at(2) = isoCards03.at(2);
102 sortIso.at(4) = isoCards03.at(4);
103 sortIso.at(6) = isoCards03.at(6);
104 sortIso.at(1) = isoCards46.at(0);
105 sortIso.at(3) = isoCards46.at(2);
106 sortIso.at(5) = isoCards46.at(4);
107 sortIso.at(7) = isoCards46.at(6);
122 const std::vector<unsigned short> &nonIsoElectrons) {
126 std::vector<unsigned short> nonIsoCards03(8);
127 std::vector<unsigned short> nonIsoCards46(8);
128 std::vector<unsigned short> sortNonIso(8);
130 for (
int i = 0;
i < 8;
i++) {
131 nonIsoCards03.at(
i) = nonIsoElectrons.at(
i);
133 for (
int i = 0;
i < 6;
i++) {
134 nonIsoCards46.at(
i) = nonIsoElectrons.at(
i + 8);
136 nonIsoCards46.at(6) = 0;
137 nonIsoCards46.at(7) = 0;
142 sortNonIso.at(0) = nonIsoCards03.at(0);
143 sortNonIso.at(2) = nonIsoCards03.at(2);
144 sortNonIso.at(4) = nonIsoCards03.at(4);
145 sortNonIso.at(6) = nonIsoCards03.at(6);
146 sortNonIso.at(1) = nonIsoCards46.at(0);
147 sortNonIso.at(3) = nonIsoCards46.at(2);
148 sortNonIso.at(5) = nonIsoCards46.at(4);
149 sortNonIso.at(7) = nonIsoCards46.at(6);
165 for (
int i = 0;
i < 14;
i++)
172 for (
int i = 0;
i < 14;
i++)
178 const std::vector<unsigned short> &overflow) {
179 bitset<14> overflows;
180 for (
int i = 0;
i < 14;
i++)
181 overflows[
i] = overflow.at(
i);
194 for (
int i = 0;
i < 8;
i++) {
201 for (
int i = 8;
i < 14;
i++) {
213 unsigned short temp, temp2;
219 temp = electrons.at(7);
220 electrons.at(7) = electrons.at(5);
221 electrons.at(5) = electrons.at(3);
222 electrons.at(3) = electrons.at(1);
223 electrons.at(1) =
temp;
231 temp = electrons.at(7);
232 temp2 = electrons.at(5);
233 electrons.at(7) = electrons.at(3);
234 electrons.at(5) = electrons.at(1);
235 electrons.at(3) =
temp;
236 electrons.at(1) = temp2;
244 temp = electrons.at(1);
245 electrons.at(1) = electrons.at(3);
246 electrons.at(3) = electrons.at(5);
247 electrons.at(5) = electrons.at(7);
248 electrons.at(7) =
temp;
259 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++) {
285 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