CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
L1MuGMTReadoutRecord Class Reference

#include <L1MuGMTReadoutRecord.h>

Public Member Functions

int getBCERR () const
 
std::vector< L1MuRegionalCandgetBrlRPCCands () const
 get barrel RPC candidates vector More...
 
int getBxCounter () const
 
int getBxInEvent () const
 
int getBxNr () const
 get counters More...
 
std::vector< L1MuRegionalCandgetCSCCands () const
 get CSC candidates vector More...
 
std::vector< L1MuRegionalCandgetDTBXCands () const
 get DT candidates vector More...
 
int getEvNr () const
 
std::vector< L1MuRegionalCandgetFwdRPCCands () const
 get forward RPC candidates vector More...
 
std::vector< L1MuGMTExtendedCandgetGMTBrlCands () const
 get GMT barrel candidates vector More...
 
std::vector< L1MuGMTExtendedCand > & getGMTBrlCandsData ()
 
std::vector< L1MuGMTExtendedCandgetGMTCands () const
 get GMT candidates vector More...
 
std::vector< L1MuGMTExtendedCand > & getGMTCandsData ()
 get GMT candidates vector as stored in data (no rank info) More...
 
std::vector< L1MuGMTExtendedCandgetGMTFwdCands () const
 get GMT forward candidates vector More...
 
unsigned getMIPbit (int eta, int phi) const
 get MIP bit More...
 
unsigned getQuietbit (int eta, int phi) const
 get Quiet bit More...
 
 L1MuGMTReadoutRecord ()
 constructors More...
 
 L1MuGMTReadoutRecord (int bxie)
 
void reset ()
 reset the record More...
 
void setBCERR (int bcerr)
 
void setBxCounter (int bxie)
 
void setBxInEvent (int bxie)
 
void setBxNr (int bxnr)
 set counters More...
 
void setEvNr (int evnr)
 
void setGMTBrlCand (int nr, L1MuGMTExtendedCand const &cand)
 set GMT barrel candidate More...
 
void setGMTBrlCand (int nr, unsigned data, unsigned rank)
 set GMT barrel candidate More...
 
void setGMTCand (int nr, L1MuGMTExtendedCand const &cand)
 set GMT candidate (does not store rank) More...
 
void setGMTCand (int nr, unsigned data)
 set GMT candidate (does not store rank) More...
 
void setGMTFwdCand (int nr, L1MuGMTExtendedCand const &cand)
 set GMT forward candidate More...
 
void setGMTFwdCand (int nr, unsigned data, unsigned rank)
 set GMT forward candidate More...
 
void setInputCand (int nr, unsigned data)
 set Input muon More...
 
void setInputCand (int nr, L1MuRegionalCand const &cand)
 set Input muon More...
 
void setMIPbit (int eta, int phi)
 set MIP bit More...
 
void setQuietbit (int eta, int phi)
 set Quiet bit More...
 
virtual ~L1MuGMTReadoutRecord ()
 destructor More...
 

Private Member Functions

unsigned getBrlRank (int i) const
 get rank of brl cand i More...
 
unsigned getFwdRank (int i) const
 get rank of fwd cand i More...
 
void setBrlRank (int i, unsigned value)
 set rank of brl cand i More...
 
void setFwdRank (int i, unsigned value)
 set rank of fwd cand i More...
 

Private Attributes

std::vector< L1MuGMTExtendedCandm_BarrelCands
 
unsigned m_BCERR
 
unsigned m_BxInEvent
 
unsigned m_BxNr
 
unsigned m_EvNr
 
std::vector< L1MuGMTExtendedCandm_ForwardCands
 
std::vector< L1MuGMTExtendedCandm_GMTCands
 
std::vector< L1MuRegionalCandm_InputCands
 
unsigned m_MIPbits [8]
 
unsigned m_Quietbits [8]
 

Detailed Description

L1 Global Muon Trigger Readout Buffer

Contains the data that the GMT sends to readout for one bunch crossing.

Only simple data members are used so that it is easier to make the data persistent or use it in an other context.

L1 Global Muon Trigger Readout Record

Contains the data that the GMT will send to readout for one bunch crossing.

Definition at line 44 of file L1MuGMTReadoutRecord.h.

