CMS 3D CMS Logo

L1TGlobalProducer.cc
Go to the documentation of this file.
1 // L1TGlobalProducer.cc
2 //author: Brian Winer - Ohio State
3 
5 
6 // system include files
7 #include <memory>
8 #include <iostream>
9 #include <iomanip>
10 #include <algorithm>
11 
12 #include <boost/cstdint.hpp>
13 
24 
28 
33 
37 
39 
40 #include "TriggerMenuParser.h"
41 
42 using namespace l1t;
43 
46  // These parameters are part of the L1T/HLT interface, avoid changing if possible::
47  desc.add<edm::InputTag> ("MuonInputTag", edm::InputTag(""))->setComment("InputTag for Global Muon Trigger (required parameter: default value is invalid)");
48  desc.add<edm::InputTag> ("EGammaInputTag", edm::InputTag(""))->setComment("InputTag for Calo Trigger EGamma (required parameter: default value is invalid)");
49  desc.add<edm::InputTag> ("TauInputTag", edm::InputTag(""))->setComment("InputTag for Calo Trigger Tau (required parameter: default value is invalid)");
50  desc.add<edm::InputTag> ("JetInputTag", edm::InputTag(""))->setComment("InputTag for Calo Trigger Jet (required parameter: default value is invalid)");
51  desc.add<edm::InputTag> ("EtSumInputTag", edm::InputTag(""))->setComment("InputTag for Calo Trigger EtSum (required parameter: default value is invalid)");
52  desc.add<edm::InputTag> ("ExtInputTag", edm::InputTag(""))->setComment("InputTag for external conditions (not required, but recommend to specify explicitly in config)");
53  desc.add<bool> ("AlgorithmTriggersUnprescaled", false)->setComment("not required, but recommend to specify explicitly in config");
54  desc.add<bool> ("AlgorithmTriggersUnmasked", false)->setComment("not required, but recommend to specify explicitly in config");
55  // These parameters have well defined default values and are not currently
56  // part of the L1T/HLT interface. They can be cleaned up or updated at will:
57  desc.add<bool> ("ProduceL1GtDaqRecord",true);
58  desc.add<bool> ("ProduceL1GtObjectMapRecord",true);
59  desc.add<int> ("EmulateBxInEvent",1);
60  desc.add<int> ("L1DataBxInEvent",5);
61  desc.add<unsigned int> ("AlternativeNrBxBoardDaq",0);
62  desc.add<int> ("BstLengthBytes",-1);
63  desc.add<unsigned int> ("PrescaleSet",1);
64  desc.addUntracked<int>("Verbosity",0);
65  desc.addUntracked<bool> ("PrintL1Menu",false);
66  desc.add<std::string>("TriggerMenuLuminosity","startup");
67  desc.add<std::string>("PrescaleCSVFile","prescale_L1TGlobal.csv");
68  descriptions.add("L1TGlobalProducer", desc);
69 }
70 
71 
72 
73 // constructors
74 
76  m_muInputTag(parSet.getParameter<edm::InputTag> ("MuonInputTag")),
77  m_egInputTag(parSet.getParameter<edm::InputTag> ("EGammaInputTag")),
78  m_tauInputTag(parSet.getParameter<edm::InputTag> ("TauInputTag")),
79  m_jetInputTag(parSet.getParameter<edm::InputTag> ("JetInputTag")),
80  m_sumInputTag(parSet.getParameter<edm::InputTag> ("EtSumInputTag")),
81  m_extInputTag(parSet.getParameter<edm::InputTag> ("ExtInputTag")),
82 
83  m_produceL1GtDaqRecord(parSet.getParameter<bool> ("ProduceL1GtDaqRecord")),
84  m_produceL1GtObjectMapRecord(parSet.getParameter<bool> ("ProduceL1GtObjectMapRecord")),
85 
86  m_emulateBxInEvent(parSet.getParameter<int> ("EmulateBxInEvent")),
87  m_L1DataBxInEvent(parSet.getParameter<int> ("L1DataBxInEvent")),
88 
89  m_alternativeNrBxBoardDaq(parSet.getParameter<unsigned int> ("AlternativeNrBxBoardDaq")),
90  m_psBstLengthBytes(parSet.getParameter<int> ("BstLengthBytes")),
91 
92  m_prescaleSet(parSet.getParameter<unsigned int> ("PrescaleSet")),
93 
94  m_algorithmTriggersUnprescaled(parSet.getParameter<bool> ("AlgorithmTriggersUnprescaled")),
95  m_algorithmTriggersUnmasked(parSet.getParameter<bool> ("AlgorithmTriggersUnmasked")),
96 
97  m_verbosity(parSet.getUntrackedParameter<int>("Verbosity")),
98  m_printL1Menu(parSet.getUntrackedParameter<bool>("PrintL1Menu")),
99  m_isDebugEnabled(edm::isDebugEnabled())
100 {
101 
102  m_egInputToken = consumes <BXVector<EGamma> > (m_egInputTag);
103  m_tauInputToken = consumes <BXVector<Tau> > (m_tauInputTag);
104  m_jetInputToken = consumes <BXVector<Jet> > (m_jetInputTag);
105  m_sumInputToken = consumes <BXVector<EtSum> > (m_sumInputTag);
106  m_muInputToken = consumes <BXVector<Muon> > (m_muInputTag);
107  m_extInputToken = consumes <BXVector<GlobalExtBlk> > (m_extInputTag);
108 
109  if (m_verbosity) {
110 
111 
112  LogTrace("L1TGlobalProducer")
113  << "\nInput tag for muon collection from uGMT: " << m_muInputTag
114  << "\nInput tag for calorimeter jet collections from Cal: " << m_jetInputTag
115  << "\nInput tag for external conditions : " << m_extInputTag
116  << std::endl;
117 
118 
119  LogTrace("L1TGlobalProducer")
120  << "\nProduce the L1 uGT DAQ readout record: " << m_produceL1GtDaqRecord
121  << "\nProduce the L1 uGT Object Map record: " << m_produceL1GtObjectMapRecord
122  << " \n"
123  << "\nNumber of BxInEvent to be emulated: " << m_emulateBxInEvent
124  << " \n"
125  << "\nAlternative for number of BX in GT DAQ record: 0x" << std::hex
127  << " \n"
128  << "\nRun algorithm triggers unprescaled: " << m_algorithmTriggersUnprescaled
129  << "\nRun algorithm triggers unmasked (all enabled): " << m_algorithmTriggersUnmasked
130  << "\n"
131  << std::endl;
132  }
133 
134 
135  if ( ( m_emulateBxInEvent > 0 ) && ( ( m_emulateBxInEvent % 2 ) == 0 )) {
137 
138  if (m_verbosity) {
139  edm::LogWarning("L1TGlobalProducer")
140  << "\nWARNING: Number of bunch crossing to be emulated rounded to: "
141  << m_emulateBxInEvent << "\n The number must be an odd number!\n"
142  << std::endl;
143  }
144  }
145 
146 
147  if ( ( m_L1DataBxInEvent > 0 ) && ( ( m_L1DataBxInEvent % 2 ) == 0 )) {
149 
150  if (m_verbosity) {
151  edm::LogWarning("L1TGlobalProducer")
152  << "\nWARNING: Number of bunch crossing for incoming L1 Data rounded to: "
153  << m_L1DataBxInEvent << "\n The number must be an odd number!\n"
154  << std::endl;
155  }
156  } else if( m_L1DataBxInEvent<0) {
157  m_L1DataBxInEvent = 1;
158 
159  if (m_verbosity) {
160  edm::LogWarning("L1TGlobalProducer")
161  << "\nWARNING: Number of bunch crossing for incoming L1 Data was changed to: "
162  << m_L1DataBxInEvent << "\n The number must be an odd positive number!\n"
163  << std::endl;
164  }
165  }
166 
167 
168 
169 
170  // register products
172  produces<GlobalAlgBlkBxCollection>();
173  //blwEXT produces<GlobalExtBlkBxCollection>();
174  }
175 
176 
178  produces<GlobalObjectMapRecord>();
179  }
180 
181 
182  // create new uGt Board
183  m_uGtBrd = std::make_unique<GlobalBoard>();
184  m_uGtBrd->setVerbosity(m_verbosity);
185 
186  // initialize cached IDs
187 
188  //
189  m_l1GtParCacheID = 0ULL;
190  m_l1GtMenuCacheID = 0ULL;
191 
194 
195  m_nrL1Mu = 0;
196  m_nrL1EG = 0;
197  m_nrL1Tau = 0;
198 
199  m_nrL1Jet = 0;
200 
201 
202 
205 
206  //
207  m_l1GtParCacheID = 0ULL;
208 
209  m_totalBxInEvent = 0;
210 
212  m_bstLengthBytes = 0;
213 
214  //
215  m_l1GtBMCacheID = 0ULL;
216 
217  //
218  m_l1GtPfAlgoCacheID = 0ULL;
219 
220  m_l1GtTmAlgoCacheID = 0ULL;
221 
223 
224 
225  // Set default, initial, dummy prescale factor table
226  std::vector<std::vector<int> > temp_prescaleTable;
227 
228  temp_prescaleTable.push_back(std::vector<int>());
229  m_initialPrescaleFactorsAlgoTrig = temp_prescaleTable;
230 }
231 
232 // destructor
234 {
235 }
236 
237 // member functions
238 
239 // method called to produce the data
241 {
242 
243 
244 
245 
246 
247  // process event iEvent
248  // get / update the stable parameters from the EventSetup
249  // local cache & check on cacheIdentifier
250 
251  unsigned long long l1GtParCacheID =
252  evSetup.get<L1TGlobalParametersRcd>().cacheIdentifier();
253 
254  if (m_l1GtParCacheID != l1GtParCacheID) {
255 
257  evSetup.get< L1TGlobalParametersRcd >().get( l1GtStablePar );
258  m_l1GtStablePar = l1GtStablePar.product();
259  const GlobalParamsHelper * data = GlobalParamsHelper::readFromEventSetup(m_l1GtStablePar);
260 
261  // number of bx
263 
264  // number of physics triggers
266 
267  // number of objects of each type
268  m_nrL1Mu = data->numberL1Mu();
269 
270  // EG
271  m_nrL1EG = data->numberL1EG();
272 
273  // jets
274  m_nrL1Jet = data->numberL1Jet();
275 
276  // taus
277  m_nrL1Tau= data->numberL1Tau();
278 
280  int minL1DataBxInEvent = (m_L1DataBxInEvent + 1)/2 - m_L1DataBxInEvent;
281  int maxL1DataBxInEvent = (m_L1DataBxInEvent + 1)/2 - 1;
282 
283  // Initialize Board
284  m_uGtBrd->init(m_numberPhysTriggers, m_nrL1Mu, m_nrL1EG, m_nrL1Tau, m_nrL1Jet, minL1DataBxInEvent, maxL1DataBxInEvent );
285 
286  //
287  m_l1GtParCacheID = l1GtParCacheID;
288 
289  }
290 
291  if (m_emulateBxInEvent < 0) {
293  }
294 
296  int minEmulBxInEvent = (m_emulateBxInEvent + 1)/2 - m_emulateBxInEvent;
297  int maxEmulBxInEvent = (m_emulateBxInEvent + 1)/2 - 1;
298 
299  // get / update the trigger menu from the EventSetup
300  // local cache & check on cacheIdentifier
301  unsigned long long l1GtMenuCacheID = evSetup.get<L1TUtmTriggerMenuRcd>().cacheIdentifier();
302 
303  if (m_l1GtMenuCacheID != l1GtMenuCacheID) {
304  const GlobalParamsHelper * data = GlobalParamsHelper::readFromEventSetup(m_l1GtStablePar);
305 
307  evSetup.get< L1TUtmTriggerMenuRcd>().get(l1GtMenu) ;
308  const L1TUtmTriggerMenu* utml1GtMenu = l1GtMenu.product();
309 
310  // Instantiate Parser
311  TriggerMenuParser gtParser = TriggerMenuParser();
312 
313  gtParser.setGtNumberConditionChips(data->numberChips());
314  gtParser.setGtPinsOnConditionChip(data->pinsOnChip());
315  gtParser.setGtOrderConditionChip(data->orderOfChip());
317 
318  //Parse menu into emulator classes
319  gtParser.parseCondFormats(utml1GtMenu);
320 
321  // transfer the condition map and algorithm map from parser to L1uGtTriggerMenu
322  m_l1GtMenu = std::make_unique<TriggerMenu>(gtParser.gtTriggerMenuName(), data->numberChips(),
323  gtParser.vecMuonTemplate(),
324  gtParser.vecCaloTemplate(),
325  gtParser.vecEnergySumTemplate(),
326  gtParser.vecExternalTemplate(),
327  gtParser.vecCorrelationTemplate(),
328  gtParser.corMuonTemplate(),
329  gtParser.corCaloTemplate(),
330  gtParser.corEnergySumTemplate()) ;
331 
332 
333  m_l1GtMenu->setGtTriggerMenuInterface(gtParser.gtTriggerMenuInterface());
334  m_l1GtMenu->setGtTriggerMenuImplementation(gtParser.gtTriggerMenuImplementation());
335  m_l1GtMenu->setGtScaleDbKey(gtParser.gtScaleDbKey());
336  m_l1GtMenu->setGtScales(gtParser.gtScales());
337  m_l1GtMenu->setGtTriggerMenuUUID(gtParser.gtTriggerMenuUUID());
338 
339  m_l1GtMenu->setGtAlgorithmMap(gtParser.gtAlgorithmMap());
340  m_l1GtMenu->setGtAlgorithmAliasMap(gtParser.gtAlgorithmAliasMap());
341 
342  m_l1GtMenu->buildGtConditionMap();
343 
344  int printV = 2;
345  if(m_printL1Menu) m_l1GtMenu->print(std::cout, printV);
346 
347  m_l1GtMenuCacheID = l1GtMenuCacheID;
348  }
349 
350 
351 
352 
353 
354  // get / update the board maps from the EventSetup
355  // local cache & check on cacheIdentifier
356 
357 /* *** Drop L1GtBoard Maps for now
358  typedef std::vector<L1GtBoard>::const_iterator CItBoardMaps;
359 
360  unsigned long long l1GtBMCacheID = evSetup.get<L1GtBoardMapsRcd>().cacheIdentifier();
361 */
362 
363 /* ** Drop board mapping for now
364  if (m_l1GtBMCacheID != l1GtBMCacheID) {
365 
366  edm::ESHandle< L1GtBoardMaps > l1GtBM;
367  evSetup.get< L1GtBoardMapsRcd >().get( l1GtBM );
368  m_l1GtBM = l1GtBM.product();
369 
370  m_l1GtBMCacheID = l1GtBMCacheID;
371 
372  }
373 
374 
375  // TODO need changes in CondFormats to cache the maps
376  const std::vector<L1GtBoard>& boardMaps = m_l1GtBM->gtBoardMaps();
377 */
378  // get / update the prescale factors from the EventSetup
379  // local cache & check on cacheIdentifier
380 
381  // Only get event record if not unprescaled and not unmasked
383  unsigned long long l1GtPfAlgoCacheID = evSetup.get<L1TGlobalPrescalesVetosRcd>().cacheIdentifier();
384 
385  if (m_l1GtPfAlgoCacheID != l1GtPfAlgoCacheID) {
386 
387  edm::ESHandle< L1TGlobalPrescalesVetos > l1GtPrescalesVetoes;
388  evSetup.get< L1TGlobalPrescalesVetosRcd >().get( l1GtPrescalesVetoes );
389  const L1TGlobalPrescalesVetos * es = l1GtPrescalesVetoes.product();
390  m_l1GtPrescalesVetoes = PrescalesVetosHelper::readFromEventSetup(es);
391 
394 
395  m_l1GtPfAlgoCacheID = l1GtPfAlgoCacheID;
396  }
397  }
398  else{
399  // Set Prescale factors to initial dummy values
400  m_prescaleSet = 0;
404  }
405 
406 
407  // get / update the trigger mask from the EventSetup
408  // local cache & check on cacheIdentifier
409 
410 
411 /* **** For now Leave out Masks *****
412  unsigned long long l1GtTmAlgoCacheID =
413  evSetup.get<L1GtTriggerMaskAlgoTrigRcd>().cacheIdentifier();
414 
415  if (m_l1GtTmAlgoCacheID != l1GtTmAlgoCacheID) {
416 
417  edm::ESHandle< L1GtTriggerMask > l1GtTmAlgo;
418  evSetup.get< L1GtTriggerMaskAlgoTrigRcd >().get( l1GtTmAlgo );
419  m_l1GtTmAlgo = l1GtTmAlgo.product();
420 
421  m_triggerMaskAlgoTrig = m_l1GtTmAlgo->gtTriggerMask();
422 
423  m_l1GtTmAlgoCacheID = l1GtTmAlgoCacheID;
424 
425  }
426 */
427 
428 
429 
430 /* **** For now Leave out Veto Masks *****
431  unsigned long long l1GtTmVetoAlgoCacheID =
432  evSetup.get<L1GtTriggerMaskVetoAlgoTrigRcd>().cacheIdentifier();
433 
434  if (m_l1GtTmVetoAlgoCacheID != l1GtTmVetoAlgoCacheID) {
435 
436  edm::ESHandle< L1GtTriggerMask > l1GtTmVetoAlgo;
437  evSetup.get< L1GtTriggerMaskVetoAlgoTrigRcd >().get( l1GtTmVetoAlgo );
438  m_l1GtTmVetoAlgo = l1GtTmVetoAlgo.product();
439 
440  m_triggerMaskVetoAlgoTrig = m_l1GtTmVetoAlgo->gtTriggerMask();
441 
442  m_l1GtTmVetoAlgoCacheID = l1GtTmVetoAlgoCacheID;
443 
444  }
445 */
446 
447 
448 
449 // ****** Board Maps Need to be redone....hard code for now ******
450  // loop over blocks in the GT DAQ record receiving data, count them if they are active
451  // all board type are defined in CondFormats/L1TObjects/L1GtFwd
452  // &
453  // set the active flag for each object type received from GMT and GCT
454  // all objects in the GT system
455 
456  //
457  bool receiveMu = true;
458  bool receiveEG = true;
459  bool receiveTau = true;
460  bool receiveJet = true;
461  bool receiveEtSums = true;
462  bool receiveExt = true;
463 
464 /* *** Boards need redefining *****
465  for (CItBoardMaps
466  itBoard = boardMaps.begin();
467  itBoard != boardMaps.end(); ++itBoard) {
468 
469  int iPosition = itBoard->gtPositionDaqRecord();
470  if (iPosition > 0) {
471 
472  int iActiveBit = itBoard->gtBitDaqActiveBoards();
473  bool activeBoard = false;
474 
475  if (iActiveBit >= 0) {
476  activeBoard = m_activeBoardsGtDaq & (1 << iActiveBit);
477  }
478 
479  // use board if: in the record, but not in ActiveBoardsMap (iActiveBit < 0)
480  // in the record and ActiveBoardsMap, and active
481  if ((iActiveBit < 0) || activeBoard) {
482 
483 // ****** Decide what board manipulation (if any we want here)
484 
485  }
486  }
487 
488  }
489 */
490 
491 
492 
493  // Produce the Output Records for the GT
494  std::unique_ptr<GlobalAlgBlkBxCollection> uGtAlgRecord( new GlobalAlgBlkBxCollection(0,minEmulBxInEvent,maxEmulBxInEvent));
495 
496  // * produce the GlobalObjectMapRecord
497  std::unique_ptr<GlobalObjectMapRecord> gtObjectMapRecord(
498  new GlobalObjectMapRecord() );
499 
500 
501  // fill the boards not depending on the BxInEvent in the L1 GT DAQ record
502  // GMT, PSB and FDL depend on BxInEvent
503 
504  // fill in emulator the same bunch crossing (12 bits - hardwired number of bits...)
505  // and the same local bunch crossing for all boards
506  int bxCross = iEvent.bunchCrossing();
507  boost::uint16_t bxCrossHw = 0;
508  if ((bxCross & 0xFFF) == bxCross) {
509  bxCrossHw = static_cast<boost::uint16_t> (bxCross);
510  }
511  else {
512  bxCrossHw = 0; // Bx number too large, set to 0!
513  if (m_verbosity) {
514 
515  LogDebug("L1TGlobalProducer")
516  << "\nBunch cross number [hex] = " << std::hex << bxCross
517  << "\n larger than 12 bits. Set to 0! \n" << std::dec
518  << std::endl;
519  }
520  }
521  LogDebug("L1TGlobalProducer") << "HW BxCross " << bxCrossHw << std::endl;
522 
523  // get the prescale factor from the configuration for now
524  // prescale set index counts from zero
525  unsigned int pfAlgoSetIndex = m_prescaleSet;
526 
527  auto max = (*m_prescaleFactorsAlgoTrig).size()-1;
528  if (pfAlgoSetIndex > max) {
529  edm::LogWarning("L1TGlobalProducer")
530  << "\nAttempting to access prescale algo set: " << m_prescaleSet
531  << "\nNumber of prescale algo sets available: 0.." << max
532  << "Setting former to latter."
533  << std::endl;
534  pfAlgoSetIndex = max;
535  }
536 
537  const std::vector<int>& prescaleFactorsAlgoTrig = (*m_prescaleFactorsAlgoTrig).at(pfAlgoSetIndex);
538 
539  // For now, set masks according to prescale value of 0
541  for( unsigned int iAlgo=0; iAlgo < prescaleFactorsAlgoTrig.size(); iAlgo++ ){
542  unsigned int value = prescaleFactorsAlgoTrig[iAlgo];
543  value = ( value==0 ) ? 0 : 1;
544  m_initialTriggerMaskAlgoTrig.push_back(value);
545  }
547 
548  const std::vector<unsigned int>& triggerMaskAlgoTrig = *m_triggerMaskAlgoTrig;
549  const std::vector<int>& triggerMaskVetoAlgoTrig = *m_triggerMaskVetoAlgoTrig;
550 
551  LogDebug("L1TGlobalProducer") << "Size of prescale vector" << prescaleFactorsAlgoTrig.size() << std::endl;
552 
553 
554 // Load the calorimeter input onto the uGt Board
555  m_uGtBrd->receiveCaloObjectData(iEvent,
560  receiveEG, m_nrL1EG,
561  receiveTau, m_nrL1Tau,
562  receiveJet, m_nrL1Jet,
563  receiveEtSums );
564 
565  m_uGtBrd->receiveMuonObjectData(iEvent, m_muInputToken,
566  receiveMu, m_nrL1Mu );
567 
568  m_uGtBrd->receiveExternalData(iEvent, m_extInputToken,
569  receiveExt );
570 
571 
572  // loop over BxInEvent
573  for (int iBxInEvent = minEmulBxInEvent; iBxInEvent <= maxEmulBxInEvent;
574  ++iBxInEvent) {
575 
576  // run GTL
577  LogDebug("L1TGlobalProducer")
578  << "\nL1TGlobalProducer : running GTL for bx = " << iBxInEvent << "\n"
579  << std::endl;
580 
581 
582 // Run the GTL for this BX
583  m_uGtBrd->runGTL(iEvent, evSetup, m_l1GtMenu.get(),
584  m_produceL1GtObjectMapRecord, iBxInEvent, gtObjectMapRecord,
586  m_nrL1Mu,
587  m_nrL1EG,
588  m_nrL1Tau,
589  m_nrL1Jet
590  );
591 
592 
593  // run FDL
594  LogDebug("L1TGlobalProducer")
595  << "\nL1TGlobalProducer : running FDL for bx = " << iBxInEvent << "\n"
596  << std::endl;
597 
598 
599 // Run the Final Decision Logic for this BX
600  m_uGtBrd->runFDL(iEvent,
601  iBxInEvent,
603  m_numberPhysTriggers,
604  prescaleFactorsAlgoTrig,
605  triggerMaskAlgoTrig,
606  triggerMaskVetoAlgoTrig,
609  );
610 
611 
612 
613 // Fill in the DAQ Records
615  m_uGtBrd->fillAlgRecord(iBxInEvent, uGtAlgRecord, m_prescaleSet, m_l1GtMenu->gtTriggerMenuUUID(), m_l1GtMenu->gtTriggerMenuImplementation());
616  }
617 
618 
619 
620  } //End Loop over Bx
621 
622 
623  // Add explicit reset of Board
624  m_uGtBrd->reset();
625 
626 
627 
628  if ( m_verbosity && m_isDebugEnabled ) {
629 
630  std::ostringstream myCoutStream;
631 
632  for(int bx=minEmulBxInEvent; bx<maxEmulBxInEvent; bx++) {
633 
635  (uGtAlgRecord->at(bx,0)).print(myCoutStream);
636 
637  }
638 
639  LogTrace("L1TGlobalProducer")
640  << "\n The following L1 GT DAQ readout record was produced:\n"
641  << myCoutStream.str() << "\n"
642  << std::endl;
643 
644  myCoutStream.str("");
645  myCoutStream.clear();
646 
647  const std::vector<GlobalObjectMap> objMapVec =
648  gtObjectMapRecord->gtObjectMap();
649 
650  for (std::vector<GlobalObjectMap>::const_iterator
651  it = objMapVec.begin(); it != objMapVec.end(); ++it) {
652 
653  (*it).print(myCoutStream);
654 
655  }
656 
657 
658  LogDebug("L1TGlobalProducer")
659  << "Test gtObjectMapRecord in L1TGlobalProducer \n\n" << myCoutStream.str() << "\n\n"
660  << std::endl;
661 
662  myCoutStream.str("");
663  myCoutStream.clear();
664  }
665 
666 
667 
668 
669  // register products
671  iEvent.put(std::move(uGtAlgRecord));
672  }
673 
674 
676  iEvent.put(std::move(gtObjectMapRecord));
677  }
678 
679 
680 }
681 
682 //define this as a plug-in
#define LogDebug(id)
bool isDebugEnabled()
edm::InputTag m_jetInputTag
unsigned int m_numberDaqPartitions
unsigned long long m_l1GtParCacheID
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:122
unsigned int numberL1Jet() const
get / set the number of L1 jets received by GT
unsigned long long m_l1GtTmVetoAlgoCacheID
const std::vector< std::vector< int > > & prescaleTable() const
const std::vector< std::vector< EnergySumTemplate > > & vecEnergySumTemplate() const
void setGtOrderConditionChip(const std::vector< int > &)
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
int m_verbosity
verbosity level
const AlgorithmMap & gtAlgorithmAliasMap() const
get / set the algorithm map (by alias)
unsigned int numberL1EG() const
get / set the number of L1 e/gamma objects received by GT
uint16_t m_activeBoardsGtDaq
active boards in L1 GT DAQ record
edm::InputTag m_egInputTag
input tag for calorimeter collections from GCT
edm::EDGetTokenT< BXVector< l1t::Tau > > m_tauInputToken
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
bool m_produceL1GtObjectMapRecord
logical flag to produce the L1 GT object map record
int m_totalBxInEvent
total number of Bx&#39;s in the event coming from EventSetup
std::string print(const Track &, edm::Verbosity=edm::Concise)
Track print utility.
Definition: print.cc:10
unsigned int numberPhysTriggers() const
get / set the number of physics trigger algorithms
int bunchCrossing() const
Definition: EventBase.h:64
const std::vector< std::vector< ExternalTemplate > > & vecExternalTemplate() const
unsigned int m_numberPhysTriggers
const L1TGlobalParameters * m_l1GtStablePar
cached stuff
edm::EDGetTokenT< BXVector< GlobalExtBlk > > m_extInputToken
delete x;
Definition: CaloConfig.h:22
BXVector< GlobalAlgBlk > GlobalAlgBlkBxCollection
Definition: GlobalAlgBlk.h:31
unsigned long long m_l1GtTmAlgoCacheID
std::vector< unsigned int > m_initialTriggerMaskAlgoTrig
const std::vector< int > * m_triggerMaskVetoAlgoTrig
unsigned int m_alternativeNrBxBoardDaq
edm::InputTag m_sumInputTag
edm::InputTag m_muInputTag
input tag for muon collection from GMT
edm::InputTag m_extInputTag
input tag for external conditions
int iEvent
Definition: GenABIO.cc:230
void setGtPinsOnConditionChip(const unsigned int &)
unsigned long long m_l1GtMenuCacheID
edm::InputTag m_tauInputTag
const std::vector< int > & orderOfChip() const
const std::vector< int > & triggerMaskVeto() const
void parseCondFormats(const L1TUtmTriggerMenu *utmMenu)
std::unique_ptr< TriggerMenu > m_l1GtMenu
std::vector< std::vector< int > > m_initialPrescaleFactorsAlgoTrig
std::vector< int > m_initialTriggerMaskVetoAlgoTrig
const std::string & gtTriggerMenuName() const
const std::vector< std::vector< CaloTemplate > > & corCaloTemplate() const
bool m_produceL1GtDaqRecord
logical flag to produce the L1 GT DAQ readout record
edm::EDGetTokenT< BXVector< l1t::Muon > > m_muInputToken
Definition: value.py:1
const std::vector< std::vector< MuonTemplate > > & corMuonTemplate() const
unsigned int numberL1Tau() const
get / set the number of L1 tau received by GT
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const std::vector< std::vector< MuonTemplate > > & vecMuonTemplate() const
get / set the vectors containing the conditions
const std::vector< std::vector< EnergySumTemplate > > & corEnergySumTemplate() const
#define LogTrace(id)
unsigned int m_prescaleSet
prescale set used
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const std::vector< std::vector< CorrelationTemplate > > & vecCorrelationTemplate() const
edm::EDGetTokenT< BXVector< l1t::EtSum > > m_sumInputToken
int m_L1DataBxInEvent
Bx expected in Data coming to GT.
L1TGlobalProducer(const edm::ParameterSet &)
unsigned long long m_l1GtBMCacheID
const GlobalScales & gtScales() const
menu associated scales
const int gtTriggerMenuUUID() const
const AlgorithmMap & gtAlgorithmMap() const
get / set the algorithm map (by name)
void setGtNumberConditionChips(const unsigned int &)
const T & get() const
Definition: EventSetup.h:56
void add(std::string const &label, ParameterSetDescription const &psetDescription)
unsigned int m_bstLengthBytes
length of BST record (in bytes) from event setup
HLT enums.
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
int totalBxInEvent() const
get / set the number of bx in hardware
const l1t::PrescalesVetosHelper * m_l1GtPrescalesVetoes
prescale factors
const std::vector< std::vector< CaloTemplate > > & vecCaloTemplate() const
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
unsigned long long m_l1GtPfAlgoCacheID
const std::string & gtTriggerMenuInterface() const
get / set the trigger menu names
std::unique_ptr< l1t::GlobalBoard > m_uGtBrd
unsigned int numberL1Mu() const
get / set the number of L1 muons received by GT
T const * product() const
Definition: ESHandle.h:86
const std::string & gtScaleDbKey() const
menu associated scale key
unsigned int pinsOnChip() const
get / set the number of pins on the GTL condition chips
def move(src, dest)
Definition: eostools.py:510
const unsigned long gtTriggerMenuImplementation() const
edm::EDGetTokenT< BXVector< l1t::Jet > > m_jetInputToken
unsigned int numberChips() const
get / set the number of condition chips in GTL
edm::EDGetTokenT< BXVector< l1t::EGamma > > m_egInputToken
void setGtNumberPhysTriggers(const unsigned int &)
virtual void produce(edm::Event &, const edm::EventSetup &) override