52 m_BarrelCands(4), m_ForwardCands(4), m_GMTCands(4) {
57 m_BarrelCands(4), m_ForwardCands(4), m_GMTCands(4) {
80 std::vector<L1MuRegionalCand>::iterator itr;
83 std::vector<L1MuGMTExtendedCand>::iterator itg;
87 for(
int i=0;
i<8;
i++) {
96 vector<L1MuGMTExtendedCand> cands;
98 std::vector<L1MuGMTExtendedCand>::const_iterator it;
100 if((*it).getDataWord()!=0) cands.push_back(*it);
103 if((*it).getDataWord()!=0) cands.push_back(*it);
123 vector<L1MuGMTExtendedCand> cands;
124 std::vector<L1MuGMTExtendedCand>::const_iterator it;
126 if((*it).getDataWord()!=0) cands.push_back(*it);
136 vector<L1MuGMTExtendedCand> cands;
137 std::vector<L1MuGMTExtendedCand>::const_iterator it;
139 if((*it).getDataWord()!=0) cands.push_back(*it);
149 vector<L1MuRegionalCand> cands;
151 for (
int i=0;
i<4;
i++)
163 vector<L1MuRegionalCand> cands;
165 for (
int i=0;
i<4;
i++)
175 vector<L1MuRegionalCand> cands;
177 for (
int i=0;
i<4;
i++)
187 vector<L1MuRegionalCand> cands;
189 for (
int i=0;
i<4;
i++)
199 if (phi<0 || phi > 17 || eta < 0 || eta > 13)
return 0;
201 int idx = eta * 18 +
phi;
202 int idx_word = idx / 32;
203 int idx_bit = idx % 32;
205 unsigned mask = 1 << (idx_bit-1);
207 return(
m_MIPbits[idx_word] & mask) ? 1 : 0;
215 if (phi<0 || phi > 17 || eta < 0 || eta > 13)
return 0;
217 int idx = eta * 18 +
phi;
218 int idx_word = idx / 32;
219 int idx_bit = idx % 32;
221 unsigned mask = 1 << (idx_bit-1);
235 if (nr>=0 && nr < 16) {
242 if (nr>=0 && nr < 16) {
328 if (phi<0 || phi > 17 || eta < 0 || eta > 13)
return;
330 int idx = eta * 18 +
phi;
331 int idx_word = idx / 32;
332 int idx_bit = idx % 32;
334 unsigned mask = 1 << (idx_bit-1);
344 if (phi<0 || phi > 17 || eta < 0 || eta > 13)
return;
346 int idx = eta * 18 +
phi;
347 int idx_word = idx / 32;
348 int idx_bit = idx % 32;
350 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
define a rank for muon candidates
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
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