Constructor & Destructor Documentation

◆ L1MuGMTReadoutRecord() [1/2]

L1MuGMTReadoutRecord::L1MuGMTReadoutRecord ( )

constructors

Definition at line 49 of file L1MuGMTReadoutRecord.cc.

References reset().

50  reset();
51 }
std::vector< L1MuRegionalCand > m_InputCands
std::vector< L1MuGMTExtendedCand > m_BarrelCands
void reset()
reset the record
std::vector< L1MuGMTExtendedCand > m_GMTCands
std::vector< L1MuGMTExtendedCand > m_ForwardCands

◆ L1MuGMTReadoutRecord() [2/2]

L1MuGMTReadoutRecord::L1MuGMTReadoutRecord ( int  bxie)

Definition at line 53 of file L1MuGMTReadoutRecord.cc.

References m_BxInEvent, and reset().

55  reset();
56  m_BxInEvent = bxie;
57 }
std::vector< L1MuRegionalCand > m_InputCands
std::vector< L1MuGMTExtendedCand > m_BarrelCands
void reset()
reset the record
std::vector< L1MuGMTExtendedCand > m_GMTCands
std::vector< L1MuGMTExtendedCand > m_ForwardCands

◆ ~L1MuGMTReadoutRecord()

L1MuGMTReadoutRecord::~L1MuGMTReadoutRecord ( )
virtual

destructor

Definition at line 62 of file L1MuGMTReadoutRecord.cc.

62 {}

Member Function Documentation

◆ getBCERR()

int L1MuGMTReadoutRecord::getBCERR ( ) const
inline

Definition at line 65 of file L1MuGMTReadoutRecord.h.

References m_BCERR.

Referenced by L1GTDigiToRaw::packGMT().

65 { return (int)m_BCERR; };

◆ getBrlRank()

unsigned L1MuGMTReadoutRecord::getBrlRank ( int  i) const
private

get rank of brl cand i

Definition at line 272 of file L1MuGMTReadoutRecord.cc.

References mps_fire::i, and m_BarrelCands.

272 { return m_BarrelCands[i].rank(); }
std::vector< L1MuGMTExtendedCand > m_BarrelCands

◆ getBrlRPCCands()

vector< L1MuRegionalCand > L1MuGMTReadoutRecord::getBrlRPCCands ( ) const

get barrel RPC candidates vector

Definition at line 162 of file L1MuGMTReadoutRecord.cc.

References HLT_2024v12_cff::cands, mps_fire::i, and m_InputCands.

Referenced by L1GTDigiToRaw::packGMT(), and L2MuonSeedGenerator::produce().

162  {
163  vector<L1MuRegionalCand> cands;
164 
165  for (int i = 0; i < 4; i++)
166  if (m_InputCands[i + 4].getDataWord() != 0)
167  cands.push_back(m_InputCands[i + 4]);
168 
169  return cands;
170 }
std::vector< L1MuRegionalCand > m_InputCands

◆ getBxCounter()

int L1MuGMTReadoutRecord::getBxCounter ( ) const
inline

Definition at line 62 of file L1MuGMTReadoutRecord.h.

References m_BxInEvent.

62 { return (int)m_BxInEvent; }; // for backward compatibility, do not use

◆ getBxInEvent()

int L1MuGMTReadoutRecord::getBxInEvent ( ) const
inline

Definition at line 63 of file L1MuGMTReadoutRecord.h.

References m_BxInEvent.

Referenced by L1GTDigiToRaw::packGMT().

63 { return (int)m_BxInEvent; };

◆ getBxNr()

int L1MuGMTReadoutRecord::getBxNr ( ) const
inline

get counters

Definition at line 61 of file L1MuGMTReadoutRecord.h.

References m_BxNr.

Referenced by L1TGT::analyze(), and L1GTDigiToRaw::packGMT().

61 { return (int)m_BxNr; };

◆ getCSCCands()

vector< L1MuRegionalCand > L1MuGMTReadoutRecord::getCSCCands ( ) const

get CSC candidates vector

Definition at line 151 of file L1MuGMTReadoutRecord.cc.

References HLT_2024v12_cff::cands, mps_fire::i, and m_InputCands.

