50 m_BarrelCands(4), m_ForwardCands(4), m_GMTCands(4) {
78 std::vector<L1MuRegionalCand>::iterator itr;
81 std::vector<L1MuGMTExtendedCand>::iterator itg;
85 for(
int i=0;
i<8;
i++) {
94 vector<L1MuGMTExtendedCand>
cands;
96 std::vector<L1MuGMTExtendedCand>::const_iterator it;
98 if((*it).getDataWord()!=0) cands.push_back(*it);
101 if((*it).getDataWord()!=0) cands.push_back(*it);
121 vector<L1MuGMTExtendedCand>
cands;
122 std::vector<L1MuGMTExtendedCand>::const_iterator it;
124 if((*it).getDataWord()!=0) cands.push_back(*it);
134 vector<L1MuGMTExtendedCand>
cands;
135 std::vector<L1MuGMTExtendedCand>::const_iterator it;
137 if((*it).getDataWord()!=0) cands.push_back(*it);
147 vector<L1MuRegionalCand>
cands;
149 for (
int i=0;
i<4;
i++)
161 vector<L1MuRegionalCand>
cands;
163 for (
int i=0;
i<4;
i++)
173 vector<L1MuRegionalCand>
cands;
175 for (
int i=0;
i<4;
i++)
185 vector<L1MuRegionalCand>
cands;
187 for (
int i=0;
i<4;
i++)
197 if (phi<0 || phi > 17 || eta < 0 || eta > 13)
return 0;
200 int idx_word = idx / 32;
201 int idx_bit = idx % 32;
203 unsigned mask = 1 << (idx_bit-1);
205 return(
m_MIPbits[idx_word] & mask) ? 1 : 0;
213 if (phi<0 || phi > 17 || eta < 0 || eta > 13)
return 0;
216 int idx_word = idx / 32;
217 int idx_bit = idx % 32;
219 unsigned mask = 1 << (idx_bit-1);
233 if (nr>=0 && nr < 16) {
240 if (nr>=0 && nr < 16) {
326 if (phi<0 || phi > 17 || eta < 0 || eta > 13)
return;
329 int idx_word = idx / 32;
330 int idx_bit = idx % 32;
332 unsigned mask = 1 << (idx_bit-1);
342 if (phi<0 || phi > 17 || eta < 0 || eta > 13)
return;
345 int idx_word = idx / 32;
346 int idx_bit = idx % 32;
348 unsigned mask = 1 << (idx_bit-1);
std::vector< L1MuGMTExtendedCand > & getGMTCandsData()
get GMT candidates vector as stored in data (no rank info)
std::vector< L1MuGMTExtendedCand > getGMTCands() const
get GMT candidates vector
std::vector< L1MuRegionalCand > m_InputCands
void setFwdRank(int i, unsigned value)
set rank of fwd cand i
L1MuGMTReadoutRecord()
constructors
void setBrlRank(int i, unsigned value)
set rank of brl cand i
void setGMTBrlCand(int nr, L1MuGMTExtendedCand const &cand)
set GMT barrel candidate
std::vector< L1MuGMTExtendedCand > m_BarrelCands
void setGMTFwdCand(int nr, L1MuGMTExtendedCand const &cand)
set GMT forward candidate
void setInputCand(int nr, unsigned data)
set Input muon
unsigned getQuietbit(int eta, int phi) const
get Quiet bit
std::vector< L1MuRegionalCand > getBrlRPCCands() const
get barrel RPC candidates vector
void setQuietbit(int eta, int phi)
set Quiet bit
void reset()
reset the record
std::vector< L1MuRegionalCand > getFwdRPCCands() const
get forward RPC candidates vector
void setMIPbit(int eta, int phi)
set MIP bit
std::vector< L1MuRegionalCand > getCSCCands() const
get CSC candidates vector
std::vector< L1MuGMTExtendedCand > getGMTBrlCands() const
get GMT barrel candidates vector
std::vector< L1MuRegionalCand > getDTBXCands() const
get DT candidates vector
static bool rankRef(const L1MuGMTExtendedCand &first, const L1MuGMTExtendedCand &second)
define a rank for muon candidates
unsigned getMIPbit(int eta, int phi) const
get MIP bit
char data[epos_bytes_allocation]
std::vector< L1MuGMTExtendedCand > getGMTFwdCands() const
get GMT forward candidates vector
void setGMTCand(int nr, L1MuGMTExtendedCand const &cand)
set GMT candidate (does not store rank)
std::vector< L1MuGMTExtendedCand > m_GMTCands
virtual ~L1MuGMTReadoutRecord()
destructor
std::vector< L1MuGMTExtendedCand > m_ForwardCands
unsigned getFwdRank(int i) const
get rank of fwd cand i
unsigned getBrlRank(int i) const
get rank of brl cand i