CMS 3D CMS Logo

L1TMuonGlobalParamsHelper.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <strstream>
3 
7 
10  if (pnodes_.size() != NUM_GMTPARAMNODES) {
11  pnodes_.resize(NUM_GMTPARAMNODES);
12  }
13 }
14 
15 std::bitset<72> L1TMuonGlobalParamsHelper::inputFlags(const int &nodeIdx) const {
16  std::bitset<72> inputFlags;
17  if (pnodes_[nodeIdx].uparams_.size() != 4) {
18  return inputFlags;
19  }
20 
21  for (size_t i = 0; i < 28; ++i) {
22  inputFlags[CALOLINK1 + i] = ((pnodes_[nodeIdx].uparams_[CALOINPUTS] >> i) & 0x1);
23  if (i < CALOLINK1) {
24  // disable unused inputs
25  inputFlags[i] = true;
26  }
27  if (i < 12) {
28  inputFlags[BMTFLINK1 + i] = ((pnodes_[nodeIdx].uparams_[BMTFINPUTS] >> i) & 0x1);
29  if (i < 6) {
30  inputFlags[EMTFPLINK1 + i] = ((pnodes_[nodeIdx].uparams_[EMTFINPUTS] >> i) & 0x1);
31  inputFlags[OMTFPLINK1 + i] = ((pnodes_[nodeIdx].uparams_[OMTFINPUTS] >> i) & 0x1);
32  inputFlags[OMTFNLINK1 + i] = ((pnodes_[nodeIdx].uparams_[OMTFINPUTS] >> (i + 6)) & 0x1);
33  inputFlags[EMTFNLINK1 + i] = ((pnodes_[nodeIdx].uparams_[EMTFINPUTS] >> (i + 6)) & 0x1);
34  }
35  }
36  }
37  return inputFlags;
38 }
39 
40 std::bitset<28> L1TMuonGlobalParamsHelper::caloInputFlags(const int &nodeIdx) const {
41  if (pnodes_[nodeIdx].uparams_.size() == 4) {
42  return std::bitset<28>(pnodes_[nodeIdx].uparams_[CALOINPUTS]);
43  } else {
44  return std::bitset<28>();
45  }
46 }
47 
48 std::bitset<12> L1TMuonGlobalParamsHelper::tfInputFlags(const int &nodeIdx, const int &tfIdx) const {
49  if (pnodes_[nodeIdx].uparams_.size() == 4) {
50  return std::bitset<12>(pnodes_[nodeIdx].uparams_[tfIdx]);
51  } else {
52  return std::bitset<12>();
53  }
54 }
55 
56 std::bitset<6> L1TMuonGlobalParamsHelper::eomtfInputFlags(const int &nodeIdx,
57  const size_t &startIdx,
58  const int &tfIdx) const {
59  std::bitset<6> inputFlags;
60  if (pnodes_[nodeIdx].uparams_.size() == 4) {
61  for (size_t i = 0; i < 6; ++i) {
62  inputFlags[i] = ((pnodes_[nodeIdx].uparams_[tfIdx] >> (i + startIdx)) & 0x1);
63  }
64  }
65  return inputFlags;
66 }
67 
69  pnodes_[FWVERSION].uparams_.resize(1);
71 }
72 
73 void L1TMuonGlobalParamsHelper::setInputFlags(const int &nodeIdx, const std::bitset<72> &inputFlags) {
74  pnodes_[nodeIdx].uparams_.resize(4);
75  for (size_t i = 0; i < 28; ++i) {
76  pnodes_[nodeIdx].uparams_[CALOINPUTS] += (inputFlags.test(CALOLINK1 + i) << i);
77  if (i < 12) {
78  pnodes_[nodeIdx].uparams_[BMTFINPUTS] += (inputFlags.test(BMTFLINK1 + i) << i);
79  if (i < 6) {
80  pnodes_[nodeIdx].uparams_[OMTFINPUTS] += (inputFlags.test(OMTFPLINK1 + i) << i);
81  pnodes_[nodeIdx].uparams_[OMTFINPUTS] += (inputFlags.test(OMTFNLINK1 + i) << (i + 6));
82  pnodes_[nodeIdx].uparams_[EMTFINPUTS] += (inputFlags.test(EMTFPLINK1 + i) << i);
83  pnodes_[nodeIdx].uparams_[EMTFINPUTS] += (inputFlags.test(EMTFNLINK1 + i) << (i + 6));
84  }
85  }
86  }
87 }
88 
89 void L1TMuonGlobalParamsHelper::setCaloInputFlags(const int &nodeIdx, const std::bitset<28> &inputFlags) {
90  pnodes_[nodeIdx].uparams_.resize(4);
91  for (size_t i = 0; i < 28; ++i) {
92  pnodes_[nodeIdx].uparams_[CALOINPUTS] += (inputFlags.test(i) << i);
93  }
94 }
95 
97  const int &tfIdx,
98  const std::bitset<12> &inputFlags) {
99  pnodes_[nodeIdx].uparams_.resize(4);
100  for (size_t i = 0; i < 12; ++i) {
101  pnodes_[nodeIdx].uparams_[tfIdx] += (inputFlags.test(i) << i);
102  }
103 }
104 
106  const size_t &startIdx,
107  const int &tfIdx,
108  const std::bitset<6> &inputFlags) {
109  pnodes_[nodeIdx].uparams_.resize(4);
110  for (size_t i = 0; i < 6; ++i) {
111  pnodes_[nodeIdx].uparams_[tfIdx] += (inputFlags.test(i) << (i + startIdx));
112  }
113 }
114 
116  std::string procId = processorId;
117  // if the procId is an empty string use the one from the TrigSystem (the uGMT only has one processor)
118  if (procId.empty()) {
119  const std::map<std::string, std::string> &procRoleMap = trgSys.getProcToRoleAssignment();
120  if (procRoleMap.size() != 1) {
121  if (procRoleMap.empty()) {
122  edm::LogError("uGMT config from online") << "No processor id found for uGMT HW configuration.";
123  } else {
124  edm::LogError("uGMT config from online") << "More than one processor id found for uGMT HW configuration.";
125  }
126  } else {
127  procId = procRoleMap.cbegin()->first;
128  }
129  }
130 
131  // get the settings and masks for the processor id
132  std::map<std::string, l1t::Parameter> settings = trgSys.getParameters(procId.c_str());
133  //std::map<std::string, l1t::Mask> masks = trgSys.getMasks(procId.c_str());
134  //for (auto& it: settings) {
135  // std::cout << "Key: " << it.first << ", procRole: " << it.second.getProcRole() << ", type: " << it.second.getType() << ", id: " << it.second.getId() << ", value as string: [" << it.second.getValueAsStr() << "]" << std::endl;
136  //}
137  //for (auto& it: masks) {
138  // std::cout << "Key: " << it.first << ", procRole: " << it.second.getProcRole() << ", id: " << it.second.getId() << std::endl;
139  //}
140 
141  // Use FW version from online config if it is found there. Otherwise set it to 1
142  unsigned fwVersion = 1;
143  if (settings.count("algoRev") > 0) {
144  fwVersion = settings["algoRev"].getValue<unsigned int>();
145  }
147 
148  std::stringstream ss;
149  // uGMT disabled inputs
150  bool disableCaloInputs = settings["caloInputsDisable"].getValue<bool>();
151  std::string bmtfInputsToDisableStr = settings["bmtfInputsToDisable"].getValueAsStr();
152  std::string omtfInputsToDisableStr = settings["omtfInputsToDisable"].getValueAsStr();
153  std::string emtfInputsToDisableStr = settings["emtfInputsToDisable"].getValueAsStr();
154  std::vector<unsigned> bmtfInputsToDisable(12, 0);
155  std::vector<unsigned> omtfInputsToDisable(12, 0);
156  std::vector<unsigned> emtfInputsToDisable(12, 0);
157  // translate the bool and the strings to the vectors
158  for (unsigned i = 0; i < 12; ++i) {
159  ss.str("");
160  ss << "BMTF" << i + 1;
161  if (bmtfInputsToDisableStr.find(ss.str()) != std::string::npos) {
162  bmtfInputsToDisable[i] = 1;
163  }
164  ss.str("");
165  ss << "OMTF";
166  if (i < 6) {
167  ss << "p" << i + 1;
168  } else {
169  ss << "n" << i - 5;
170  }
171  if (omtfInputsToDisableStr.find(ss.str()) != std::string::npos) {
172  omtfInputsToDisable[i] = 1;
173  }
174  ss.str("");
175  ss << "EMTF";
176  if (i < 6) {
177  ss << "p" << i + 1;
178  } else {
179  ss << "n" << i - 5;
180  }
181  if (emtfInputsToDisableStr.find(ss.str()) != std::string::npos) {
182  emtfInputsToDisable[i] = 1;
183  }
184  }
185 
186  // set the condFormats parameters for uGMT disabled inputs
187  if (disableCaloInputs) {
188  setCaloInputsToDisable(std::bitset<28>(0xFFFFFFF));
189  } else {
190  setCaloInputsToDisable(std::bitset<28>());
191  }
192 
193  std::bitset<12> bmtfDisables;
194  for (size_t i = 0; i < bmtfInputsToDisable.size(); ++i) {
195  bmtfDisables.set(i, bmtfInputsToDisable[i] > 0);
196  }
197  setBmtfInputsToDisable(bmtfDisables);
198 
199  std::bitset<6> omtfpDisables;
200  std::bitset<6> omtfnDisables;
201  for (size_t i = 0; i < omtfInputsToDisable.size(); ++i) {
202  if (i < 6) {
203  omtfpDisables.set(i, omtfInputsToDisable[i] > 0);
204  } else {
205  omtfnDisables.set(i - 6, omtfInputsToDisable[i] > 0);
206  }
207  }
208  setOmtfpInputsToDisable(omtfpDisables);
209  setOmtfnInputsToDisable(omtfnDisables);
210 
211  std::bitset<6> emtfpDisables;
212  std::bitset<6> emtfnDisables;
213  for (size_t i = 0; i < emtfInputsToDisable.size(); ++i) {
214  if (i < 6) {
215  emtfpDisables.set(i, emtfInputsToDisable[i] > 0);
216  } else {
217  emtfnDisables.set(i - 6, emtfInputsToDisable[i] > 0);
218  }
219  }
220  setEmtfpInputsToDisable(emtfpDisables);
221  setEmtfnInputsToDisable(emtfnDisables);
222 
223  // uGMT masked inputs
224  bool caloInputsMasked = true;
225  std::vector<unsigned> maskedBmtfInputs(12, 0);
226  std::vector<unsigned> maskedOmtfInputs(12, 0);
227  std::vector<unsigned> maskedEmtfInputs(12, 0);
228  ss << std::setfill('0');
229  // translate the bool and the strings to the vectors
230  for (unsigned i = 0; i < 28; ++i) {
231  ss.str("");
232  ss << "inputPorts.CaloL2_" << std::setw(2) << i + 1;
233  // for now set as unmasked if one input is not masked
234  if (!trgSys.isMasked(procId.c_str(), ss.str().c_str())) {
235  caloInputsMasked = false;
236  }
237  if (i < 12) {
238  ss.str("");
239  ss << "inputPorts.BMTF_" << std::setw(2) << i + 1;
240  if (trgSys.isMasked(procId.c_str(), ss.str().c_str())) {
241  maskedBmtfInputs[i] = 1;
242  }
243  ss.str("");
244  ss << "inputPorts.OMTF";
245  if (i < 6) {
246  ss << "+_" << std::setw(2) << i + 1;
247  } else {
248  ss << "-_" << std::setw(2) << i - 5;
249  }
250  if (trgSys.isMasked(procId.c_str(), ss.str().c_str())) {
251  maskedOmtfInputs[i] = 1;
252  }
253  ss.str("");
254  ss << "inputPorts.EMTF";
255  if (i < 6) {
256  ss << "+_" << std::setw(2) << i + 1;
257  } else {
258  ss << "-_" << std::setw(2) << i - 5;
259  }
260  if (trgSys.isMasked(procId.c_str(), ss.str().c_str())) {
261  maskedEmtfInputs[i] = 1;
262  }
263  }
264  }
265  ss << std::setfill(' ');
266 
267  // set the condFormats parameters for uGMT masked inputs
268  if (caloInputsMasked) {
269  setMaskedCaloInputs(std::bitset<28>(0xFFFFFFF));
270  } else {
271  setMaskedCaloInputs(std::bitset<28>());
272  }
273 
274  std::bitset<12> bmtfMasked;
275  for (size_t i = 0; i < maskedBmtfInputs.size(); ++i) {
276  bmtfMasked.set(i, maskedBmtfInputs[i] > 0);
277  }
278  setMaskedBmtfInputs(bmtfMasked);
279 
280  std::bitset<6> omtfpMasked;
281  std::bitset<6> omtfnMasked;
282  for (size_t i = 0; i < maskedOmtfInputs.size(); ++i) {
283  if (i < 6) {
284  omtfpMasked.set(i, maskedOmtfInputs[i] > 0);
285  } else {
286  omtfnMasked.set(i - 6, maskedOmtfInputs[i] > 0);
287  }
288  }
289  setMaskedOmtfpInputs(omtfpMasked);
290  setMaskedOmtfnInputs(omtfnMasked);
291 
292  std::bitset<6> emtfpMasked;
293  std::bitset<6> emtfnMasked;
294  for (size_t i = 0; i < maskedEmtfInputs.size(); ++i) {
295  if (i < 6) {
296  emtfpMasked.set(i, maskedEmtfInputs[i] > 0);
297  } else {
298  emtfnMasked.set(i - 6, maskedEmtfInputs[i] > 0);
299  }
300  }
301  setMaskedEmtfpInputs(emtfpMasked);
302  setMaskedEmtfnInputs(emtfnMasked);
303 
304  // LUTs from settings with with automatic detection of address width and 31 bit output width
305  setAbsIsoCheckMemLUT(l1t::convertToLUT(settings["AbsIsoCheckMem"].getVector<unsigned int>()));
306  setRelIsoCheckMemLUT(l1t::convertToLUT(settings["RelIsoCheckMem"].getVector<unsigned int>()));
307  setIdxSelMemPhiLUT(l1t::convertToLUT(settings["IdxSelMemPhi"].getVector<unsigned int>()));
308  setIdxSelMemEtaLUT(l1t::convertToLUT(settings["IdxSelMemEta"].getVector<unsigned int>()));
309  setFwdPosSingleMatchQualLUT(l1t::convertToLUT(settings["EmtfPosSingleMatchQual"].getVector<unsigned int>()));
310  setFwdNegSingleMatchQualLUT(l1t::convertToLUT(settings["EmtfNegSingleMatchQual"].getVector<unsigned int>()));
311  setOvlPosSingleMatchQualLUT(l1t::convertToLUT(settings["OmtfPosSingleMatchQual"].getVector<unsigned int>()));
312  setOvlNegSingleMatchQualLUT(l1t::convertToLUT(settings["OmtfNegSingleMatchQual"].getVector<unsigned int>()));
313  setBOPosMatchQualLUT(l1t::convertToLUT(settings["BOPosMatchQual"].getVector<unsigned int>()));
314  setBONegMatchQualLUT(l1t::convertToLUT(settings["BONegMatchQual"].getVector<unsigned int>()));
315  setFOPosMatchQualLUT(l1t::convertToLUT(settings["EOPosMatchQual"].getVector<unsigned int>()));
316  setFONegMatchQualLUT(l1t::convertToLUT(settings["EONegMatchQual"].getVector<unsigned int>()));
317  setBPhiExtrapolationLUT(l1t::convertToLUT(settings["BPhiExtrapolation"].getVector<unsigned int>()));
318  setOPhiExtrapolationLUT(l1t::convertToLUT(settings["OPhiExtrapolation"].getVector<unsigned int>()));
319  setFPhiExtrapolationLUT(l1t::convertToLUT(settings["EPhiExtrapolation"].getVector<unsigned int>()));
320  setBEtaExtrapolationLUT(l1t::convertToLUT(settings["BEtaExtrapolation"].getVector<unsigned int>()));
321  setOEtaExtrapolationLUT(l1t::convertToLUT(settings["OEtaExtrapolation"].getVector<unsigned int>()));
322  setFEtaExtrapolationLUT(l1t::convertToLUT(settings["EEtaExtrapolation"].getVector<unsigned int>()));
323  setSortRankLUT(l1t::convertToLUT(settings["SortRank"].getVector<unsigned int>()));
324 }
325 
326 // setters for cancel out LUT parameters
328  pnodes_[fwdPosSingleMatchQual].dparams_.push_back(maxDR);
329  pnodes_[fwdPosSingleMatchQual].dparams_.push_back(fEta);
330  pnodes_[fwdPosSingleMatchQual].dparams_.push_back(fEta);
331  pnodes_[fwdPosSingleMatchQual].dparams_.push_back(fPhi);
332 }
333 
335  pnodes_[fwdNegSingleMatchQual].dparams_.push_back(maxDR);
336  pnodes_[fwdNegSingleMatchQual].dparams_.push_back(fEta);
337  pnodes_[fwdNegSingleMatchQual].dparams_.push_back(fEta);
338  pnodes_[fwdNegSingleMatchQual].dparams_.push_back(fPhi);
339 }
340 
342  double fEta,
343  double fEtaCoarse,
344  double fPhi) {
345  pnodes_[ovlPosSingleMatchQual].dparams_.push_back(maxDR);
346  pnodes_[ovlPosSingleMatchQual].dparams_.push_back(fEta);
347  pnodes_[ovlPosSingleMatchQual].dparams_.push_back(fEtaCoarse);
348  pnodes_[ovlPosSingleMatchQual].dparams_.push_back(fPhi);
349 }
350 
352  double fEta,
353  double fEtaCoarse,
354  double fPhi) {
355  pnodes_[ovlNegSingleMatchQual].dparams_.push_back(maxDR);
356  pnodes_[ovlNegSingleMatchQual].dparams_.push_back(fEta);
357  pnodes_[ovlNegSingleMatchQual].dparams_.push_back(fEtaCoarse);
358  pnodes_[ovlNegSingleMatchQual].dparams_.push_back(fPhi);
359 }
360 
361 void L1TMuonGlobalParamsHelper::setBOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi) {
362  pnodes_[bOPosMatchQual].dparams_.push_back(maxDR);
363  pnodes_[bOPosMatchQual].dparams_.push_back(fEta);
364  pnodes_[bOPosMatchQual].dparams_.push_back(fEtaCoarse);
365  pnodes_[bOPosMatchQual].dparams_.push_back(fPhi);
366 }
367 
368 void L1TMuonGlobalParamsHelper::setBONegMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi) {
369  pnodes_[bONegMatchQual].dparams_.push_back(maxDR);
370  pnodes_[bONegMatchQual].dparams_.push_back(fEta);
371  pnodes_[bONegMatchQual].dparams_.push_back(fEtaCoarse);
372  pnodes_[bONegMatchQual].dparams_.push_back(fPhi);
373 }
374 
375 void L1TMuonGlobalParamsHelper::setFOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi) {
376  pnodes_[fOPosMatchQual].dparams_.push_back(maxDR);
377  pnodes_[fOPosMatchQual].dparams_.push_back(fEta);
378  pnodes_[fOPosMatchQual].dparams_.push_back(fEtaCoarse);
379  pnodes_[fOPosMatchQual].dparams_.push_back(fPhi);
380 }
381 
382 void L1TMuonGlobalParamsHelper::setFONegMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi) {
383  pnodes_[fONegMatchQual].dparams_.push_back(maxDR);
384  pnodes_[fONegMatchQual].dparams_.push_back(fEta);
385  pnodes_[fONegMatchQual].dparams_.push_back(fEtaCoarse);
386  pnodes_[fONegMatchQual].dparams_.push_back(fPhi);
387 }
388 
389 void L1TMuonGlobalParamsHelper::print(std::ostream &out) const {
390  out << "L1 MicroGMT Parameters" << std::endl;
391 
392  out << "Firmware version: " << this->fwVersion() << std::endl;
393 
394  out << "InputsToDisable: " << this->inputsToDisable() << std::endl;
395  out << " EMTF-|OMTF-| BMTF |OMTF+|EMTF+| CALO | res 0" << std::endl;
396 
397  out << "Masked Inputs: " << this->maskedInputs() << std::endl;
398  out << " EMTF-|OMTF-| BMTF |OMTF+|EMTF+| CALO | res 0" << std::endl;
399 
400  out << "LUT paths (LUTs are generated analytically if path is empty)" << std::endl;
401  out << " Abs isolation checkMem LUT path: " << this->absIsoCheckMemLUTPath() << std::endl;
402  out << " Rel isolation checkMem LUT path: " << this->relIsoCheckMemLUTPath() << std::endl;
403  out << " Index selMem phi LUT path: " << this->idxSelMemPhiLUTPath() << std::endl;
404  out << " Index selMem eta LUT path: " << this->idxSelMemEtaLUTPath() << std::endl;
405  out << " Forward pos MatchQual LUT path: " << this->fwdPosSingleMatchQualLUTPath()
406  << ", max dR (Used when LUT path empty): " << this->fwdPosSingleMatchQualLUTMaxDR() << std::endl;
407  out << " Forward neg MatchQual LUT path: " << this->fwdNegSingleMatchQualLUTPath()
408  << ", max dR (Used when LUT path empty): " << this->fwdNegSingleMatchQualLUTMaxDR() << std::endl;
409  out << " Overlap pos MatchQual LUT path: " << this->ovlPosSingleMatchQualLUTPath()
410  << ", max dR (Used when LUT path empty): " << this->ovlPosSingleMatchQualLUTMaxDR() << std::endl;
411  out << " Overlap neg MatchQual LUT path: " << this->ovlNegSingleMatchQualLUTPath()
412  << ", max dR (Used when LUT path empty): " << this->ovlNegSingleMatchQualLUTMaxDR() << std::endl;
413  out << " Barrel-Overlap pos MatchQual LUT path: " << this->bOPosMatchQualLUTPath()
414  << ", max dR (Used when LUT path empty): " << this->bOPosMatchQualLUTMaxDR()
415  << ", fEta: " << this->bOPosMatchQualLUTfEta()
416  << ", fEta when eta-fine bit isn't set: " << this->bOPosMatchQualLUTfEtaCoarse()
417  << ", fPhi: " << this->bOPosMatchQualLUTfEta() << std::endl;
418  out << " Barrel-Overlap neg MatchQual LUT path: " << this->bONegMatchQualLUTPath()
419  << ", max dR (Used when LUT path empty): " << this->bONegMatchQualLUTMaxDR()
420  << ", fEta: " << this->bONegMatchQualLUTfEta()
421  << ", fEta when eta-fine bit isn't set: " << this->bONegMatchQualLUTfEtaCoarse()
422  << ", fPhi: " << this->bONegMatchQualLUTfPhi() << std::endl;
423  out << " Forward-Overlap pos MatchQual LUT path: " << this->fOPosMatchQualLUTPath()
424  << ", max dR (Used when LUT path empty): " << this->fOPosMatchQualLUTMaxDR() << std::endl;
425  out << " Forward-Overlap neg MatchQual LUT path: " << this->fONegMatchQualLUTPath()
426  << ", max dR (Used when LUT path empty): " << this->fONegMatchQualLUTMaxDR() << std::endl;
427  out << " Barrel phi extrapolation LUT path: " << this->bPhiExtrapolationLUTPath() << std::endl;
428  out << " Overlap phi extrapolation LUT path: " << this->oPhiExtrapolationLUTPath() << std::endl;
429  out << " Forward phi extrapolation LUT path: " << this->fPhiExtrapolationLUTPath() << std::endl;
430  out << " Barrel eta extrapolation LUT path: " << this->bEtaExtrapolationLUTPath() << std::endl;
431  out << " Overlap eta extrapolation LUT path: " << this->oEtaExtrapolationLUTPath() << std::endl;
432  out << " Forward eta extrapolation LUT path: " << this->fEtaExtrapolationLUTPath() << std::endl;
433  out << " Sort rank LUT path: " << this->sortRankLUTPath()
434  << ", pT and quality factors (Used when LUT path empty): pT factor: " << this->sortRankLUTPtFactor()
435  << ", quality factor: " << this->sortRankLUTQualFactor() << std::endl;
436 }
L1TMuonGlobalParamsHelper::setInputFlags
void setInputFlags(const int &nodeIdx, const std::bitset< 72 > &flags)
Definition: L1TMuonGlobalParamsHelper.cc:73
L1TMuonGlobalParamsHelper::fwdNegSingleMatchQualLUTMaxDR
double fwdNegSingleMatchQualLUTMaxDR() const
Definition: L1TMuonGlobalParamsHelper.h:340
L1TMuonGlobalParamsHelper::print
void print(std::ostream &) const
Definition: L1TMuonGlobalParamsHelper.cc:389
L1TMuonGlobalParamsHelper::setMaskedEmtfnInputs
void setMaskedEmtfnInputs(const std::bitset< 6 > &masked)
Definition: L1TMuonGlobalParamsHelper.h:135
L1TMuonGlobalParamsHelper::bOPosMatchQual
Definition: L1TMuonGlobalParamsHelper.h:35
L1TMuonGlobalParamsHelper::bONegMatchQualLUTfEtaCoarse
double bONegMatchQualLUTfEtaCoarse() const
Definition: L1TMuonGlobalParamsHelper.h:409
L1TMuonGlobalParamsHelper::setFwVersion
void setFwVersion(unsigned fwVersion)
Definition: L1TMuonGlobalParamsHelper.cc:68
amcDumpToRaw_cfi.fwVersion
fwVersion
Definition: amcDumpToRaw_cfi.py:11
L1TMuonGlobalParamsHelper::fPhi
Definition: L1TMuonGlobalParamsHelper.h:67
L1TMuonGlobalParamsHelper::setBPhiExtrapolationLUT
void setBPhiExtrapolationLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:205
L1TMuonGlobalParamsHelper::setAbsIsoCheckMemLUT
void setAbsIsoCheckMemLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:157
mps_fire.i
i
Definition: mps_fire.py:428
L1TMuonGlobalParamsHelper::inputFlags
std::bitset< 72 > inputFlags(const int &nodeIdx) const
Definition: L1TMuonGlobalParamsHelper.cc:15
L1TMuonGlobalParamsHelper::fOPosMatchQual
Definition: L1TMuonGlobalParamsHelper.h:37
MessageLogger.h
L1TMuonGlobalParamsHelper::setOvlNegSingleMatchQualLUTMaxDR
void setOvlNegSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
Definition: L1TMuonGlobalParamsHelper.cc:351
L1TMuonGlobalParamsHelper::tfInputFlags
std::bitset< 12 > tfInputFlags(const int &nodeIdx, const int &tfIdx) const
Definition: L1TMuonGlobalParamsHelper.cc:48
L1TMuonGlobalParamsHelper::setBONegMatchQualLUT
void setBONegMatchQualLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:193
L1TMuonGlobalParamsHelper::bOPosMatchQualLUTMaxDR
double bOPosMatchQualLUTMaxDR() const
Definition: L1TMuonGlobalParamsHelper.h:355
L1TMuonGlobalParamsHelper::OMTFPLINK1
Definition: L1TMuonGlobalParamsHelper.h:73
L1TMuonGlobalParamsHelper::setOmtfpInputsToDisable
void setOmtfpInputsToDisable(const std::bitset< 6 > &disables)
Definition: L1TMuonGlobalParamsHelper.h:106
L1TMuonGlobalParamsHelper::BMTFINPUTS
Definition: L1TMuonGlobalParamsHelper.h:61
L1TMuonGlobalParamsHelper::oEtaExtrapolationLUTPath
std::string oEtaExtrapolationLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:295
L1TMuonGlobalParamsHelper::setFOPosMatchQualLUT
void setFOPosMatchQualLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:197
L1TMuonGlobalParamsHelper::setCaloInputsToDisable
void setCaloInputsToDisable(const std::bitset< 28 > &disables)
Definition: L1TMuonGlobalParamsHelper.h:102
L1TMuonGlobalParamsHelper::bOPosMatchQualLUTfEta
double bOPosMatchQualLUTfEta() const
Definition: L1TMuonGlobalParamsHelper.h:398
L1TMuonGlobalParamsHelper::bONegMatchQualLUTPath
std::string bONegMatchQualLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:270
L1TMuonGlobalParamsHelper::setTfInputFlags
void setTfInputFlags(const int &nodeIdx, const int &tfIdx, const std::bitset< 12 > &flags)
Definition: L1TMuonGlobalParamsHelper.cc:96
ConvertToLUT.h
L1TMuonGlobalParamsHelper::loadFromOnline
void loadFromOnline(l1t::TriggerSystem &trgSys, const std::string &processorId="")
Definition: L1TMuonGlobalParamsHelper.cc:115
L1TMuonGlobalParamsHelper::fONegMatchQual
Definition: L1TMuonGlobalParamsHelper.h:38
L1TMuonGlobalParamsHelper::inputsToDisable
std::bitset< 72 > inputsToDisable() const
Definition: L1TMuonGlobalParamsHelper.h:90
L1TMuonGlobalParamsHelper::fONegMatchQualLUTPath
std::string fONegMatchQualLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:276
L1TMuonGlobalParamsHelper::fEta
Definition: L1TMuonGlobalParamsHelper.h:67
L1TMuonGlobalParams
Definition: L1TMuonGlobalParams.h:21
L1TMuonGlobalParamsHelper::setFwdNegSingleMatchQualLUTMaxDR
void setFwdNegSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fPhi)
Definition: L1TMuonGlobalParamsHelper.cc:334
L1TMuonGlobalParamsHelper::idxSelMemEtaLUTPath
std::string idxSelMemEtaLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:244
L1TMuonGlobalParamsHelper::bOPosMatchQualLUTPath
std::string bOPosMatchQualLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:267
L1TMuonGlobalParamsHelper::setOvlPosSingleMatchQualLUTMaxDR
void setOvlPosSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
Definition: L1TMuonGlobalParamsHelper.cc:341
L1TMuonGlobalParamsHelper::setFONegMatchQualLUTMaxDR
void setFONegMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
Definition: L1TMuonGlobalParamsHelper.cc:382
L1TMuonGlobalParamsHelper::maskedOmtfInputs
std::bitset< 12 > maskedOmtfInputs() const
Definition: L1TMuonGlobalParamsHelper.h:123
L1TMuonGlobalParamsHelper::FWVERSION_IDX
Definition: L1TMuonGlobalParamsHelper.h:59
L1TMuonGlobalParamsHelper::setBEtaExtrapolationLUT
void setBEtaExtrapolationLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:217
L1TMuonGlobalParamsHelper::setRelIsoCheckMemLUT
void setRelIsoCheckMemLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:161
L1TMuonGlobalParamsHelper::NUM_GMTPARAMNODES
Definition: L1TMuonGlobalParamsHelper.h:49
L1TMuonGlobalParamsHelper::bPhiExtrapolationLUTPath
std::string bPhiExtrapolationLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:279
L1TMuonGlobalParamsHelper::eomtfInputFlags
std::bitset< 6 > eomtfInputFlags(const int &nodeIdx, const size_t &startIdx, const int &tfIdx) const
Definition: L1TMuonGlobalParamsHelper.cc:56
L1TMuonGlobalParamsHelper::maskedInputs
std::bitset< 72 > maskedInputs() const
Definition: L1TMuonGlobalParamsHelper.h:120
l1t::convertToLUT
l1t::LUT convertToLUT(const std::vector< uint64_t > &v, int padding=-1) noexcept
Definition: ConvertToLUT.h:10
L1TMuonGlobalParamsHelper::bONegMatchQualLUTfPhi
double bONegMatchQualLUTfPhi() const
Definition: L1TMuonGlobalParamsHelper.h:453
L1TMuonGlobalParamsHelper::setEOmtfInputFlags
void setEOmtfInputFlags(const int &nodeIdx, const size_t &startIdx, const int &tfIdx, const std::bitset< 6 > &flags)
Definition: L1TMuonGlobalParamsHelper.cc:105
l1t::TriggerSystem::getProcToRoleAssignment
const std::map< std::string, std::string > & getProcToRoleAssignment(void) const noexcept
Definition: TriggerSystem.h:60
L1TMuonGlobalParamsHelper::setEmtfpInputsToDisable
void setEmtfpInputsToDisable(const std::bitset< 6 > &disables)
Definition: L1TMuonGlobalParamsHelper.h:112
l1t::TriggerSystem
Definition: TriggerSystem.h:14
L1TMuonGlobalParamsHelper::caloInputFlags
std::bitset< 28 > caloInputFlags(const int &nodeIdx) const
Definition: L1TMuonGlobalParamsHelper.cc:40
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
L1TMuonGlobalParamsHelper::emtfInputsToDisable
std::bitset< 12 > emtfInputsToDisable() const
Definition: L1TMuonGlobalParamsHelper.h:94
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
L1TMuonGlobalParamsHelper::setFONegMatchQualLUT
void setFONegMatchQualLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:201
L1TMuonGlobalParamsHelper::ovlPosSingleMatchQualLUTPath
std::string ovlPosSingleMatchQualLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:257
L1TMuonGlobalParamsHelper::setFwdPosSingleMatchQualLUTMaxDR
void setFwdPosSingleMatchQualLUTMaxDR(double maxDR, double fEta, double fPhi)
Definition: L1TMuonGlobalParamsHelper.cc:327
L1TMuonGlobalParamsHelper::setMaskedBmtfInputs
void setMaskedBmtfInputs(const std::bitset< 12 > &masked)
Definition: L1TMuonGlobalParamsHelper.h:131
L1TMuonGlobalParamsHelper::L1TMuonGlobalParamsHelper
L1TMuonGlobalParamsHelper()
Definition: L1TMuonGlobalParamsHelper.h:79
L1TMuonGlobalParamsHelper::EMTFINPUTS
Definition: L1TMuonGlobalParamsHelper.h:63
L1TMuonGlobalParamsHelper::setIdxSelMemPhiLUT
void setIdxSelMemPhiLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:165
L1TMuonGlobalParamsHelper::FWVERSION
Definition: L1TMuonGlobalParamsHelper.h:46
L1TMuonGlobalParamsHelper::setMaskedEmtfpInputs
void setMaskedEmtfpInputs(const std::bitset< 6 > &masked)
Definition: L1TMuonGlobalParamsHelper.h:134
L1TMuonGlobalParams_PUBLIC
Definition: L1TMuonGlobalParams_PUBLIC.h:21
L1TMuonGlobalParamsHelper::sortRankLUTQualFactor
unsigned sortRankLUTQualFactor() const
Definition: L1TMuonGlobalParamsHelper.h:476
l1t::TriggerSystem::isMasked
bool isMasked(const char *proccessor, const char *id) const
Definition: TriggerSystem.cc:272
L1TMuonGlobalParamsHelper::bONegMatchQualLUTfEta
double bONegMatchQualLUTfEta() const
Definition: L1TMuonGlobalParamsHelper.h:401
L1TMuonGlobalParamsHelper::setMaskedOmtfpInputs
void setMaskedOmtfpInputs(const std::bitset< 6 > &masked)
Definition: L1TMuonGlobalParamsHelper.h:132
L1TMuonGlobalParamsHelper::setFEtaExtrapolationLUT
void setFEtaExtrapolationLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:225
L1TMuonGlobalParamsHelper::setBONegMatchQualLUTMaxDR
void setBONegMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
Definition: L1TMuonGlobalParamsHelper.cc:368
L1TMuonGlobalParamsHelper::fwdPosSingleMatchQualLUTMaxDR
double fwdPosSingleMatchQualLUTMaxDR() const
Definition: L1TMuonGlobalParamsHelper.h:335
L1TMuonGlobalParamsHelper::setBOPosMatchQualLUT
void setBOPosMatchQualLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:189
L1TMuonGlobalParamsHelper::absIsoCheckMemLUTPath
std::string absIsoCheckMemLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:235
L1TMuonGlobalParamsHelper::setFPhiExtrapolationLUT
void setFPhiExtrapolationLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:213
L1TMuonGlobalParamsHelper::bONegMatchQualLUTMaxDR
double bONegMatchQualLUTMaxDR() const
Definition: L1TMuonGlobalParamsHelper.h:358
L1TMuonGlobalParamsHelper::setEmtfnInputsToDisable
void setEmtfnInputsToDisable(const std::bitset< 6 > &disables)
Definition: L1TMuonGlobalParamsHelper.h:115
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
L1TMuonGlobalParamsHelper::relIsoCheckMemLUTPath
std::string relIsoCheckMemLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:238
L1TMuonGlobalParamsHelper::setIdxSelMemEtaLUT
void setIdxSelMemEtaLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:169
fakeGmtParams_cff.caloInputsMasked
caloInputsMasked
Definition: fakeGmtParams_cff.py:43
L1TMuonGlobalParamsHelper::setFwdNegSingleMatchQualLUT
void setFwdNegSingleMatchQualLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:177
L1TMuonGlobalParamsHelper::ovlNegSingleMatchQual
Definition: L1TMuonGlobalParamsHelper.h:34
L1TMuonGlobalParamsHelper::EMTFPLINK1
Definition: L1TMuonGlobalParamsHelper.h:72
L1TMuonGlobalParamsHelper::setMaskedOmtfnInputs
void setMaskedOmtfnInputs(const std::bitset< 6 > &masked)
Definition: L1TMuonGlobalParamsHelper.h:133
L1TMuonGlobalParamsHelper::oPhiExtrapolationLUTPath
std::string oPhiExtrapolationLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:283
L1TMuonGlobalParamsHelper::fwVersion
unsigned fwVersion() const
Definition: L1TMuonGlobalParamsHelper.h:84
L1TMuonGlobalParamsHelper::OMTFNLINK1
Definition: L1TMuonGlobalParamsHelper.h:75
L1TMuonGlobalParamsHelper::bmtfInputsToDisable
std::bitset< 12 > bmtfInputsToDisable() const
Definition: L1TMuonGlobalParamsHelper.h:92
L1TMuonGlobalParamsHelper::CALOLINK1
Definition: L1TMuonGlobalParamsHelper.h:71
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
L1TMuonGlobalParamsHelper::fwdNegSingleMatchQual
Definition: L1TMuonGlobalParamsHelper.h:32
L1TMuonGlobalParamsHelper::setSortRankLUT
void setSortRankLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:229
L1TMuonGlobalParamsHelper::sortRankLUTPath
std::string sortRankLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:303
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1TMuonGlobalParamsHelper::fOPosMatchQualLUTPath
std::string fOPosMatchQualLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:273
L1TMuonGlobalParamsHelper::fwdNegSingleMatchQualLUTPath
std::string fwdNegSingleMatchQualLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:252
L1TMuonGlobalParamsHelper.h
L1TMuonGlobalParamsHelper::omtfInputsToDisable
std::bitset< 12 > omtfInputsToDisable() const
Definition: L1TMuonGlobalParamsHelper.h:93
L1TMuonGlobalParamsHelper::maskedEmtfInputs
std::bitset< 12 > maskedEmtfInputs() const
Definition: L1TMuonGlobalParamsHelper.h:124
L1TMuonGlobalParamsHelper::fwdPosSingleMatchQual
Definition: L1TMuonGlobalParamsHelper.h:31
L1TMuonGlobalParamsHelper::ovlNegSingleMatchQualLUTPath
std::string ovlNegSingleMatchQualLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:262
L1TMuonGlobalParamsHelper::ovlNegSingleMatchQualLUTMaxDR
double ovlNegSingleMatchQualLUTMaxDR() const
Definition: L1TMuonGlobalParamsHelper.h:350
l1t::TriggerSystem::getParameters
const std::map< std::string, Parameter > & getParameters(const char *processor) const
Definition: TriggerSystem.cc:168
L1TMuonGlobalParamsHelper::bOPosMatchQualLUTfEtaCoarse
double bOPosMatchQualLUTfEtaCoarse() const
Definition: L1TMuonGlobalParamsHelper.h:404
L1TMuonGlobalParamsHelper::fEtaExtrapolationLUTPath
std::string fEtaExtrapolationLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:299
L1TMuonGlobalParamsHelper::CALOINPUTS
Definition: L1TMuonGlobalParamsHelper.h:60
L1TMuonGlobalParamsHelper::setFwdPosSingleMatchQualLUT
void setFwdPosSingleMatchQualLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:173
L1TMuonGlobalParamsHelper::setOPhiExtrapolationLUT
void setOPhiExtrapolationLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:209
L1TMuonGlobalParamsHelper::sortRankLUTPtFactor
unsigned sortRankLUTPtFactor() const
Definition: L1TMuonGlobalParamsHelper.h:473
L1TMuonGlobalParamsHelper::fEtaCoarse
Definition: L1TMuonGlobalParamsHelper.h:67
L1TMuonGlobalParamsHelper::setOvlNegSingleMatchQualLUT
void setOvlNegSingleMatchQualLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:185
L1TMuonGlobalParams_PUBLIC::pnodes_
std::vector< Node > pnodes_
Definition: L1TMuonGlobalParams_PUBLIC.h:45
L1TMuonGlobalParamsHelper::fOPosMatchQualLUTMaxDR
double fOPosMatchQualLUTMaxDR() const
Definition: L1TMuonGlobalParamsHelper.h:361
L1TMuonGlobalParamsHelper::fwdPosSingleMatchQualLUTPath
std::string fwdPosSingleMatchQualLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:247
L1TMuonGlobalParamsHelper::BMTFLINK1
Definition: L1TMuonGlobalParamsHelper.h:74
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
L1TMuonGlobalParamsHelper::setOvlPosSingleMatchQualLUT
void setOvlPosSingleMatchQualLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:181
L1TMuonGlobalParamsHelper::idxSelMemPhiLUTPath
std::string idxSelMemPhiLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:241
L1TMuonGlobalParamsHelper::setFOPosMatchQualLUTMaxDR
void setFOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
Definition: L1TMuonGlobalParamsHelper.cc:375
cast_to_L1TMuonGlobalParams_PUBLIC
const L1TMuonGlobalParams_PUBLIC & cast_to_L1TMuonGlobalParams_PUBLIC(const L1TMuonGlobalParams &x)
Definition: L1TMuonGlobalParams_PUBLIC.cc:3
jets_cff.maxDR
maxDR
Definition: jets_cff.py:130
L1TMuonGlobalParamsHelper::bEtaExtrapolationLUTPath
std::string bEtaExtrapolationLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:291
L1TMuonGlobalParamsHelper::bONegMatchQual
Definition: L1TMuonGlobalParamsHelper.h:36
L1TMuonGlobalParamsHelper::ovlPosSingleMatchQual
Definition: L1TMuonGlobalParamsHelper.h:33
L1TMuonGlobalParamsHelper::fPhiExtrapolationLUTPath
std::string fPhiExtrapolationLUTPath() const
Definition: L1TMuonGlobalParamsHelper.h:287
L1TMuonGlobalParamsHelper::OMTFINPUTS
Definition: L1TMuonGlobalParamsHelper.h:62
L1TMuonGlobalParamsHelper::setMaskedCaloInputs
void setMaskedCaloInputs(const std::bitset< 28 > &masked)
Definition: L1TMuonGlobalParamsHelper.h:130
L1TMuonGlobalParamsHelper::setOmtfnInputsToDisable
void setOmtfnInputsToDisable(const std::bitset< 6 > &disables)
Definition: L1TMuonGlobalParamsHelper.h:109
L1TMuonGlobalParamsHelper::setOEtaExtrapolationLUT
void setOEtaExtrapolationLUT(const l1t::LUT &lut)
Definition: L1TMuonGlobalParamsHelper.h:221
L1TMuonGlobalParamsHelper::EMTFNLINK1
Definition: L1TMuonGlobalParamsHelper.h:76
L1TMuonGlobalParamsHelper::setCaloInputFlags
void setCaloInputFlags(const int &nodeIdx, const std::bitset< 28 > &flags)
Definition: L1TMuonGlobalParamsHelper.cc:89
L1TMuonGlobalParamsHelper::setBmtfInputsToDisable
void setBmtfInputsToDisable(const std::bitset< 12 > &disables)
Definition: L1TMuonGlobalParamsHelper.h:103
L1TMuonGlobalParamsHelper::setBOPosMatchQualLUTMaxDR
void setBOPosMatchQualLUTMaxDR(double maxDR, double fEta, double fEtaCoarse, double fPhi)
Definition: L1TMuonGlobalParamsHelper.cc:361
L1TMuonGlobalParamsHelper::maskedBmtfInputs
std::bitset< 12 > maskedBmtfInputs() const
Definition: L1TMuonGlobalParamsHelper.h:122
L1TMuonGlobalParamsHelper::ovlPosSingleMatchQualLUTMaxDR
double ovlPosSingleMatchQualLUTMaxDR() const
Definition: L1TMuonGlobalParamsHelper.h:345
L1TMuonGlobalParamsHelper::fONegMatchQualLUTMaxDR
double fONegMatchQualLUTMaxDR() const
Definition: L1TMuonGlobalParamsHelper.h:364