Referenced by L1GTDigiToRaw::packGMT(), and L2MuonSeedGenerator::produce().

151  {
152  vector<L1MuRegionalCand> cands;
153 
154  for (int i = 0; i < 4; i++)
155  if (m_InputCands[i + 8].getDataWord() != 0)
156  cands.push_back(m_InputCands[i + 8]);
157 
158  return cands;
159 }
std::vector< L1MuRegionalCand > m_InputCands

◆ getDTBXCands()

vector< L1MuRegionalCand > L1MuGMTReadoutRecord::getDTBXCands ( ) const

get DT candidates vector

Definition at line 140 of file L1MuGMTReadoutRecord.cc.

References HLT_2024v12_cff::cands, mps_fire::i, and m_InputCands.

Referenced by L1GTDigiToRaw::packGMT(), and L2MuonSeedGenerator::produce().

140  {
141  vector<L1MuRegionalCand> cands;
142 
143  for (int i = 0; i < 4; i++)
144  if (m_InputCands[i].getDataWord() != 0)
145  cands.push_back(m_InputCands[i]);
146 
147  return cands;
148 }
std::vector< L1MuRegionalCand > m_InputCands

◆ getEvNr()

int L1MuGMTReadoutRecord::getEvNr ( ) const
inline

Definition at line 64 of file L1MuGMTReadoutRecord.h.

References m_EvNr.

Referenced by L1GTDigiToRaw::packGMT().

64 { return (int)m_EvNr; };

◆ getFwdRank()

unsigned L1MuGMTReadoutRecord::getFwdRank ( int  i) const
private

get rank of fwd cand i

Definition at line 275 of file L1MuGMTReadoutRecord.cc.

References mps_fire::i, and m_ForwardCands.

275 { return m_ForwardCands[i].rank(); }
std::vector< L1MuGMTExtendedCand > m_ForwardCands

◆ getFwdRPCCands()

vector< L1MuRegionalCand > L1MuGMTReadoutRecord::getFwdRPCCands ( ) const

get forward RPC candidates vector

Definition at line 173 of file L1MuGMTReadoutRecord.cc.

References HLT_2024v12_cff::cands, mps_fire::i, and m_InputCands.

Referenced by L1GTDigiToRaw::packGMT(), and L2MuonSeedGenerator::produce().

173  {
174  vector<L1MuRegionalCand> cands;
175 
176  for (int i = 0; i < 4; i++)
177  if (m_InputCands[i + 12].getDataWord() != 0)
178  cands.push_back(m_InputCands[i + 12]);
179 
180  return cands;
181 }
std::vector< L1MuRegionalCand > m_InputCands

◆ getGMTBrlCands()

vector< L1MuGMTExtendedCand > L1MuGMTReadoutRecord::getGMTBrlCands ( ) const

get GMT barrel candidates vector

Definition at line 116 of file L1MuGMTReadoutRecord.cc.

References HLT_2024v12_cff::cands, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_BarrelCands.

Referenced by L1GTDigiToRaw::packGMT().

116  {
117  vector<L1MuGMTExtendedCand> cands;
118  std::vector<L1MuGMTExtendedCand>::const_iterator it;
119  for (it = m_BarrelCands.begin(); it != m_BarrelCands.end(); it++) {
120  if ((*it).getDataWord() != 0)
121  cands.push_back(*it);
122  }
123 
124  return cands;
125 }
std::vector< L1MuGMTExtendedCand > m_BarrelCands

◆ getGMTBrlCandsData()

std::vector<L1MuGMTExtendedCand>& L1MuGMTReadoutRecord::getGMTBrlCandsData ( )
inline

Definition at line 75 of file L1MuGMTReadoutRecord.h.

References m_BarrelCands.

75 { return m_BarrelCands; };
std::vector< L1MuGMTExtendedCand > m_BarrelCands

◆ getGMTCands()

vector< L1MuGMTExtendedCand > L1MuGMTReadoutRecord::getGMTCands ( ) const

get GMT candidates vector

Definition at line 93 of file L1MuGMTReadoutRecord.cc.

References HLT_2024v12_cff::cands, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, m_BarrelCands, m_ForwardCands, and L1MuGMTExtendedCand::rankRef().

