#include <L1RCTReceiverCard.h>
Definition at line 14 of file L1RCTReceiverCard.h.
◆ L1RCTReceiverCard() [1/2]
L1RCTReceiverCard::L1RCTReceiverCard |
( |
int |
crateNumber, |
|
|
int |
cardNumber, |
|
|
const L1RCTLookupTables * |
rctLookupTables |
|
) |
| |
Definition at line 18 of file L1RCTReceiverCard.cc.
const L1RCTLookupTables * rctLookupTables_
std::vector< unsigned short > overFlowBits
std::vector< unsigned short > etIn10Bits
std::vector< unsigned short > muonBits
std::vector< unsigned short > tauBits
std::vector< L1RCTRegion > regions
◆ L1RCTReceiverCard() [2/2]
L1RCTReceiverCard::L1RCTReceiverCard |
( |
| ) |
|
|
delete |
◆ ~L1RCTReceiverCard()
L1RCTReceiverCard::~L1RCTReceiverCard |
( |
| ) |
|
◆ calcMuonBit()
unsigned short L1RCTReceiverCard::calcMuonBit |
( |
L1RCTRegion |
region | ) |
|
|
private |
◆ calcRegionSum()
unsigned short L1RCTReceiverCard::calcRegionSum |
( |
L1RCTRegion |
region | ) |
|
|
private |
◆ calcTauBit()
unsigned short L1RCTReceiverCard::calcTauBit |
( |
L1RCTRegion |
region | ) |
|
|
private |
Definition at line 161 of file L1RCTReceiverCard.cc.
References mps_fire::i, and nano_mu_digi_cff::region.
Referenced by fillTauBits().
162 bitset<4> etaPattern;
163 bitset<4> phiPattern;
165 bitset<4> badPattern5(
string(
"0101"));
166 bitset<4> badPattern7(
string(
"0111"));
167 bitset<4> badPattern9(
string(
"1001"));
168 bitset<4> badPattern10(
string(
"1010"));
169 bitset<4> badPattern11(
string(
"1011"));
170 bitset<4> badPattern13(
string(
"1101"));
171 bitset<4> badPattern14(
string(
"1110"));
172 bitset<4> badPattern15(
string(
"1111"));
174 for (
int i = 0;
i < 4;
i++) {
175 phiPattern[
i] =
region.getActivityBit(
i, 0) ||
region.getActivityBit(
i, 1) ||
region.getActivityBit(
i, 2) ||
177 etaPattern[
i] =
region.getActivityBit(0,
i) ||
region.getActivityBit(1,
i) ||
region.getActivityBit(2,
i) ||
183 if (etaPattern != badPattern5 && etaPattern != badPattern7 && etaPattern != badPattern10 &&
184 etaPattern != badPattern11 && etaPattern != badPattern13 && etaPattern != badPattern14 &&
185 etaPattern != badPattern15 && phiPattern != badPattern5 && phiPattern != badPattern7 &&
186 phiPattern != badPattern10 && phiPattern != badPattern11 && phiPattern != badPattern13 &&
187 phiPattern != badPattern14 && phiPattern != badPattern15 && etaPattern != badPattern9 &&
188 phiPattern != badPattern9) {
◆ cardNumber()
int L1RCTReceiverCard::cardNumber |
( |
| ) |
|
|
inline |
◆ crateNumber()
int L1RCTReceiverCard::crateNumber |
( |
| ) |
|
|
inline |
◆ fileInput()
void L1RCTReceiverCard::fileInput |
( |
char * |
filename | ) |
|
◆ fillInput()
void L1RCTReceiverCard::fillInput |
( |
const std::vector< unsigned short > & |
input | ) |
|
Definition at line 71 of file L1RCTReceiverCard.cc.
References cardNo, cuy::col, crtNo, mps_fire::i, dqmdumpme::indices, input, L1RCTLookupTables::lookup(), alignCSCRings::r, rctLookupTables_, regions, and towerToRegionMap().
Referenced by fileInput(), and randomInput().
72 std::vector<unsigned short> ecalInput(32);
73 std::vector<unsigned short> ecalFG(32);
74 std::vector<unsigned short> hcalInput(32);
75 std::vector<unsigned short> hcalMuon(32);
77 for (
int i = 0;
i < 32;
i++) {
78 ecalInput.at(
i) =
input.at(
i) / 2;
80 hcalInput.at(
i) =
input.at(
i + 32) / 2;
81 hcalMuon.at(
i) =
input.at(
i + 32) & 1;
84 unsigned short etIn7Bits = lookup & 127;
85 unsigned short etIn9Bits = (lookup >> 8) & 511;
86 unsigned short HE_FGBit = (lookup >> 7) & 1;
87 unsigned short activityBit = (lookup >> 17) & 1;
90 unsigned short row =
indices.at(1);
96 regions.at(
r).setActivityBit(row,
col, activityBit);
unsigned int lookup(unsigned short ecalInput, unsigned short hcalInput, unsigned short fgbit, unsigned short crtNo, unsigned short crdNo, unsigned short twrNo) const
static std::string const input
const L1RCTLookupTables * rctLookupTables_
std::vector< unsigned short > towerToRegionMap(int towernum)
std::vector< L1RCTRegion > regions
◆ fillMuonBits()
void L1RCTReceiverCard::fillMuonBits |
( |
| ) |
|
◆ fillRegionSums()
void L1RCTReceiverCard::fillRegionSums |
( |
| ) |
|
◆ fillTauBits()
void L1RCTReceiverCard::fillTauBits |
( |
| ) |
|
◆ getEtIn10BitsRegion()
unsigned short L1RCTReceiverCard::getEtIn10BitsRegion |
( |
int |
i | ) |
|
|
inline |
◆ getMuonBitRegion()
unsigned short L1RCTReceiverCard::getMuonBitRegion |
( |
int |
i | ) |
|
|
inline |
◆ getOverFlowBitRegion()
unsigned short L1RCTReceiverCard::getOverFlowBitRegion |
( |
int |
i | ) |
|
|
inline |
◆ getRegion()
◆ getTauBitRegion()
unsigned short L1RCTReceiverCard::getTauBitRegion |
( |
int |
i | ) |
|
|
inline |
◆ print()
void L1RCTReceiverCard::print |
( |
void |
| ) |
|
◆ printEdges()
void L1RCTReceiverCard::printEdges |
( |
| ) |
|
|
inline |
◆ randomInput()
void L1RCTReceiverCard::randomInput |
( |
| ) |
|
◆ towerToRegionMap()
vector< unsigned short > L1RCTReceiverCard::towerToRegionMap |
( |
int |
towernum | ) |
|
Definition at line 100 of file L1RCTReceiverCard.cc.
References cardNo, crtNo, and nano_mu_digi_cff::region.
Referenced by fillInput().
101 std::vector<unsigned short> returnVec(3);
103 unsigned short towerrow;
104 unsigned short towercol;
109 towerrow = towernum % 4;
110 towercol = 3 - (towernum / 4);
113 towerrow = towernum % 4;
114 towercol = 7 - (towernum / 4);
119 towerrow = towernum % 4;
120 towercol = 3 - (towernum / 4);
123 towerrow = towernum % 4;
124 towercol = (towernum / 4) - 4;
131 towerrow = towernum % 4;
132 towercol = towernum / 4;
135 towerrow = towernum % 4;
136 towercol = (towernum / 4) - 4;
141 towerrow = towernum % 4;
142 towercol = towernum / 4;
145 towerrow = towernum % 4;
146 towercol = 7 - (towernum / 4);
151 returnVec.at(1) = towerrow;
152 returnVec.at(2) = towercol;
◆ cardNo
unsigned short L1RCTReceiverCard::cardNo |
|
private |
◆ crtNo
unsigned short L1RCTReceiverCard::crtNo |
|
private |
◆ etIn10Bits
std::vector<unsigned short> L1RCTReceiverCard::etIn10Bits |
|
private |
◆ muonBits
std::vector<unsigned short> L1RCTReceiverCard::muonBits |
|
private |
◆ overFlowBits
std::vector<unsigned short> L1RCTReceiverCard::overFlowBits |
|
private |
◆ rctLookupTables_
◆ regions
◆ tauBits
std::vector<unsigned short> L1RCTReceiverCard::tauBits |
|
private |