CMS 3D CMS Logo

L1GlobalTriggerGTL.cc
Go to the documentation of this file.
1 
16 // this class header
18 
19 // user include files
21 
23 
25 
28 
39 
42 
45 
47 
58 
60 
62 
65 
66 // forward declarations
67 
68 // constructor
70  : m_l1GtMenuToken(iC.esConsumes()),
71  m_l1CaloGeometryToken(iC.esConsumes()),
72  m_l1MuTriggerScalesToken(iC.esConsumes()),
73  m_candL1Mu(new std::vector<const L1MuGMTCand *>),
74  m_isDebugEnabled(edm::isDebugEnabled()) {
75  m_gtlAlgorithmOR.reset();
76  m_gtlDecisionWord.reset();
77 
78  // initialize cached IDs
81 
82  // pointer to conversion - actually done in the event loop (cached)
85 
86  iC.consumes<std::vector<L1MuGMTCand>>(m_muGmtInputTag);
87 }
88 
89 // destructor
91  reset();
92  delete m_candL1Mu;
93  delete m_gtEtaPhiConversions;
94 }
95 
96 // operations
97 void L1GlobalTriggerGTL::init(const int nrL1Mu, const int numberPhysTriggers) {
98  m_candL1Mu->reserve(nrL1Mu);
99 
100  // FIXME move from bitset to std::vector<bool> to be able to use
101  // numberPhysTriggers from EventSetup
102 
103  // m_gtlAlgorithmOR.reserve(numberPhysTriggers);
104  // m_gtlAlgorithmOR.assign(numberPhysTriggers, false);
105 
106  // m_gtlDecisionWord.reserve(numberPhysTriggers);
107  // m_gtlDecisionWord.assign(numberPhysTriggers, false);
108 }
109 
110 // receive data from Global Muon Trigger
112  const edm::InputTag &muGmtInputTag,
113  const int iBxInEvent,
114  const bool receiveMu,
115  const int nrL1Mu) {
116  if (m_verbosity) {
117  LogDebug("L1GlobalTrigger") << "\n**** L1GlobalTriggerGTL receiving muon data for BxInEvent = " << iBxInEvent
118  << "\n from input tag " << muGmtInputTag << "\n"
119  << std::endl;
120  }
121 
122  reset();
123 
124  // get data from Global Muon Trigger
125  if (receiveMu) {
127  iEvent.getByLabel(muGmtInputTag, muonData);
128 
129  if (!muonData.isValid()) {
130  if (m_verbosity) {
131  edm::LogWarning("L1GlobalTrigger") << "\nWarning: std::vector<L1MuGMTCand> with input tag " << muGmtInputTag
132  << "\nrequested in configuration, but not found in the event.\n"
133  << std::endl;
134  }
135  } else {
136  std::vector<L1MuGMTCand>::const_iterator itMuon;
137  for (itMuon = muonData->begin(); itMuon != muonData->end(); itMuon++) {
138  if ((*itMuon).bx() == iBxInEvent) {
139  (*m_candL1Mu).push_back(&(*itMuon));
140  // LogTrace("L1GlobalTrigger") << (*itMuon)
141  // << std::endl;
142  }
143  }
144  }
145  }
146 
147  if (m_verbosity && m_isDebugEnabled) {
148  printGmtData(iBxInEvent);
149  }
150 }
151 
152 // run GTL
154  const edm::EventSetup &evSetup,
155  const L1GlobalTriggerPSB *ptrGtPSB,
156  const bool produceL1GtObjectMapRecord,
157  const int iBxInEvent,
158  L1GlobalTriggerObjectMapRecord *gtObjectMapRecord,
159  const unsigned int numberPhysTriggers,
160  const int nrL1Mu,
161  const int nrL1NoIsoEG,
162  const int nrL1IsoEG,
163  const int nrL1CenJet,
164  const int nrL1ForJet,
165  const int nrL1TauJet,
166  const int nrL1JetCounts,
167  const int ifMuEtaNumberBits,
168  const int ifCaloEtaNumberBits) {
169  // get / update the trigger menu from the EventSetup
170  const auto &l1GtMenu = evSetup.getData(m_l1GtMenuToken);
171 
172  const std::vector<ConditionMap> &conditionMap = l1GtMenu.gtConditionMap();
173  const AlgorithmMap &algorithmMap = l1GtMenu.gtAlgorithmMap();
174 
175  const std::vector<std::vector<L1GtMuonTemplate>> &corrMuon = l1GtMenu.corMuonTemplate();
176 
177  const std::vector<std::vector<L1GtCaloTemplate>> &corrCalo = l1GtMenu.corCaloTemplate();
178 
179  const std::vector<std::vector<L1GtEnergySumTemplate>> &corrEnergySum = l1GtMenu.corEnergySumTemplate();
180 
181  // conversion needed for correlation conditions
182  // done in the condition loop when the first correlation template is in the
183  // menu
184  bool convertScale = false;
185 
186  // get / update the calorimeter geometry from the EventSetup
187  // local cache & check on cacheIdentifier
188  unsigned long long l1CaloGeometryCacheID = evSetup.get<L1CaloGeometryRecord>().cacheIdentifier();
189 
190  if (m_l1CaloGeometryCacheID != l1CaloGeometryCacheID) {
192  m_l1CaloGeometryCacheID = l1CaloGeometryCacheID;
193  convertScale = true;
194  }
195 
196  // get / update the eta and phi muon trigger scales from the EventSetup
197  // local cache & check on cacheIdentifier
198  unsigned long long l1MuTriggerScalesCacheID = evSetup.get<L1MuTriggerScalesRcd>().cacheIdentifier();
199 
200  if (m_l1MuTriggerScalesCacheID != l1MuTriggerScalesCacheID) {
202  m_l1MuTriggerScalesCacheID = l1MuTriggerScalesCacheID;
203  convertScale = true;
204  }
205 
206  if (convertScale) {
209  m_l1CaloGeometry, m_l1MuTriggerScales, ifCaloEtaNumberBits, ifMuEtaNumberBits);
210 
211  // print the conversions if DEBUG and verbosity enabled
212 
213  if (m_verbosity && m_isDebugEnabled) {
214  std::ostringstream myCout;
215  m_gtEtaPhiConversions->print(myCout);
216 
217  LogTrace("L1GlobalTrigger") << myCout.str() << std::endl;
218  }
219 
220  // set convertScale to false to avoid executing the conversion
221  // more than once - in case the scales change it will be set to true
222  // in the cache check
223  convertScale = false;
224  }
225 
226  // loop over condition maps (one map per condition chip)
227  // then loop over conditions in the map
228  // save the results in temporary maps
229 
230  // never happens in production but at first event...
231  if (m_conditionResultMaps.size() != conditionMap.size()) {
232  m_conditionResultMaps.clear();
233  m_conditionResultMaps.resize(conditionMap.size());
234  }
235 
236  int iChip = -1;
237 
238  for (std::vector<ConditionMap>::const_iterator itCondOnChip = conditionMap.begin();
239  itCondOnChip != conditionMap.end();
240  itCondOnChip++) {
241  iChip++;
242 
243  // L1GtAlgorithmEvaluation::ConditionEvaluationMap cMapResults;
244  // L1GtAlgorithmEvaluation::ConditionEvaluationMap
245  // cMapResults((*itCondOnChip).size()); // hash map
247 
248  for (CItCond itCond = itCondOnChip->begin(); itCond != itCondOnChip->end(); itCond++) {
249  // evaluate condition
250  switch ((itCond->second)->condCategory()) {
251  case CondMuon: {
252  L1GtMuonCondition *muCondition = new L1GtMuonCondition(itCond->second, this, nrL1Mu, ifMuEtaNumberBits);
253 
254  muCondition->setVerbosity(m_verbosity);
256  muCondition->evaluateConditionStoreResult();
257 
258  cMapResults[itCond->first] = muCondition;
259 
260  if (m_verbosity && m_isDebugEnabled) {
261  std::ostringstream myCout;
262  muCondition->print(myCout);
263 
264  LogTrace("L1GlobalTrigger") << myCout.str() << std::endl;
265  }
266 
267  // delete muCondition;
268 
269  } break;
270  case CondCalo: {
271  L1GtCaloCondition *caloCondition = new L1GtCaloCondition(
272  itCond->second, ptrGtPSB, nrL1NoIsoEG, nrL1IsoEG, nrL1CenJet, nrL1ForJet, nrL1TauJet, ifCaloEtaNumberBits);
273 
274  caloCondition->setVerbosity(m_verbosity);
275  caloCondition->setGtCorrParDeltaPhiNrBins(
276  (m_gtEtaPhiConversions->gtObjectNrBinsPhi(((itCond->second)->objectType())[0])) / 2 + 1);
277  caloCondition->evaluateConditionStoreResult();
278 
279  cMapResults[itCond->first] = caloCondition;
280 
281  if (m_verbosity && m_isDebugEnabled) {
282  std::ostringstream myCout;
283  caloCondition->print(myCout);
284 
285  LogTrace("L1GlobalTrigger") << myCout.str() << std::endl;
286  }
287  // delete caloCondition;
288 
289  } break;
290  case CondEnergySum: {
291  L1GtEnergySumCondition *eSumCondition = new L1GtEnergySumCondition(itCond->second, ptrGtPSB);
292 
293  eSumCondition->setVerbosity(m_verbosity);
294  eSumCondition->evaluateConditionStoreResult();
295 
296  cMapResults[itCond->first] = eSumCondition;
297 
298  if (m_verbosity && m_isDebugEnabled) {
299  std::ostringstream myCout;
300  eSumCondition->print(myCout);
301 
302  LogTrace("L1GlobalTrigger") << myCout.str() << std::endl;
303  }
304  // delete eSumCondition;
305 
306  } break;
307  case CondJetCounts: {
308  L1GtJetCountsCondition *jcCondition = new L1GtJetCountsCondition(itCond->second, ptrGtPSB, nrL1JetCounts);
309 
310  jcCondition->setVerbosity(m_verbosity);
311  jcCondition->evaluateConditionStoreResult();
312 
313  cMapResults[itCond->first] = jcCondition;
314 
315  if (m_verbosity && m_isDebugEnabled) {
316  std::ostringstream myCout;
317  jcCondition->print(myCout);
318 
319  LogTrace("L1GlobalTrigger") << myCout.str() << std::endl;
320  }
321 
322  // delete jcCondition;
323 
324  } break;
325  case CondHfBitCounts: {
326  L1GtHfBitCountsCondition *bcCondition = new L1GtHfBitCountsCondition(itCond->second, ptrGtPSB);
327 
328  bcCondition->setVerbosity(m_verbosity);
329  bcCondition->evaluateConditionStoreResult();
330 
331  cMapResults[itCond->first] = bcCondition;
332 
333  if (m_isDebugEnabled) {
334  std::ostringstream myCout;
335  bcCondition->print(myCout);
336 
337  LogTrace("L1GlobalTrigger") << myCout.str() << std::endl;
338  }
339 
340  // delete bcCondition;
341 
342  } break;
343  case CondHfRingEtSums: {
344  L1GtHfRingEtSumsCondition *etCondition = new L1GtHfRingEtSumsCondition(itCond->second, ptrGtPSB);
345 
346  etCondition->setVerbosity(m_verbosity);
347  etCondition->evaluateConditionStoreResult();
348 
349  cMapResults[itCond->first] = etCondition;
350 
351  if (m_verbosity && m_isDebugEnabled) {
352  std::ostringstream myCout;
353  etCondition->print(myCout);
354 
355  LogTrace("L1GlobalTrigger") << myCout.str() << std::endl;
356  }
357 
358  // delete etCondition;
359 
360  } break;
361  case CondCastor: {
362  bool castorCondResult = false;
363 
364  // FIXME need a solution to read CASTOR
365  // if (castorConditionFlag) {
366  // castorCondResult = castorData->conditionResult(itCond->first);
367  //}
368 
369  L1GtCastorCondition *castorCondition = new L1GtCastorCondition(itCond->second, castorCondResult);
370 
371  castorCondition->setVerbosity(m_verbosity);
372  castorCondition->evaluateConditionStoreResult();
373 
374  cMapResults[itCond->first] = castorCondition;
375 
376  if (m_verbosity && m_isDebugEnabled) {
377  std::ostringstream myCout;
378  castorCondition->print(myCout);
379 
380  LogTrace("L1GlobalTrigger") << myCout.str() << std::endl;
381  }
382 
383  // delete castorCondition;
384 
385  } break;
386  case CondBptx: {
387  bool bptxCondResult = true;
388 
389  // FIXME need a solution to read BPTX with real value
390 
391  L1GtBptxCondition *bptxCondition = new L1GtBptxCondition(itCond->second, bptxCondResult);
392 
393  bptxCondition->setVerbosity(m_verbosity);
394  bptxCondition->evaluateConditionStoreResult();
395 
396  cMapResults[itCond->first] = bptxCondition;
397 
398  if (m_verbosity && m_isDebugEnabled) {
399  std::ostringstream myCout;
400  bptxCondition->print(myCout);
401 
402  LogTrace("L1GlobalTrigger") << myCout.str() << std::endl;
403  }
404 
405  // delete bptxCondition;
406 
407  } break;
408  case CondExternal: {
409  bool externalCondResult = true;
410 
411  // FIXME need a solution to read External with real value
412 
413  L1GtExternalCondition *externalCondition = new L1GtExternalCondition(itCond->second, externalCondResult);
414 
415  externalCondition->setVerbosity(m_verbosity);
416  externalCondition->evaluateConditionStoreResult();
417 
418  cMapResults[itCond->first] = externalCondition;
419 
420  if (m_verbosity && m_isDebugEnabled) {
421  std::ostringstream myCout;
422  externalCondition->print(myCout);
423 
424  LogTrace("L1GlobalTrigger") << myCout.str() << std::endl;
425  }
426 
427  // delete externalCondition;
428 
429  } break;
430  case CondCorrelation: {
431  // get first the sub-conditions
432  const L1GtCorrelationTemplate *corrTemplate = static_cast<const L1GtCorrelationTemplate *>(itCond->second);
433  const L1GtConditionCategory cond0Categ = corrTemplate->cond0Category();
434  const L1GtConditionCategory cond1Categ = corrTemplate->cond1Category();
435  const int cond0Ind = corrTemplate->cond0Index();
436  const int cond1Ind = corrTemplate->cond1Index();
437 
438  const L1GtCondition *cond0Condition = nullptr;
439  const L1GtCondition *cond1Condition = nullptr;
440 
441  // maximum number of objects received for evaluation of Type1s condition
442  int cond0NrL1Objects = 0;
443  int cond1NrL1Objects = 0;
444 
445  int cond0EtaBits = 0;
446  int cond1EtaBits = 0;
447 
448  switch (cond0Categ) {
449  case CondMuon: {
450  cond0Condition = &((corrMuon[iChip])[cond0Ind]);
451  cond0NrL1Objects = nrL1Mu;
452  cond0EtaBits = ifMuEtaNumberBits;
453  } break;
454  case CondCalo: {
455  cond0Condition = &((corrCalo[iChip])[cond0Ind]);
456 
457  switch ((cond0Condition->objectType())[0]) {
458  case NoIsoEG:
459  cond0NrL1Objects = nrL1NoIsoEG;
460  break;
461  case IsoEG:
462  cond0NrL1Objects = nrL1IsoEG;
463  break;
464  case CenJet:
465  cond0NrL1Objects = nrL1CenJet;
466  break;
467  case ForJet:
468  cond0NrL1Objects = nrL1ForJet;
469  break;
470  case TauJet:
471  cond0NrL1Objects = nrL1TauJet;
472  break;
473  default:
474  cond0NrL1Objects = 0;
475  break;
476  }
477 
478  cond0EtaBits = ifCaloEtaNumberBits;
479  } break;
480  case CondEnergySum: {
481  cond0Condition = &((corrEnergySum[iChip])[cond0Ind]);
482  cond0NrL1Objects = 1;
483  } break;
484  default: {
485  // do nothing, should not arrive here
486  } break;
487  }
488 
489  switch (cond1Categ) {
490  case CondMuon: {
491  cond1Condition = &((corrMuon[iChip])[cond1Ind]);
492  cond1NrL1Objects = nrL1Mu;
493  cond1EtaBits = ifMuEtaNumberBits;
494  } break;
495  case CondCalo: {
496  cond1Condition = &((corrCalo[iChip])[cond1Ind]);
497 
498  switch ((cond1Condition->objectType())[0]) {
499  case NoIsoEG:
500  cond1NrL1Objects = nrL1NoIsoEG;
501  break;
502  case IsoEG:
503  cond1NrL1Objects = nrL1IsoEG;
504  break;
505  case CenJet:
506  cond1NrL1Objects = nrL1CenJet;
507  break;
508  case ForJet:
509  cond1NrL1Objects = nrL1ForJet;
510  break;
511  case TauJet:
512  cond1NrL1Objects = nrL1TauJet;
513  break;
514  default:
515  cond1NrL1Objects = 0;
516  break;
517  }
518 
519  cond1EtaBits = ifCaloEtaNumberBits;
520  } break;
521  case CondEnergySum: {
522  cond1Condition = &((corrEnergySum[iChip])[cond1Ind]);
523  cond1NrL1Objects = 1;
524  } break;
525  default: {
526  // do nothing, should not arrive here
527  } break;
528  }
529 
530  L1GtCorrelationCondition *correlationCond = new L1GtCorrelationCondition(itCond->second,
531  cond0Condition,
532  cond1Condition,
533  cond0NrL1Objects,
534  cond1NrL1Objects,
535  cond0EtaBits,
536  cond1EtaBits,
537  this,
538  ptrGtPSB,
540 
541  correlationCond->setVerbosity(m_verbosity);
542  correlationCond->evaluateConditionStoreResult();
543 
544  cMapResults[itCond->first] = correlationCond;
545 
546  if (m_verbosity && m_isDebugEnabled) {
547  std::ostringstream myCout;
548  correlationCond->print(myCout);
549 
550  LogTrace("L1GlobalTrigger") << myCout.str() << std::endl;
551  }
552 
553  // delete correlationCond;
554 
555  } break;
556  case CondNull: {
557  // do nothing
558 
559  } break;
560  default: {
561  // do nothing
562 
563  } break;
564  }
565  }
566  }
567 
568  // loop over algorithm map
569 
570  // empty vector for object maps - filled during loop
571  std::vector<L1GlobalTriggerObjectMap> objMapVec;
572  if (produceL1GtObjectMapRecord && (iBxInEvent == 0))
573  objMapVec.reserve(numberPhysTriggers);
574 
575  for (CItAlgo itAlgo = algorithmMap.begin(); itAlgo != algorithmMap.end(); itAlgo++) {
576  L1GtAlgorithmEvaluation gtAlg(itAlgo->second);
577  gtAlg.evaluateAlgorithm((itAlgo->second).algoChipNumber(), m_conditionResultMaps);
578 
579  int algBitNumber = (itAlgo->second).algoBitNumber();
580  bool algResult = gtAlg.gtAlgoResult();
581 
582  if (algResult) {
583  m_gtlAlgorithmOR.set(algBitNumber);
584  }
585 
586  if (m_verbosity && m_isDebugEnabled) {
587  std::ostringstream myCout;
588  (itAlgo->second).print(myCout);
589  gtAlg.print(myCout);
590 
591  LogTrace("L1GlobalTrigger") << myCout.str() << std::endl;
592  }
593 
594  // object maps only for BxInEvent = 0
595  if (produceL1GtObjectMapRecord && (iBxInEvent == 0)) {
596  // set object map
598 
599  objMap.setAlgoName(itAlgo->first);
600  objMap.setAlgoBitNumber(algBitNumber);
601  objMap.setAlgoGtlResult(algResult);
604  // gtAlg is empty now...
605 
606  if (m_verbosity && m_isDebugEnabled) {
607  std::ostringstream myCout1;
608  objMap.print(myCout1);
609 
610  LogTrace("L1GlobalTrigger") << myCout1.str() << std::endl;
611  }
612 
613  objMapVec.push_back(objMap);
614  }
615  }
616 
617  // object maps only for BxInEvent = 0
618  if (produceL1GtObjectMapRecord && (iBxInEvent == 0)) {
619  gtObjectMapRecord->swapGtObjectMap(objMapVec);
620  }
621 
622  // loop over condition maps (one map per condition chip)
623  // then loop over conditions in the map
624  // delete the conditions created with new, zero pointer, do not clear map,
625  // keep the vector as is...
626  for (std::vector<L1GtAlgorithmEvaluation::ConditionEvaluationMap>::iterator itCondOnChip =
627  m_conditionResultMaps.begin();
628  itCondOnChip != m_conditionResultMaps.end();
629  itCondOnChip++) {
630  for (L1GtAlgorithmEvaluation::ItEvalMap itCond = itCondOnChip->begin(); itCond != itCondOnChip->end(); itCond++) {
631  delete itCond->second;
632  itCond->second = nullptr;
633  }
634  }
635 }
636 
637 // clear GTL
639  m_candL1Mu->clear();
640 
641  m_gtlDecisionWord.reset();
642  m_gtlAlgorithmOR.reset();
643 }
644 
645 // print Global Muon Trigger data received by GTL
646 void L1GlobalTriggerGTL::printGmtData(const int iBxInEvent) const {
647  LogTrace("L1GlobalTrigger") << "\nL1GlobalTrigger: GMT data received for BxInEvent = " << iBxInEvent << std::endl;
648 
649  int nrL1Mu = m_candL1Mu->size();
650  LogTrace("L1GlobalTrigger") << "Number of GMT muons = " << nrL1Mu << "\n" << std::endl;
651 
652  for (std::vector<const L1MuGMTCand *>::const_iterator iter = m_candL1Mu->begin(); iter != m_candL1Mu->end(); iter++) {
653  LogTrace("L1GlobalTrigger") << *(*iter) << std::endl;
654  }
655 
656  LogTrace("L1GlobalTrigger") << std::endl;
657 }
L1GtCorrelationTemplate::cond0Category
const L1GtConditionCategory cond0Category() const
get / set the category of the two sub-conditions
Definition: L1GtCorrelationTemplate.h:74
L1GtMuonCondition
Definition: L1GtMuonCondition.h:35
L1GtCondition
Definition: L1GtCondition.h:35
L1GlobalTriggerGTL::L1GlobalTriggerGTL
L1GlobalTriggerGTL(const edm::InputTag &mutag, edm::ConsumesCollector &&iC)
Definition: L1GlobalTriggerGTL.cc:69
L1GtTriggerMenu.h
L1GtExternalCondition.h
CItCond
ConditionMap::const_iterator CItCond
iterators through map containing the conditions
Definition: L1GtTriggerMenuFwd.h:34
L1GtHfRingEtSumsCondition
Definition: L1GtHfRingEtSumsCondition.h:32
L1GtCaloCondition.h
L1GtAlgorithm.h
L1GtCaloCondition::setGtCorrParDeltaPhiNrBins
void setGtCorrParDeltaPhiNrBins(const int &)
Definition: L1GtCaloCondition.cc:135
CondBptx
Definition: L1GtDefinitions.h:36
MessageLogger.h
L1GtJetCountsCondition
Definition: L1GtJetCountsCondition.h:33
L1GlobalTriggerObjectMap::setAlgoName
void setAlgoName(const std::string &algoNameValue)
Definition: L1GlobalTriggerObjectMap.h:45
L1GlobalTriggerGTL::m_l1CaloGeometry
const L1CaloGeometry * m_l1CaloGeometry
Definition: L1GlobalTriggerGTL.h:112
L1GtAlgorithmEvaluation::gtAlgoCombinationVector
std::vector< CombinationsInCond > & gtAlgoCombinationVector()
Definition: L1GtAlgorithmEvaluation.h:69
L1GtCaloTemplate.h
L1GlobalTriggerGTL::m_l1MuTriggerScalesCacheID
unsigned long long m_l1MuTriggerScalesCacheID
Definition: L1GlobalTriggerGTL.h:117
L1GtCaloCondition
Definition: L1GtCaloCondition.h:35
edm
HLT enums.
Definition: AlignableModifier.h:19
L1GtEtaPhiConversions::setVerbosity
void setVerbosity(const int verbosity)
Definition: L1GtEtaPhiConversions.h:78
L1GtHfBitCountsCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: L1GtHfBitCountsCondition.cc:144
L1GtEtaPhiConversions::gtObjectNrBinsPhi
const unsigned int gtObjectNrBinsPhi(const L1GtObject &) const
return the number of phi bins for a GT object
Definition: L1GtEtaPhiConversions.cc:758
CondMuon
Definition: L1GtDefinitions.h:28
L1GtAlgorithmEvaluation::operandTokenVector
std::vector< L1GtLogicParser::OperandToken > & operandTokenVector()
Definition: L1GtAlgorithmEvaluation.h:71
L1GtJetCountsCondition.h
L1GlobalTriggerGTL::reset
void reset()
clear GTL
Definition: L1GlobalTriggerGTL.cc:638
L1GtExternalCondition
Definition: L1GtExternalCondition.h:32
L1GlobalTriggerGTL::m_l1CaloGeometryCacheID
unsigned long long m_l1CaloGeometryCacheID
Definition: L1GlobalTriggerGTL.h:113
L1GlobalTriggerObjectMap::setAlgoGtlResult
void setAlgoGtlResult(bool algoGtlResultValue)
Definition: L1GlobalTriggerObjectMap.h:56
NoIsoEG
Definition: L1GtObject.h:30
CondEnergySum
Definition: L1GtDefinitions.h:30
L1GtCondition::objectType
const std::vector< L1GtObject > & objectType() const
get / set the trigger object type(s) in the condition
Definition: L1GtCondition.h:67
L1GlobalTriggerGTL::m_gtlAlgorithmOR
std::bitset< L1GlobalTriggerReadoutSetup::NumberPhysTriggers > m_gtlAlgorithmOR
Definition: L1GlobalTriggerGTL.h:125
L1GlobalTriggerGTL::m_conditionResultMaps
std::vector< L1GtAlgorithmEvaluation::ConditionEvaluationMap > m_conditionResultMaps
Definition: L1GlobalTriggerGTL.h:129
L1GlobalTriggerGTL::m_l1CaloGeometryToken
const edm::ESGetToken< L1CaloGeometry, L1CaloGeometryRecord > m_l1CaloGeometryToken
Definition: L1GlobalTriggerGTL.h:111
L1GlobalTriggerGTL::init
void init(const int nrL1Mu, const int numberPhysTriggers)
initialize the class (mainly reserve)
Definition: L1GlobalTriggerGTL.cc:97
L1GtCorrelationCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: L1GtCorrelationCondition.cc:769
L1GtCorrelationTemplate::cond1Category
const L1GtConditionCategory cond1Category() const
Definition: L1GtCorrelationTemplate.h:76
L1GtAlgorithmEvaluation::gtAlgoResult
bool gtAlgoResult() const
get / set the result of the algorithm
Definition: L1GtAlgorithmEvaluation.h:60
L1GlobalTriggerGTL::m_verbosity
int m_verbosity
verbosity level
Definition: L1GlobalTriggerGTL.h:133
CondJetCounts
Definition: L1GtDefinitions.h:31
L1GtCastorCondition
Definition: L1GtCastorCondition.h:32
watchdog.const
const
Definition: watchdog.py:83
IsoEG
Definition: L1GtObject.h:31
edm::Handle
Definition: AssociativeIterator.h:50
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
L1MuGMTCand
Definition: L1MuGMTCand.h:39
L1GtHfBitCountsCondition
Definition: L1GtHfBitCountsCondition.h:32
L1GtConditionCategory
L1GtConditionCategory
condition categories
Definition: L1GtDefinitions.h:26
L1GtEnergySumCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: L1GtEnergySumCondition.cc:251
L1GtHfRingEtSumsCondition.h
L1GlobalTriggerGTL::run
void run(edm::Event &iEvent, const edm::EventSetup &evSetup, const L1GlobalTriggerPSB *ptrGtPSB, const bool produceL1GtObjectMapRecord, const int iBxInEvent, L1GlobalTriggerObjectMapRecord *gtObjectMapRecord, const unsigned int numberPhysTriggers, const int nrL1Mu, const int nrL1NoIsoEG, const int nrL1IsoEG, const int nrL1CenJet, const int nrL1ForJet, const int nrL1TauJet, const int nrL1JetCounts, const int ifMuEtaNumberBits, const int ifCaloEtaNumberBits)
run the GTL
Definition: L1GlobalTriggerGTL.cc:153
L1GtCorrelationTemplate.h
CondNull
Definition: L1GtDefinitions.h:27
L1GtConditionEvaluation::setVerbosity
void setVerbosity(const int verbosity)
Definition: L1GtConditionEvaluation.h:78
L1GlobalTriggerObjectMap
Definition: L1GlobalTriggerObjectMap.h:33
L1GtHfBitCountsCondition.h
L1GtEtaPhiConversions::convertL1Scales
void convertL1Scales(const L1CaloGeometry *, const L1MuTriggerScales *, const int, const int)
perform all scale conversions
Definition: L1GtEtaPhiConversions.cc:841
L1GlobalTriggerGTL::m_l1MuTriggerScalesToken
const edm::ESGetToken< L1MuTriggerScales, L1MuTriggerScalesRcd > m_l1MuTriggerScalesToken
Definition: L1GlobalTriggerGTL.h:115
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
L1GtEtaPhiConversions
Definition: L1GtEtaPhiConversions.h:36
CItAlgo
AlgorithmMap::const_iterator CItAlgo
iterators through map containing the algorithms
Definition: L1GtTriggerMenuFwd.h:38
L1GtExternalCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: L1GtExternalCondition.cc:79
L1GtCorrelationTemplate
Definition: L1GtCorrelationTemplate.h:37
L1GtEtaPhiConversions.h
L1GlobalTriggerGTL::m_l1MuTriggerScales
const L1MuTriggerScales * m_l1MuTriggerScales
Definition: L1GlobalTriggerGTL.h:116
L1GtAlgorithmEvaluation::print
void print(std::ostream &myCout) const
Definition: L1GtAlgorithmEvaluation.cc:159
L1GtConditionEvaluation::evaluateConditionStoreResult
void evaluateConditionStoreResult()
call evaluateCondition and save last result
Definition: L1GtConditionEvaluation.h:58
AlgorithmMap
std::map< std::string, L1GtAlgorithm > AlgorithmMap
map containing the algorithms
Definition: L1GtTriggerMenuFwd.h:31
CenJet
Definition: L1GtObject.h:32
L1GtCastorTemplate.h
L1GtMuonCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: L1GtMuonCondition.cc:476
L1GlobalTriggerGTL::m_candL1Mu
std::vector< const L1MuGMTCand * > * m_candL1Mu
Definition: L1GlobalTriggerGTL.h:123
L1GtJetCountsTemplate.h
CondExternal
Definition: L1GtDefinitions.h:37
L1GlobalTriggerGTL::m_gtEtaPhiConversions
L1GtEtaPhiConversions * m_gtEtaPhiConversions
Definition: L1GlobalTriggerGTL.h:120
L1GtMuonCondition.h
L1GlobalTriggerGTL::m_l1GtMenuToken
const edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > m_l1GtMenuToken
Definition: L1GlobalTriggerGTL.h:108
L1GtCorrelationCondition
Definition: L1GtCorrelationCondition.h:34
L1CaloGeometryRecord
Definition: L1CaloGeometryRecord.h:30
L1GlobalTriggerGTL.h
L1GtConditionEvaluation.h
L1GtCorrelationTemplate::cond0Index
const int cond0Index() const
get / set the index of the two sub-conditions in the cor* vector from menu
Definition: L1GtCorrelationTemplate.h:82
L1GtCastorCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: L1GtCastorCondition.cc:79
L1GlobalTriggerGTL::receiveGmtObjectData
void receiveGmtObjectData(edm::Event &, const edm::InputTag &, const int iBxInEvent, const bool receiveMu, const int nrL1Mu)
receive data from Global Muon Trigger
Definition: L1GlobalTriggerGTL.cc:111
TauJet
Definition: L1GtObject.h:34
L1GtBptxCondition
Definition: L1GtBptxCondition.h:32
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
MessageDrop.h
L1GtCondition.h
L1GtAlgorithmEvaluation::ConditionEvaluationMap
std ::unordered_map< std::string, L1GtConditionEvaluation * > ConditionEvaluationMap
copy constructor
Definition: L1GtAlgorithmEvaluation.h:54
L1GlobalTriggerObjectMap::print
void print(std::ostream &myCout) const
print the full object map
Definition: L1GlobalTriggerObjectMap.cc:100
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
CondCastor
Definition: L1GtDefinitions.h:33
L1GlobalTriggerObjectMapRecord
Definition: L1GlobalTriggerObjectMapRecord.h:29
L1GtAlgorithmEvaluation.h
L1GtHfRingEtSumsCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: L1GtHfRingEtSumsCondition.cc:144
L1GtCaloCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: L1GtCaloCondition.cc:419
L1GlobalTriggerObjectMap::swapCombinationVector
void swapCombinationVector(std::vector< CombinationsInCond > &combinationVectorValue)
Definition: L1GlobalTriggerObjectMap.h:65
L1GlobalTriggerPSB.h
L1GtMuonTemplate.h
iEvent
int iEvent
Definition: GenABIO.cc:224
L1MuTriggerScales.h
L1GtFwd.h
CondCalo
Definition: L1GtDefinitions.h:29
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
edm::EventSetup
Definition: EventSetup.h:58
L1GlobalTriggerGTL::m_gtlDecisionWord
std::bitset< L1GlobalTriggerReadoutSetup::NumberPhysTriggers > m_gtlDecisionWord
Definition: L1GlobalTriggerGTL.h:126
L1MuTriggerScalesRcd
Definition: L1MuTriggerScalesRcd.h:12
CondHfBitCounts
Definition: L1GtDefinitions.h:34
L1GlobalTriggerObjectMapRecord::swapGtObjectMap
void swapGtObjectMap(std::vector< L1GlobalTriggerObjectMap > &gtObjectMapValue)
Definition: L1GlobalTriggerObjectMapRecord.h:70
L1GtBptxCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: L1GtBptxCondition.cc:77
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
L1GtBptxCondition.h
L1GtExternalTemplate.h
Mu
Definition: L1GtObject.h:29
L1GtHfRingEtSumsTemplate.h
L1GtCorrelationCondition.h
std
Definition: JetResolutionObject.h:76
L1GtAlgorithmEvaluation
Definition: L1GtAlgorithmEvaluation.h:34
L1GlobalTriggerObjectMap::swapOperandTokenVector
void swapOperandTokenVector(std::vector< L1GtLogicParser::OperandToken > &operandTokenVectorValue)
Definition: L1GlobalTriggerObjectMap.h:76
L1GtBptxTemplate.h
L1GtJetCountsCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: L1GtJetCountsCondition.cc:146
L1GtCastorCondition.h
L1GtCorrelationTemplate::cond1Index
const int cond1Index() const
Definition: L1GtCorrelationTemplate.h:84
L1GtEnergySumTemplate.h
L1GlobalTriggerPSB
Definition: L1GlobalTriggerPSB.h:58
ForJet
Definition: L1GtObject.h:33
CondHfRingEtSums
Definition: L1GtDefinitions.h:35
L1GtHfBitCountsTemplate.h
Exception.h
L1GlobalTriggerGTL::~L1GlobalTriggerGTL
virtual ~L1GlobalTriggerGTL()
Definition: L1GlobalTriggerGTL.cc:90
L1GlobalTriggerObjectMap::setAlgoBitNumber
void setAlgoBitNumber(int algoBitNumberValue)
Definition: L1GlobalTriggerObjectMap.h:50
edm::isDebugEnabled
bool isDebugEnabled()
Definition: MessageLogger.cc:12
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:234
L1GtEnergySumCondition.h
L1GtAlgorithmEvaluation::ItEvalMap
ConditionEvaluationMap::iterator ItEvalMap
Definition: L1GtAlgorithmEvaluation.h:56
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
edm::Event
Definition: Event.h:73
L1GlobalTriggerObjectMap.h
L1GtAlgorithmEvaluation::evaluateAlgorithm
void evaluateAlgorithm(const int chipNumber, const std::vector< ConditionEvaluationMap > &)
evaluate an algorithm
Definition: L1GtAlgorithmEvaluation.cc:50
L1CaloGeometry.h
L1GlobalTriggerGTL::m_isDebugEnabled
bool m_isDebugEnabled
Definition: L1GlobalTriggerGTL.h:134
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
L1GtEnergySumCondition
Definition: L1GtEnergySumCondition.h:33
L1GtEtaPhiConversions::print
virtual void print(std::ostream &myCout) const
print all the performed conversions
Definition: L1GtEtaPhiConversions.cc:1195
L1GtMuonCondition::setGtCorrParDeltaPhiNrBins
void setGtCorrParDeltaPhiNrBins(const int &)
Definition: L1GtMuonCondition.cc:100
CondCorrelation
Definition: L1GtDefinitions.h:32
L1GlobalTriggerGTL::printGmtData
void printGmtData(const int iBxInEvent) const
print received Muon dataWord
Definition: L1GlobalTriggerGTL.cc:646