Referenced by L1GTDigiToRaw::packGMT(), L1TMuonLegacyConverter::produce(), and L1ExtraParticlesProd::produce().

93  {
94  vector<L1MuGMTExtendedCand> cands;
95 
96  std::vector<L1MuGMTExtendedCand>::const_iterator it;
97  for (it = m_BarrelCands.begin(); it != m_BarrelCands.end(); it++) {
98  if ((*it).getDataWord() != 0)
99  cands.push_back(*it);
100  }
101  for (it = m_ForwardCands.begin(); it != m_ForwardCands.end(); it++) {
102  if ((*it).getDataWord() != 0)
103  cands.push_back(*it);
104  }
105 
106  // sort by rank
107  stable_sort(cands.begin(), cands.end(), L1MuGMTExtendedCand::rankRef);
108 
109  return cands;
110 }
std::vector< L1MuGMTExtendedCand > m_BarrelCands
static bool rankRef(const L1MuGMTExtendedCand &first, const L1MuGMTExtendedCand &second)
define a rank for muon candidates
std::vector< L1MuGMTExtendedCand > m_ForwardCands

◆ getGMTCandsData()

vector< L1MuGMTExtendedCand > & L1MuGMTReadoutRecord::getGMTCandsData ( )

get GMT candidates vector as stored in data (no rank info)

Definition at line 113 of file L1MuGMTReadoutRecord.cc.

References m_GMTCands.

113 { return m_GMTCands; }
std::vector< L1MuGMTExtendedCand > m_GMTCands

◆ getGMTFwdCands()

vector< L1MuGMTExtendedCand > L1MuGMTReadoutRecord::getGMTFwdCands ( ) const

get GMT forward candidates vector

Definition at line 128 of file L1MuGMTReadoutRecord.cc.

References HLT_2024v12_cff::cands, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_ForwardCands.

Referenced by L1GTDigiToRaw::packGMT().

128  {
129  vector<L1MuGMTExtendedCand> cands;
130  std::vector<L1MuGMTExtendedCand>::const_iterator it;
131  for (it = m_ForwardCands.begin(); it != m_ForwardCands.end(); it++) {
132  if ((*it).getDataWord() != 0)
133  cands.push_back(*it);
134  }
135 
136  return cands;
137 }
std::vector< L1MuGMTExtendedCand > m_ForwardCands

◆ getMIPbit()

unsigned L1MuGMTReadoutRecord::getMIPbit ( int  eta,
int  phi 
) const

get MIP bit

Definition at line 184 of file L1MuGMTReadoutRecord.cc.

References PVValHelper::eta, heavyIonCSV_trainingSettings::idx, m_MIPbits, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, and phi.

184  {
185  if (phi < 0 || phi > 17 || eta < 0 || eta > 13)
186  return 0;
187 
188  int idx = eta * 18 + phi;
189  int idx_word = idx / 32;
190  int idx_bit = idx % 32;
191 
192  unsigned mask = 1 << (idx_bit - 1);
193 
194  return (m_MIPbits[idx_word] & mask) ? 1 : 0;
195 }

◆ getQuietbit()

unsigned L1MuGMTReadoutRecord::getQuietbit ( int  eta,
int  phi 
) const

get Quiet bit

Definition at line 198 of file L1MuGMTReadoutRecord.cc.

References PVValHelper::eta, heavyIonCSV_trainingSettings::idx, m_Quietbits, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, and phi.

198  {
199  if (phi < 0 || phi > 17 || eta < 0 || eta > 13)
200  return 0;
201 
202  int idx = eta * 18 + phi;
203  int idx_word = idx / 32;
204  int idx_bit = idx % 32;
205 
206  unsigned mask = 1 << (idx_bit - 1);
207 
208  return (m_Quietbits[idx_word] & mask) ? 1 : 0;
209 }

◆ reset()

void L1MuGMTReadoutRecord::reset ( void  )

reset the record

Definition at line 69 of file L1MuGMTReadoutRecord.cc.

References mps_fire::i, m_BarrelCands, m_BCERR, m_BxInEvent, m_BxNr, m_EvNr, m_ForwardCands, m_GMTCands, m_InputCands, m_MIPbits, and m_Quietbits.

Referenced by L1MuGMTReadoutRecord().

69  {
70  m_BxNr = 0;
71  m_BxInEvent = 0;
72  m_EvNr = 0;
73  m_BCERR = 0;
74 
75  std::vector<L1MuRegionalCand>::iterator itr;
76  for (itr = m_InputCands.begin(); itr != m_InputCands.end(); itr++)
77  (*itr).reset();
78 
79  std::vector<L1MuGMTExtendedCand>::iterator itg;
80  for (itg = m_BarrelCands.begin(); itg != m_BarrelCands.end(); itg++)
81  (*itg).reset();
82  for (itg = m_ForwardCands.begin(); itg != m_ForwardCands.end(); itg++)
83  (*itg).reset();
84  for (itg = m_GMTCands.begin(); itg != m_GMTCands.end(); itg++)
85  (*itg).reset();
86  for (int i = 0; i < 8; i++) {
87  m_MIPbits[i] = 0;
88  m_Quietbits[i] = 0;
89  }
90 }
std::vector< L1MuRegionalCand > m_InputCands
std::vector< L1MuGMTExtendedCand > m_BarrelCands
std::vector< L1MuGMTExtendedCand > m_GMTCands
std::vector< L1MuGMTExtendedCand > m_ForwardCands

◆ setBCERR()

void L1MuGMTReadoutRecord::setBCERR ( int  bcerr)
inline

Definition at line 107 of file L1MuGMTReadoutRecord.h.

References m_BCERR.

Referenced by L1GlobalTriggerRawToDigi::unpackGMT().

107 { m_BCERR = (unsigned)bcerr; };

◆ setBrlRank()

void L1MuGMTReadoutRecord::setBrlRank ( int  i,
unsigned  value 
)
private

set rank of brl cand i

Definition at line 278 of file L1MuGMTReadoutRecord.cc.

References mps_fire::i, and m_BarrelCands.

278  {
279  if (i >= 0 && i < 4) {
280  m_BarrelCands[i].setRank(value);
281  }
282 }
std::vector< L1MuGMTExtendedCand > m_BarrelCands
Definition: value.py:1

◆ setBxCounter()

void L1MuGMTReadoutRecord::setBxCounter ( int  bxie)
inline

Definition at line 104 of file L1MuGMTReadoutRecord.h.

References m_BxInEvent.

104 { m_BxInEvent = (unsigned)bxie; }; // for backward compatibility, do not use

◆ setBxInEvent()

void L1MuGMTReadoutRecord::setBxInEvent ( int  bxie)
inline

Definition at line 105 of file L1MuGMTReadoutRecord.h.

References m_BxInEvent.

Referenced by L1DummyProducer::SimpleDigi(), and L1GlobalTriggerRawToDigi::unpackGMT().

105 { m_BxInEvent = (unsigned)bxie; };

◆ setBxNr()

void L1MuGMTReadoutRecord::setBxNr ( int  bxnr)
inline

set counters

Definition at line 103 of file L1MuGMTReadoutRecord.h.

References m_BxNr.

Referenced by L1EmulBias::ModifyCollection(), L1DummyProducer::SimpleDigi(), and L1GlobalTriggerRawToDigi::unpackGMT().

103 { m_BxNr = (unsigned)bxnr; };

◆ setEvNr()

void L1MuGMTReadoutRecord::setEvNr ( int  evnr)
inline

Definition at line 106 of file L1MuGMTReadoutRecord.h.

References m_EvNr.

Referenced by L1DummyProducer::SimpleDigi(), and L1GlobalTriggerRawToDigi::unpackGMT().

106 { m_EvNr = (unsigned)evnr; };

◆ setFwdRank()

void L1MuGMTReadoutRecord::setFwdRank ( int  i,
unsigned  value 
)
private

set rank of fwd cand i

Definition at line 285 of file L1MuGMTReadoutRecord.cc.

References mps_fire::i, and m_ForwardCands.

285  {
286  if (i >= 0 && i < 4) {
287  m_ForwardCands[i].setRank(value);
288  }
289 }
Definition: value.py:1
std::vector< L1MuGMTExtendedCand > m_ForwardCands

◆ setGMTBrlCand() [1/2]

void L1MuGMTReadoutRecord::setGMTBrlCand ( int  nr,
L1MuGMTExtendedCand const &  cand 
)

set GMT barrel candidate

Definition at line 230 of file L1MuGMTReadoutRecord.cc.

References m_BarrelCands, and EgHLTOffHistBins_cfi::nr.

Referenced by L1MuGMTSorter::run(), L1DummyProducer::SimpleDigi(), and L1GlobalTriggerRawToDigi::unpackGMT().

230  {
231  if (nr >= 0 && nr < 4) {
232  m_BarrelCands[nr] = cand;
233  }
234 }
std::vector< L1MuGMTExtendedCand > m_BarrelCands

◆ setGMTBrlCand() [2/2]

void L1MuGMTReadoutRecord::setGMTBrlCand ( int  nr,
unsigned  data,
unsigned  rank 
)

set GMT barrel candidate

Definition at line 237 of file L1MuGMTReadoutRecord.cc.

References data, m_BarrelCands, m_BxInEvent, and EgHLTOffHistBins_cfi::nr.

237  {
238  if (nr >= 0 && nr < 4) {
240  }
241 }
std::vector< L1MuGMTExtendedCand > m_BarrelCands
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ setGMTCand() [1/2]

void L1MuGMTReadoutRecord::setGMTCand ( int  nr,
L1MuGMTExtendedCand const &  cand 
)

set GMT candidate (does not store rank)

set GMT candidate

Definition at line 258 of file L1MuGMTReadoutRecord.cc.

References m_GMTCands, and EgHLTOffHistBins_cfi::nr.

Referenced by L1MuGMTSorter::run(), L1DummyProducer::SimpleDigi(), and L1GlobalTriggerRawToDigi::unpackGMT().

258  {
259  if (nr >= 0 && nr < 4) {
260  m_GMTCands[nr] = cand;
261  }
262 }
std::vector< L1MuGMTExtendedCand > m_GMTCands

◆ setGMTCand() [2/2]

void L1MuGMTReadoutRecord::setGMTCand ( int  nr,
unsigned  data 
)

set GMT candidate (does not store rank)

set GMT candidate

Definition at line 265 of file L1MuGMTReadoutRecord.cc.

References data, m_BxInEvent, m_GMTCands, and EgHLTOffHistBins_cfi::nr.

265  {
266  if (nr >= 0 && nr < 4) {
268  }
269 }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
std::vector< L1MuGMTExtendedCand > m_GMTCands

◆ setGMTFwdCand() [1/2]

void L1MuGMTReadoutRecord::setGMTFwdCand ( int  nr,
L1MuGMTExtendedCand const &  cand 
)

set GMT forward candidate

Definition at line 244 of file L1MuGMTReadoutRecord.cc.

References m_ForwardCands, and EgHLTOffHistBins_cfi::nr.

Referenced by L1MuGMTSorter::run(), L1DummyProducer::SimpleDigi(), and L1GlobalTriggerRawToDigi::unpackGMT().

244  {
245  if (nr >= 0 && nr < 4) {
247  }
248 }
std::vector< L1MuGMTExtendedCand > m_ForwardCands

◆ setGMTFwdCand() [2/2]

void L1MuGMTReadoutRecord::setGMTFwdCand ( int  nr,
unsigned  data,
unsigned  rank 
)

set GMT forward candidate

Definition at line 251 of file L1MuGMTReadoutRecord.cc.

References data, m_BxInEvent, m_ForwardCands, and EgHLTOffHistBins_cfi::nr.

251  {
252  if (nr >= 0 && nr < 4) {
254  }
255 }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
std::vector< L1MuGMTExtendedCand > m_ForwardCands

◆ setInputCand() [1/2]

void L1MuGMTReadoutRecord::setInputCand ( int  nr,
unsigned  data 
)

set Input muon

set Regional Candidates

Definition at line 223 of file L1MuGMTReadoutRecord.cc.

References data, m_BxInEvent, m_InputCands, and EgHLTOffHistBins_cfi::nr.

Referenced by L1MuGMTPSB::receiveData(), L1DummyProducer::SimpleDigi(), and L1GlobalTriggerRawToDigi::unpackGMT().

223  {
224  if (nr >= 0 && nr < 16) {
226  }
227 }
std::vector< L1MuRegionalCand > m_InputCands
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ setInputCand() [2/2]

void L1MuGMTReadoutRecord::setInputCand ( int  nr,
L1MuRegionalCand const &  cand 
)

set Input muon

set Regional Candidates

Definition at line 216 of file L1MuGMTReadoutRecord.cc.

References m_InputCands, and EgHLTOffHistBins_cfi::nr.

216  {
217  if (nr >= 0 && nr < 16) {
218  m_InputCands[nr] = cand;
219  }
220 }
std::vector< L1MuRegionalCand > m_InputCands

◆ setMIPbit()

void L1MuGMTReadoutRecord::setMIPbit ( int  eta,
int  phi 
)

set MIP bit

Definition at line 292 of file L1MuGMTReadoutRecord.cc.

References PVValHelper::eta, heavyIonCSV_trainingSettings::idx, m_MIPbits, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, and phi.

Referenced by L1MuGMTPSB::getCalo(), and L1DummyProducer::SimpleDigi().

292  {
293  if (phi < 0 || phi > 17 || eta < 0 || eta > 13)
294  return;
295 
296  int idx = eta * 18 + phi;
297  int idx_word = idx / 32;
298  int idx_bit = idx % 32;
299 
300  unsigned mask = 1 << (idx_bit - 1);
301 
302  m_MIPbits[idx_word] |= mask;
303 }

◆ setQuietbit()

void L1MuGMTReadoutRecord::setQuietbit ( int  eta,
int  phi 
)

set Quiet bit

Definition at line 306 of file L1MuGMTReadoutRecord.cc.

References PVValHelper::eta, heavyIonCSV_trainingSettings::idx, m_Quietbits, ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, and phi.

Referenced by L1MuGMTPSB::getCalo(), and L1DummyProducer::SimpleDigi().

306  {
307  if (phi < 0 || phi > 17 || eta < 0 || eta > 13)
308  return;
309 
310  int idx = eta * 18 + phi;
311  int idx_word = idx / 32;
312  int idx_bit = idx % 32;
313 
314  unsigned mask = 0;
315  if (idx_bit > 0)
316  mask = 1 << (idx_bit - 1);
317 
318  m_Quietbits[idx_word] |= mask;
319 }

Member Data Documentation

◆ m_BarrelCands

std::vector<L1MuGMTExtendedCand> L1MuGMTReadoutRecord::m_BarrelCands
private

◆ m_BCERR

unsigned L1MuGMTReadoutRecord::m_BCERR
private

Definition at line 151 of file L1MuGMTReadoutRecord.h.

Referenced by getBCERR(), reset(), and setBCERR().

◆ m_BxInEvent

unsigned L1MuGMTReadoutRecord::m_BxInEvent
private

◆ m_BxNr

unsigned L1MuGMTReadoutRecord::m_BxNr
private

Definition at line 147 of file L1MuGMTReadoutRecord.h.

Referenced by getBxNr(), reset(), and setBxNr().

◆ m_EvNr

unsigned L1MuGMTReadoutRecord::m_EvNr
private

Definition at line 149 of file L1MuGMTReadoutRecord.h.

Referenced by getEvNr(), reset(), and setEvNr().

◆ m_ForwardCands

std::vector<L1MuGMTExtendedCand> L1MuGMTReadoutRecord::m_ForwardCands
private

◆ m_GMTCands

std::vector<L1MuGMTExtendedCand> L1MuGMTReadoutRecord::m_GMTCands
private

Definition at line 157 of file L1MuGMTReadoutRecord.h.

Referenced by getGMTCandsData(), reset(), and setGMTCand().

◆ m_InputCands

std::vector<L1MuRegionalCand> L1MuGMTReadoutRecord::m_InputCands
private

◆ m_MIPbits

unsigned L1MuGMTReadoutRecord::m_MIPbits[8]
private

Definition at line 160 of file L1MuGMTReadoutRecord.h.

Referenced by getMIPbit(), reset(), and setMIPbit().

◆ m_Quietbits

unsigned L1MuGMTReadoutRecord::m_Quietbits[8]
private

Definition at line 161 of file L1MuGMTReadoutRecord.h.

Referenced by getQuietbit(), reset(), and setQuietbit().