CMS 3D CMS Logo

L1TGT.cc
Go to the documentation of this file.
1 
14 
17 
19  : gtSource_L1GT_(consumes<L1GlobalTriggerReadoutRecord>(ps.getParameter<edm::InputTag>("gtSource"))),
20  gtSource_L1MuGMT_(consumes<L1MuGMTReadoutCollection>(ps.getParameter<edm::InputTag>("gtSource"))),
21  gtEvmSource_(consumes<L1GlobalTriggerEvmReadoutRecord>(ps.getParameter<edm::InputTag>("gtEvmSource"))),
22  m_runInEventLoop(ps.getUntrackedParameter<bool>("runInEventLoop", false)),
23  m_runInEndLumi(ps.getUntrackedParameter<bool>("runInEndLumi", false)),
24  verbose_(ps.getUntrackedParameter<bool>("verbose", false)),
25  m_nrEvJob(0),
26  m_nrEvRun(0),
27  preGps_(0ULL),
28  preOrb_(0ULL) {
29  m_histFolder = ps.getUntrackedParameter<std::string>("HistFolder", "L1T/L1TGT");
30 }
31 
33  // empty
34 }
35 
36 void L1TGT::bookHistograms(DQMStore::IBooker& ibooker, edm::Run const&, edm::EventSetup const& evSetup) {
38 
39  // book histograms
40  const int TotalNrBinsLs = 1000;
41  const double totalNrBinsLs = static_cast<double>(TotalNrBinsLs);
42 
44 
45  algo_bits = ibooker.book1D("algo_bits", "GT algorithm trigger bits", 128, -0.5, 127.5);
46  algo_bits->setAxisTitle("Algorithm trigger bits", 1);
47 
49  ibooker.book2D("algo_bits_corr", "GT algorithm trigger bit correlation", 128, -0.5, 127.5, 128, -0.5, 127.5);
50  algo_bits_corr->setAxisTitle("Algorithm trigger bits", 1);
51  algo_bits_corr->setAxisTitle("Algorithm trigger bits", 2);
52 
53  tt_bits = ibooker.book1D("tt_bits", "GT technical trigger bits", 64, -0.5, 63.5);
54  tt_bits->setAxisTitle("Technical trigger bits", 1);
55 
56  tt_bits_corr = ibooker.book2D("tt_bits_corr", "GT technical trigger bit correlation", 64, -0.5, 63.5, 64, -0.5, 63.5);
57  tt_bits_corr->setAxisTitle("Technical trigger bits", 1);
58  tt_bits_corr->setAxisTitle("Technical trigger bits", 2);
59 
60  algo_tt_bits_corr = ibooker.book2D(
61  "algo_tt_bits_corr", "GT algorithm - technical trigger bit correlation", 128, -0.5, 127.5, 64, -0.5, 63.5);
62  algo_tt_bits_corr->setAxisTitle("Algorithm trigger bits", 1);
63  algo_tt_bits_corr->setAxisTitle("Technical trigger bits", 2);
64 
65  algo_bits_lumi = ibooker.book2D(
66  "algo_bits_lumi", "GT algorithm trigger bit rate per LS", TotalNrBinsLs, 0., totalNrBinsLs, 128, -0.5, 127.5);
67  algo_bits_lumi->setAxisTitle("Luminosity segment", 1);
68  algo_bits_lumi->setAxisTitle("Algorithm trigger bits", 2);
69 
70  tt_bits_lumi = ibooker.book2D(
71  "tt_bits_lumi", "GT technical trigger bit rate per LS", TotalNrBinsLs, 0., totalNrBinsLs, 64, -0.5, 63.5);
72  tt_bits_lumi->setAxisTitle("Luminosity segment", 1);
73  tt_bits_lumi->setAxisTitle("Technical trigger bits", 2);
74 
75  event_type = ibooker.book1D("event_type", "GT event type", 10, -0.5, 9.5);
76  event_type->setAxisTitle("Event type", 1);
77  event_type->setBinLabel(2, "Physics", 1);
78  event_type->setBinLabel(3, "Calibration", 1);
79  event_type->setBinLabel(4, "Random", 1);
80  event_type->setBinLabel(6, "Traced", 1);
81  event_type->setBinLabel(7, "Test", 1);
82  event_type->setBinLabel(8, "Error", 1);
83 
84  event_number = ibooker.book1D("event_number", "GT event number (from last resync)", 100, 0., 50000.);
85  event_number->setAxisTitle("Event number", 1);
86 
87  event_lumi = ibooker.bookProfile(
88  "event_lumi", "GT event number (from last resync) vs LS", TotalNrBinsLs, 0., totalNrBinsLs, 100, -0.1, 1.e15, "s");
89  event_lumi->setAxisTitle("Luminosity segment", 1);
90  event_lumi->setAxisTitle("Event number", 2);
91 
92  trigger_number = ibooker.book1D("trigger_number", "GT trigger number (from start run)", 100, 0., 50000.);
93  trigger_number->setAxisTitle("Trigger number", 1);
94 
95  trigger_lumi = ibooker.bookProfile("trigger_lumi",
96  "GT trigger number (from start run) vs LS",
97  TotalNrBinsLs,
98  0.,
99  totalNrBinsLs,
100  100,
101  -0.1,
102  1.e15,
103  "s");
104  trigger_lumi->setAxisTitle("Luminosity segment", 1);
105  trigger_lumi->setAxisTitle("Trigger number", 2);
106 
108  "evnum_trignum_lumi", "GT event/trigger number ratio vs LS", TotalNrBinsLs, 0., totalNrBinsLs, 100, -0.1, 2., "s");
109  evnum_trignum_lumi->setAxisTitle("Luminosity segment", 1);
110  evnum_trignum_lumi->setAxisTitle("Event/trigger number ratio", 2);
111 
112  orbit_lumi = ibooker.bookProfile(
113  "orbit_lumi", "GT orbit number vs LS", TotalNrBinsLs, 0., totalNrBinsLs, 100, -0.1, 1.e15, "s");
114  orbit_lumi->setAxisTitle("Luminosity segment", 1);
115  orbit_lumi->setAxisTitle("Orbit number", 2);
116 
117  setupversion_lumi = ibooker.bookProfile(
118  "setupversion_lumi", "GT setup version vs LS", TotalNrBinsLs, 0., totalNrBinsLs, 100, -0.1, 1.e10, "i");
119  setupversion_lumi->setAxisTitle("Luminosity segment", 1);
120  setupversion_lumi->setAxisTitle("Setup version", 2);
121 
122  gtfe_bx = ibooker.book1D("gtfe_bx", "GTFE Bx number", 3600, 0., 3600.);
123  gtfe_bx->setAxisTitle("GTFE BX number", 1);
124 
125  dbx_module =
126  ibooker.bookProfile("dbx_module", "delta Bx of GT modules wrt GTFE", 20, 0., 20., 100, -4000., 4000., "i");
127  dbx_module->setAxisTitle("GT crate module", 1);
128  dbx_module->setAxisTitle("Module Bx - GTFE Bx", 2);
129  dbx_module->setBinLabel(1, "GTFEevm", 1);
130  dbx_module->setBinLabel(2, "TCS", 1);
131  dbx_module->setBinLabel(3, "FDL", 1);
132  dbx_module->setBinLabel(4, "FDLloc", 1);
133  dbx_module->setBinLabel(5, "PSB9", 1);
134  dbx_module->setBinLabel(6, "PSB9loc", 1);
135  dbx_module->setBinLabel(7, "PSB13", 1);
136  dbx_module->setBinLabel(8, "PSB13loc", 1);
137  dbx_module->setBinLabel(9, "PSB14", 1);
138  dbx_module->setBinLabel(10, "PSB14loc", 1);
139  dbx_module->setBinLabel(11, "PSB15", 1);
140  dbx_module->setBinLabel(12, "PSB15loc", 1);
141  dbx_module->setBinLabel(13, "PSB19", 1);
142  dbx_module->setBinLabel(14, "PSB19loc", 1);
143  dbx_module->setBinLabel(15, "PSB20", 1);
144  dbx_module->setBinLabel(16, "PSB20loc", 1);
145  dbx_module->setBinLabel(17, "PSB21", 1);
146  dbx_module->setBinLabel(18, "PSB21loc", 1);
147  dbx_module->setBinLabel(19, "GMT", 1);
148 
150  ibooker.book2D("BST_MasterStatus", "BST master status over LS", TotalNrBinsLs, 0., totalNrBinsLs, 6, -1., 5.);
151  BST_MasterStatus->setAxisTitle("Luminosity segment", 1);
152  BST_MasterStatus->setAxisTitle("BST master status", 2);
153  BST_MasterStatus->setBinLabel(2, "Master Beam 1", 2);
154  BST_MasterStatus->setBinLabel(3, "Master Beam 2", 2);
155 
157  ibooker.book2D("BST_turnCountNumber", "BST turn count over LS", TotalNrBinsLs, 0., totalNrBinsLs, 250, 0., 4.3e9);
158  BST_turnCountNumber->setAxisTitle("Luminosity segment", 1);
159  BST_turnCountNumber->setAxisTitle("BST turn count number", 2);
160 
161  BST_lhcFillNumber = ibooker.book1D("BST_lhcFillNumber", "BST LHC fill number % 1000", 1000, 0., 1000.);
162  BST_lhcFillNumber->setAxisTitle("BST LHC fill number modulo 1000");
163 
164  BST_beamMode = ibooker.book2D("BST_beamMode", "BST beam mode over LS", TotalNrBinsLs, 0., totalNrBinsLs, 25, 1., 26.);
165  BST_beamMode->setAxisTitle("Luminosity segment", 1);
166  BST_beamMode->setAxisTitle("Mode", 2);
167  BST_beamMode->setBinLabel(1, "No mode", 2);
168  BST_beamMode->setBinLabel(2, "Setup", 2);
169  BST_beamMode->setBinLabel(3, "Inj pilot", 2);
170  BST_beamMode->setBinLabel(4, "Inj intr", 2);
171  BST_beamMode->setBinLabel(5, "Inj nomn", 2);
172  BST_beamMode->setBinLabel(6, "Pre ramp", 2);
173  BST_beamMode->setBinLabel(7, "Ramp", 2);
174  BST_beamMode->setBinLabel(8, "Flat top", 2);
175  BST_beamMode->setBinLabel(9, "Squeeze", 2);
176  BST_beamMode->setBinLabel(10, "Adjust", 2);
177  BST_beamMode->setBinLabel(11, "Stable", 2);
178  BST_beamMode->setBinLabel(12, "Unstable", 2);
179  BST_beamMode->setBinLabel(13, "Beam dump", 2);
180  BST_beamMode->setBinLabel(14, "Ramp down", 2);
181  BST_beamMode->setBinLabel(15, "Recovery", 2);
182  BST_beamMode->setBinLabel(16, "Inj dump", 2);
183  BST_beamMode->setBinLabel(17, "Circ dump", 2);
184  BST_beamMode->setBinLabel(18, "Abort", 2);
185  BST_beamMode->setBinLabel(19, "Cycling", 2);
186  BST_beamMode->setBinLabel(20, "Warn beam dump", 2);
187  BST_beamMode->setBinLabel(21, "No beam", 2);
188 
190  ibooker.book2D("BST_beamMomentum", "BST beam momentum", TotalNrBinsLs, 0., totalNrBinsLs, 100, 0., 7200.);
191  BST_beamMomentum->setAxisTitle("Luminosity segment", 1);
192  BST_beamMomentum->setAxisTitle("Beam momentum", 2);
193 
194  gpsfreq = ibooker.book1D("gpsfreq", "Clock frequency measured by GPS", 1000, 39.95, 40.2);
195  gpsfreq->setAxisTitle("CMS clock frequency (MHz)");
196 
197  gpsfreqwide = ibooker.book1D("gpsfreqwide", "Clock frequency measured by GPS", 1000, -2., 200.);
198  gpsfreqwide->setAxisTitle("CMS clock frequency (MHz)");
199 
200  gpsfreqlum = ibooker.book2D(
201  "gpsfreqlum", "Clock frequency measured by GPS", TotalNrBinsLs, 0., totalNrBinsLs, 100, 39.95, 40.2);
202  gpsfreqlum->setAxisTitle("Luminosity segment", 1);
203  gpsfreqlum->setAxisTitle("CMS clock frequency (MHz)", 2);
204 
206  ibooker.book2D("BST_intensityBeam1", "Intensity beam 1", TotalNrBinsLs, 0., totalNrBinsLs, 1000, 0., 5000.);
207  BST_intensityBeam1->setAxisTitle("Luminosity segment", 1);
208  BST_intensityBeam1->setAxisTitle("Beam intensity", 2);
209 
211  ibooker.book2D("BST_intensityBeam2", "Intensity beam 2", TotalNrBinsLs, 0., totalNrBinsLs, 1000, 0., 5000.);
212  BST_intensityBeam2->setAxisTitle("Luminosity segment", 1);
213  BST_intensityBeam2->setAxisTitle("Beam intensity", 2);
214 
215  // prescale factor index monitoring
216 
218  "L1PrescaleFactorSet", "Index of L1 prescale factor set", TotalNrBinsLs, 0., totalNrBinsLs, 25, 0., 25.);
219  m_monL1PrescaleFactorSet->setAxisTitle("Luminosity segment", 1);
220  m_monL1PrescaleFactorSet->setAxisTitle("L1 PF set index", 2);
222  ibooker.book1D("L1PfIndicesPerLs", "Number of prescale factor indices used per LS", 10, 0., 10.);
223  m_monL1PfIndicesPerLs->setAxisTitle("Number of PF indices used per LS", 1);
224  m_monL1PfIndicesPerLs->setAxisTitle("Entries", 2);
225 
226  // TCS vs FDL common quantity monitoring
227 
228  ibooker.setCurrentFolder(m_histFolder + "/TCSvsEvmFDL");
229 
230  // orbit number
231  m_monOrbitNrDiffTcsFdlEvm = ibooker.book1D("OrbitNrDiffTcsFdlEvm",
232  "Orbit number difference (TCS - EVM_FDL)",
233  2 * MaxOrbitNrDiffTcsFdlEvm + 1,
234  static_cast<float>(-(MaxOrbitNrDiffTcsFdlEvm + 1)),
235  static_cast<float>(MaxOrbitNrDiffTcsFdlEvm + 1));
236  m_monOrbitNrDiffTcsFdlEvm->setAxisTitle("Orbit number difference", 1);
237  m_monOrbitNrDiffTcsFdlEvm->setAxisTitle("Entries/run", 2);
238  m_monLsNrDiffTcsFdlEvm = ibooker.book1D("LsNrDiffTcsFdlEvm",
239  "LS number difference (TCS - EVM_FDL)",
240  2 * MaxLsNrDiffTcsFdlEvm + 1,
241  static_cast<float>(-(MaxLsNrDiffTcsFdlEvm + 1)),
242  static_cast<float>(MaxLsNrDiffTcsFdlEvm + 1));
243  m_monLsNrDiffTcsFdlEvm->setAxisTitle("LS number difference", 1);
244  m_monLsNrDiffTcsFdlEvm->setAxisTitle("Entries/run", 2);
245 
246  // LS number
247  m_monOrbitNrDiffTcsFdlEvmLs = ibooker.book2D("OrbitNrDiffTcsFdlEvmLs",
248  "Orbit number difference (TCS - EVM_FDL)",
249  TotalNrBinsLs,
250  0.,
251  totalNrBinsLs,
252  2 * MaxOrbitNrDiffTcsFdlEvm + 1,
253  static_cast<float>(-(MaxOrbitNrDiffTcsFdlEvm + 1)),
254  static_cast<float>(MaxOrbitNrDiffTcsFdlEvm + 1));
255  m_monOrbitNrDiffTcsFdlEvmLs->setAxisTitle("Luminosity segment", 1);
256  m_monOrbitNrDiffTcsFdlEvmLs->setAxisTitle("Orbit number difference (TCS - EVM_FDL)", 2);
257 
258  m_monLsNrDiffTcsFdlEvmLs = ibooker.book2D("LsNrDiffTcsFdlEvmLs",
259  "LS number difference (TCS - EVM_FDL)",
260  TotalNrBinsLs,
261  0.,
262  totalNrBinsLs,
263  2 * MaxLsNrDiffTcsFdlEvm + 1,
264  static_cast<float>(-(MaxLsNrDiffTcsFdlEvm + 1)),
265  static_cast<float>(MaxLsNrDiffTcsFdlEvm + 1));
266  m_monLsNrDiffTcsFdlEvmLs->setAxisTitle("Luminosity segment", 1);
267  m_monLsNrDiffTcsFdlEvmLs->setAxisTitle("LS number difference (TCS - EVM_FDL)", 2);
268 
270  // clear bookkeeping for prescale factor change
271  m_pairLsNumberPfIndex.clear();
272 
273  ibooker.setCurrentFolder(m_histFolder + "/PlotTrigsBx");
274 
275  //--------book AlgoBits/TechBits vs Bx Histogram-----------
276 
278  evSetup.get<L1GtTriggerMenuRcd>().get(menuRcd);
279 
280  const L1GtTriggerMenu* menu = menuRcd.product();
281 
282  h_L1AlgoBX1 = ibooker.book2D("h_L1AlgoBX1", "L1 Algo Trigger BX (algo bit 0 to 31)", 32, -0.5, 31.5, 5, -2.5, 2.5);
283  h_L1AlgoBX2 = ibooker.book2D("h_L1AlgoBX2", "L1 Algo Trigger BX (algo bit 32 to 63)", 32, 31.5, 63.5, 5, -2.5, 2.5);
284  h_L1AlgoBX3 = ibooker.book2D("h_L1AlgoBX3", "L1 Algo Trigger BX (algo bit 64 to 95)", 32, 63.5, 95.5, 5, -2.5, 2.5);
285  h_L1AlgoBX4 = ibooker.book2D("h_L1AlgoBX4", "L1 Algo Trigger BX (algo bit 96 to 127)", 32, 95.5, 127.5, 5, -2.5, 2.5);
286  h_L1TechBX = ibooker.book2D("h_L1TechBX", "L1 Tech Trigger BX", 64, -0.5, 63.5, 5, -2.5, 2.5);
287 
288  for (CItAlgo algo = menu->gtAlgorithmMap().begin(); algo != menu->gtAlgorithmMap().end(); ++algo) {
289  int itrig = (algo->second).algoBitNumber();
290  //algoBitToName[itrig] = TString( (algo->second).algoName() );
291  //const char* trigName = (algo->second).algoName().c_str();
292  if (itrig < 32) {
293  //h_L1AlgoBX1->setBinLabel(itrig+1,trigName);
294  h_L1AlgoBX1->setBinLabel(itrig + 1, std::to_string(itrig));
295  h_L1AlgoBX1->setAxisTitle("Algorithm trigger bits", 1);
296  h_L1AlgoBX1->setAxisTitle("BX (0=L1A)", 2);
297  } else if (itrig < 64) {
298  //h_L1AlgoBX2->setBinLabel(itrig+1-32,trigName);
299  h_L1AlgoBX2->setBinLabel(itrig + 1 - 32, std::to_string(itrig));
300  h_L1AlgoBX2->setAxisTitle("Algorithm trigger bits", 1);
301  h_L1AlgoBX2->setAxisTitle("BX (0=L1A)", 2);
302  } else if (itrig < 96) {
303  //h_L1AlgoBX3->setBinLabel(itrig+1-64,trigName);
304  h_L1AlgoBX3->setBinLabel(itrig + 1 - 64, std::to_string(itrig));
305  h_L1AlgoBX3->setAxisTitle("Algorithm trigger bits", 1);
306  h_L1AlgoBX3->setAxisTitle("BX (0=L1A)", 2);
307  } else if (itrig < 128) {
308  //h_L1AlgoBX4->setBinLabel(itrig+1-96,trigName);
309  h_L1AlgoBX4->setBinLabel(itrig + 1 - 96, std::to_string(itrig));
310  h_L1AlgoBX4->setAxisTitle("Algorithm trigger bits", 1);
311  h_L1AlgoBX4->setAxisTitle("BX (0=L1A)", 2);
312  }
313  }
314 
315  // technical trigger bits
316  for (CItAlgo techTrig = menu->gtTechnicalTriggerMap().begin(); techTrig != menu->gtTechnicalTriggerMap().end();
317  ++techTrig) {
318  int itrig = (techTrig->second).algoBitNumber();
319  //techBitToName[itrig] = TString( (techTrig->second).algoName() );
320  //const char* trigName = (techTrig->second).algoName().c_str();
321  h_L1TechBX->setBinLabel(itrig + 1, std::to_string(itrig));
322  h_L1TechBX->setAxisTitle("Technical trigger bits", 1);
323  h_L1TechBX->setAxisTitle("BX (0=L1A)", 2);
324  }
325 }
326 
327 void L1TGT::dqmBeginRun(edm::Run const& iRrun, edm::EventSetup const& evSetup) { m_nrEvRun = 0; }
328 
329 //
330 void L1TGT::analyze(const edm::Event& iEvent, const edm::EventSetup& evSetup) {
331  m_nrEvJob++;
332 
333  if (verbose_) {
334  edm::LogInfo("L1TGT") << "L1TGT: analyze...." << std::endl;
335  }
336 
337  // initialize Bx, orbit number, luminosity segment number to invalid value
338  int tcsBx = -1;
339  int gtfeEvmBx = -1;
340 
341  long long int orbitTcs = -1;
342  int orbitEvmFdl = -1;
343 
344  int lsTcs = -1;
345  int lsEvmFdl = -1;
346 
347  // get once only the LS block number, to be used in many histograms
348  const int lsNumber = iEvent.luminosityBlock();
349 
350  // open EVM readout record if available
352  iEvent.getByToken(gtEvmSource_, gtEvmReadoutRecord);
353 
354  if (!gtEvmReadoutRecord.isValid()) {
355  edm::LogInfo("L1TGT") << "can't find L1GlobalTriggerEvmReadoutRecord";
356  } else {
357  // get all info from the EVM record if available and fill the histograms
358 
359  const L1GtfeWord& gtfeEvmWord = gtEvmReadoutRecord->gtfeWord();
360  const L1GtfeExtWord& gtfeEvmExtWord = gtEvmReadoutRecord->gtfeWord();
361 
362  gtfeEvmBx = gtfeEvmWord.bxNr();
363  int gtfeEvmActiveBoards = gtfeEvmWord.activeBoards();
364 
365  if (isActive(gtfeEvmActiveBoards, TCS)) {
366  // if TCS present in the record
367 
368  const L1TcsWord& tcsWord = gtEvmReadoutRecord->tcsWord();
369 
370  tcsBx = tcsWord.bxNr();
371  orbitTcs = tcsWord.orbitNr();
372  lsTcs = tcsWord.luminositySegmentNr();
373 
374  event_type->Fill(tcsWord.triggerType());
375  orbit_lumi->Fill(lsNumber, orbitTcs);
376 
377  trigger_number->Fill(tcsWord.partTrigNr());
378  event_number->Fill(tcsWord.eventNr());
379 
380  trigger_lumi->Fill(lsNumber, tcsWord.partTrigNr());
381  event_lumi->Fill(lsNumber, tcsWord.eventNr());
382  evnum_trignum_lumi->Fill(lsNumber,
383  static_cast<double>(tcsWord.eventNr()) / static_cast<double>(tcsWord.partTrigNr()));
384 
385  uint16_t master = gtfeEvmExtWord.bstMasterStatus();
386  uint32_t turnCount = gtfeEvmExtWord.turnCountNumber();
387  uint32_t lhcFill = gtfeEvmExtWord.lhcFillNumber();
388  uint16_t beam = gtfeEvmExtWord.beamMode();
389  uint16_t momentum = gtfeEvmExtWord.beamMomentum();
390  uint32_t intensity1 = gtfeEvmExtWord.totalIntensityBeam1();
391  uint32_t intensity2 = gtfeEvmExtWord.totalIntensityBeam2();
392 
393  BST_MasterStatus->Fill(lsNumber, static_cast<double>(master));
394  BST_turnCountNumber->Fill(lsNumber, static_cast<double>(turnCount));
395  BST_lhcFillNumber->Fill(static_cast<double>(lhcFill % 1000));
396  BST_beamMode->Fill(lsNumber, static_cast<double>(beam));
397 
398  BST_beamMomentum->Fill(lsNumber, static_cast<double>(momentum));
399  BST_intensityBeam1->Fill(lsNumber, static_cast<double>(intensity1));
400  BST_intensityBeam2->Fill(lsNumber, static_cast<double>(intensity2));
401 
402  if (verbose_) {
403  edm::LogInfo("L1TGT") << " check mode = " << beam << " momentum " << momentum << " int2 " << intensity2
404  << std::endl;
405  }
406 
407  uint64_t gpsr = gtfeEvmExtWord.gpsTime();
408  uint64_t gpshi = (gpsr >> 32) & 0xffffffff;
409  uint64_t gpslo = gpsr & 0xffffffff;
410  uint64_t gps = gpshi * 1000000 + gpslo;
411  // edm::LogInfo("L1TGT") << " gpsr = " << std::hex << gpsr << " hi=" << gpshi << " lo=" << gpslo << " gps=" << gps << std::endl;
412 
413  Long64_t delorb = orbitTcs - preOrb_;
414  Long64_t delgps = gps - preGps_;
415  Double_t freq = -1.;
416 
417  if (delgps > 0) {
418  freq = ((Double_t)(delorb)) * 3564. / ((Double_t)(delgps));
419  }
420 
421  if (delorb > 0) {
422  gpsfreq->Fill(freq);
423  gpsfreqwide->Fill(freq);
424  gpsfreqlum->Fill(lsNumber, freq);
425  if (verbose_) {
426  if (freq > 200.) {
427  edm::LogInfo("L1TGT") << " preOrb_ = " << preOrb_ << " orbitTcs=" << orbitTcs << " delorb=" << delorb
428  << std::hex << " preGps_=" << preGps_ << " gps=" << gps << std::dec
429  << " delgps=" << delgps << " freq=" << freq << std::endl;
430  }
431  }
432  }
433 
434  preGps_ = gps;
435  preOrb_ = orbitTcs;
436  }
437 
438  // get info from FDL if active
439  if (isActive(gtfeEvmActiveBoards, FDL)) {
440  const L1GtFdlWord& fdlWord = gtEvmReadoutRecord->gtFdlWord();
441 
442  orbitEvmFdl = fdlWord.orbitNr();
443  lsEvmFdl = fdlWord.lumiSegmentNr();
444  }
445 
446  if ((orbitTcs >= 0) && (orbitEvmFdl >= 0)) {
447  int diffOrbit = static_cast<float>(orbitTcs - orbitEvmFdl);
448  edm::LogInfo("L1TGT") << "\n orbitTcs = " << orbitTcs << " orbitEvmFdl = " << orbitEvmFdl
449  << " diffOrbit = " << diffOrbit << " orbitEvent = " << iEvent.orbitNumber() << std::endl;
450 
451  if (diffOrbit >= MaxOrbitNrDiffTcsFdlEvm) {
453 
454  } else if (diffOrbit <= -MaxOrbitNrDiffTcsFdlEvm) {
456 
457  } else {
458  m_monOrbitNrDiffTcsFdlEvm->Fill(diffOrbit);
459  m_monOrbitNrDiffTcsFdlEvmLs->Fill(lsNumber, diffOrbit);
460  }
461 
462  } else {
463  if (orbitTcs >= 0) {
464  // EVM_FDL error
466  } else if (orbitEvmFdl >= 0) {
467  // TCS error
469 
470  } else {
471  // TCS and EVM_FDL error
474  }
475  }
476 
477  if ((lsTcs >= 0) && (lsEvmFdl >= 0)) {
478  int diffLs = static_cast<float>(lsTcs - lsEvmFdl);
479  edm::LogInfo("L1TGT") << "\n lsTcs = " << lsTcs << " lsEvmFdl = " << lsEvmFdl << " diffLs = " << diffLs
480  << " lsEvent = " << lsNumber << std::endl;
481 
482  if (diffLs >= MaxLsNrDiffTcsFdlEvm) {
484 
485  } else if (diffLs <= -MaxLsNrDiffTcsFdlEvm) {
487 
488  } else {
489  m_monLsNrDiffTcsFdlEvm->Fill(diffLs);
490  m_monLsNrDiffTcsFdlEvmLs->Fill(lsNumber, diffLs);
491  }
492 
493  } else {
494  if (lsTcs >= 0) {
495  // EVM_FDL error
497  } else if (lsEvmFdl >= 0) {
498  // TCS error
500 
501  } else {
502  // TCS and EVM_FDL error
505  }
506  }
507  }
508 
509  // open GT DAQ readout record - exit if failed
511  iEvent.getByToken(gtSource_L1GT_, gtReadoutRecord);
512 
513  //edm::ESHandle<L1GtTriggerMenu> menuRcd;
514  //evSetup.get<L1GtTriggerMenuRcd>().get(menuRcd);
515 
516  //const L1GtTriggerMenu* menu = menuRcd.product();
517 
518  if (!gtReadoutRecord.isValid()) {
519  edm::LogInfo("L1TGT") << "can't find L1GlobalTriggerReadoutRecord";
520  return;
521  }
522 
523  if (gtReadoutRecord.isValid()) {
524  unsigned int NmaxL1AlgoBit = gtReadoutRecord->decisionWord().size();
525  unsigned int NmaxL1TechBit = gtReadoutRecord->technicalTriggerWord().size();
526 
527  const DecisionWord dWord = gtReadoutRecord->decisionWord();
528  const TechnicalTriggerWord technicalTriggerWordBeforeMask = gtReadoutRecord->technicalTriggerWord();
529 
530  const std::vector<L1GtFdlWord>& m_gtFdlWord(gtReadoutRecord->gtFdlVector());
531  int numberBxInEvent = m_gtFdlWord.size();
532  int minBxInEvent = (numberBxInEvent + 1) / 2 - numberBxInEvent;
533 
534  for (unsigned int iBit = 0; iBit < NmaxL1AlgoBit; ++iBit) {
535  bool accept = dWord[iBit];
536 
539  if (trig_iter == l1TriggerDecision.end()) {
540  l1TriggerDecision.insert(valType(algoBitToName[iBit], accept));
541  } else {
542  trig_iter->second = accept;
543  }
544 
545  int ibx = 0;
546  for (std::vector<L1GtFdlWord>::const_iterator itBx = m_gtFdlWord.begin(); itBx != m_gtFdlWord.end(); ++itBx) {
547  const DecisionWord dWordBX = (*itBx).gtDecisionWord();
548  bool accept = dWordBX[iBit];
549  if (accept) {
550  if (iBit < 32)
551  h_L1AlgoBX1->Fill(iBit, minBxInEvent + ibx);
552  else if (iBit < 64)
553  h_L1AlgoBX2->Fill(iBit, minBxInEvent + ibx);
554  else if (iBit < 96)
555  h_L1AlgoBX3->Fill(iBit, minBxInEvent + ibx);
556  else if (iBit < 128)
557  h_L1AlgoBX4->Fill(iBit, minBxInEvent + ibx);
558  }
559  ibx++;
560  }
561  }
562 
563  for (unsigned int iBit = 0; iBit < NmaxL1TechBit; ++iBit) {
564  bool accept = technicalTriggerWordBeforeMask[iBit];
565 
568  if (trig_iter == l1TechTriggerDecision.end())
569  l1TechTriggerDecision.insert(valType(techBitToName[iBit], accept));
570  else
571  trig_iter->second = accept;
572 
573  int ibx = 0;
574  for (std::vector<L1GtFdlWord>::const_iterator itBx = m_gtFdlWord.begin(); itBx != m_gtFdlWord.end(); ++itBx) {
575  const DecisionWord dWordBX = (*itBx).gtTechnicalTriggerWord();
576  bool accept = dWordBX[iBit];
577  if (accept)
578  h_L1TechBX->Fill(iBit, minBxInEvent + ibx);
579  ibx++;
580  }
581  }
582  }
583 
584  // initialize bx's to invalid value
585  int gtfeBx = -1;
586  int fdlBx[2] = {-1, -1};
587  int psbBx[2][7] = {{-1, -1, -1, -1, -1, -1, -1}, {-1, -1, -1, -1, -1, -1, -1}};
588  int gmtBx = -1;
589 
590  // get info from GTFE DAQ record
591  const L1GtfeWord& gtfeWord = gtReadoutRecord->gtfeWord();
592  gtfeBx = gtfeWord.bxNr();
593  gtfe_bx->Fill(gtfeBx);
594  setupversion_lumi->Fill(lsNumber, gtfeWord.setupVersion());
595  int gtfeActiveBoards = gtfeWord.activeBoards();
596 
597  // look for GMT readout collection from the same source if GMT active
598  if (isActive(gtfeActiveBoards, GMT)) {
599  edm::Handle<L1MuGMTReadoutCollection> gmtReadoutCollection;
600  iEvent.getByToken(gtSource_L1MuGMT_, gmtReadoutCollection);
601 
602  if (gmtReadoutCollection.isValid()) {
603  gmtBx = gmtReadoutCollection->getRecord().getBxNr();
604  }
605  }
606 
607  // get info from FDL if active (including decision word)
608  if (isActive(gtfeActiveBoards, FDL)) {
609  const L1GtFdlWord& fdlWord = gtReadoutRecord->gtFdlWord();
610  fdlBx[0] = fdlWord.bxNr();
611  fdlBx[1] = fdlWord.localBxNr();
612 
614  const DecisionWord& gtDecisionWord = gtReadoutRecord->decisionWord();
615  const TechnicalTriggerWord& gtTTWord = gtReadoutRecord->technicalTriggerWord();
616 
617  int dbitNumber = 0;
618  DecisionWord::const_iterator GTdbitItr;
619  algo_bits->Fill(-1.); // fill underflow to normalize
620  for (GTdbitItr = gtDecisionWord.begin(); GTdbitItr != gtDecisionWord.end(); GTdbitItr++) {
621  if (*GTdbitItr) {
622  algo_bits->Fill(dbitNumber);
623  algo_bits_lumi->Fill(lsNumber, dbitNumber);
624  int dbitNumber1 = 0;
625  DecisionWord::const_iterator GTdbitItr1;
626  for (GTdbitItr1 = gtDecisionWord.begin(); GTdbitItr1 != gtDecisionWord.end(); GTdbitItr1++) {
627  if (*GTdbitItr1)
628  algo_bits_corr->Fill(dbitNumber, dbitNumber1);
629  dbitNumber1++;
630  }
631  int tbitNumber1 = 0;
632  TechnicalTriggerWord::const_iterator GTtbitItr1;
633  for (GTtbitItr1 = gtTTWord.begin(); GTtbitItr1 != gtTTWord.end(); GTtbitItr1++) {
634  if (*GTtbitItr1)
635  algo_tt_bits_corr->Fill(dbitNumber, tbitNumber1);
636  tbitNumber1++;
637  }
638  }
639  dbitNumber++;
640  }
641 
642  int tbitNumber = 0;
643  TechnicalTriggerWord::const_iterator GTtbitItr;
644  tt_bits->Fill(-1.); // fill underflow to normalize
645  for (GTtbitItr = gtTTWord.begin(); GTtbitItr != gtTTWord.end(); GTtbitItr++) {
646  if (*GTtbitItr) {
647  tt_bits->Fill(tbitNumber);
648  tt_bits_lumi->Fill(lsNumber, tbitNumber);
649  int tbitNumber1 = 0;
650  TechnicalTriggerWord::const_iterator GTtbitItr1;
651  for (GTtbitItr1 = gtTTWord.begin(); GTtbitItr1 != gtTTWord.end(); GTtbitItr1++) {
652  if (*GTtbitItr1)
653  tt_bits_corr->Fill(tbitNumber, tbitNumber1);
654  tbitNumber1++;
655  }
656  }
657  tbitNumber++;
658  }
659 
660  // fill the index of actual prescale factor set
661  // the index for technical triggers and algorithm trigger is the same (constraint in L1 GT TS)
662  // so we read only pfIndexAlgoTrig (uint16_t)
663 
664  const int pfIndexAlgoTrig = fdlWord.gtPrescaleFactorIndexAlgo();
665  m_monL1PrescaleFactorSet->Fill(lsNumber, static_cast<float>(pfIndexAlgoTrig));
666 
667  //
668 
669  // check that the combination (lsNumber, pfIndex) is not already included
670  // to avoid fake entries due to different event order
671 
672  std::pair<int, int> pairLsPfi = std::make_pair(lsNumber, pfIndexAlgoTrig);
673 
674  CItVecPair cIt = find(m_pairLsNumberPfIndex.begin(), m_pairLsNumberPfIndex.end(), pairLsPfi);
675 
676  if (cIt == m_pairLsNumberPfIndex.end()) {
677  m_pairLsNumberPfIndex.push_back(pairLsPfi);
678  }
679  }
680 
681  // get info from active PSB's
682  int ibit = PSB9; // first psb
683  // for now hardcode psb id's - TODO - get them from Vasile's board maps...
684  int psbID[7] = {0xbb09, 0xbb0d, 0xbb0e, 0xbb0f, 0xbb13, 0xbb14, 0xbb15};
685  for (int i = 0; i < 7; i++) {
686  if (isActive(gtfeActiveBoards, ibit)) {
687  L1GtPsbWord psbWord = gtReadoutRecord->gtPsbWord(psbID[i]);
688  psbBx[0][i] = psbWord.bxNr();
689  psbBx[1][i] = psbWord.localBxNr();
690  }
691  ibit++;
692  }
693 
694  //fill the dbx histo
695  if (gtfeEvmBx > -1)
696  dbx_module->Fill(0., gtfeEvmBx - gtfeBx);
697  if (tcsBx > -1)
698  dbx_module->Fill(1., tcsBx - gtfeBx);
699  for (int i = 0; i < 2; i++) {
700  if (fdlBx[i] > -1)
701  dbx_module->Fill(2. + i, fdlBx[i] - gtfeBx);
702  }
703  for (int j = 0; j < 7; j++) {
704  for (int i = 0; i < 2; i++) {
705  if (psbBx[i][j] > -1)
706  dbx_module->Fill(4. + i + 2 * j, psbBx[i][j] - gtfeBx);
707  }
708  }
709  if (gmtBx > -1)
710  dbx_module->Fill(18., gmtBx - gtfeBx);
711 }
712 
713 // end section
715  if (m_runInEndLumi) {
717  }
718 }
719 
721 bool L1TGT::isActive(int word, int bit) {
722  if (word & (1 << bit))
723  return true;
724  return false;
725 }
726 
728  if (verbose_) {
729  edm::LogInfo("L1TGT") << "\n Prescale factor indices used in a LS " << std::endl;
730 
731  for (CItVecPair cIt = m_pairLsNumberPfIndex.begin(); cIt != m_pairLsNumberPfIndex.end(); ++cIt) {
732  edm::LogVerbatim("L1TGT") << " lsNumber = " << (*cIt).first << " pfIndex = " << (*cIt).second << std::endl;
733  }
734  edm::LogVerbatim("L1TGT") << std::endl;
735  }
736 
737  // reset the histogram...
739 
740  // sort the vector (for pairs: sort after first argument, then after the second argument)
741  std::sort(m_pairLsNumberPfIndex.begin(), m_pairLsNumberPfIndex.end());
742 
743  int previousLsNumber = -1;
744  int previousPfsIndex = -1;
745 
746  // count the number of pairs (lsNumber, pfIndex) per Ls
747  // there are no duplicate entries, and pairs are sorted after both members
748  // ... and fill again the histogram
749  for (CItVecPair cIt = m_pairLsNumberPfIndex.begin(); cIt != m_pairLsNumberPfIndex.end(); ++cIt) {
750  int pfsIndicesPerLs = 1;
751 
752  if ((*cIt).first == previousLsNumber) {
753  if ((*cIt).second != previousPfsIndex) {
754  pfsIndicesPerLs++;
755  previousPfsIndex = (*cIt).second;
756  }
757 
758  } else {
759  // fill the histogram with the number of PF indices for the previous Ls
760  if (previousLsNumber != -1) {
761  m_monL1PfIndicesPerLs->Fill(pfsIndicesPerLs);
762  }
763 
764  // new Ls
765  previousLsNumber = (*cIt).first;
766  previousPfsIndex = (*cIt).second;
767 
768  pfsIndicesPerLs = 1;
769  }
770  }
771 }
772 
773 // static class members
774 // maximum difference in orbit number
775 const int L1TGT::MaxOrbitNrDiffTcsFdlEvm = 24;
776 
777 // maximum difference in luminosity segment number
778 const int L1TGT::MaxLsNrDiffTcsFdlEvm = 24;
MonitorElement * m_monL1PrescaleFactorSet
Definition: L1TGT.h:140
void bookHistograms(DQMStore::IBooker &ibooker, edm::Run const &, edm::EventSetup const &) override
Definition: L1TGT.cc:36
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
Definition: DQMStore.cc:239
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * h_L1AlgoBX1
Definition: L1TGT.h:158
MonitorElement * gpsfreqwide
Definition: L1TGT.h:137
const cms_uint16_t bxNr() const
get/set bunch cross number of the actual bx
Definition: L1GtPsbWord.h:84
int m_nrEvRun
Definition: L1TGT.h:169
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: L1TGT.cc:714
const TechnicalTriggerWord & technicalTriggerWord(int bxInEventValue) const
const cms_uint64_t orbitNr() const
get/set orbit number since start of run
Definition: L1TcsWord.h:185
std::map< std::string, bool > l1TriggerDecision
Definition: L1TGT.h:179
MonitorElement * m_monLsNrDiffTcsFdlEvmLs
Definition: L1TGT.h:156
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:525
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:418
std::vector< std::pair< int, int > >::const_iterator CItVecPair
Definition: L1TGT.h:183
int getBxNr() const
get counters
const L1GtfeExtWord gtfeWord() const
get / set GTFE word (record) in the GT readout record
const L1TcsWord tcsWord() const
get / set TCS word (record) in the GT readout record
const std::vector< L1GtFdlWord > gtFdlVector() const
get the vector of L1GtFdlWord
const L1GtfeWord gtfeWord() const
get / set GTFE word (record) in the GT readout record
const cms_uint64_t gpsTime() const
LHC-BOB-ES-0001 (EDMS 638899)
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1TGT.cc:330
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:61
const cms_uint16_t luminositySegmentNr() const
get/set luminosity segment number
Definition: L1TcsWord.h:121
MonitorElement * BST_intensityBeam1
Definition: L1TGT.h:134
static const int MaxOrbitNrDiffTcsFdlEvm
Definition: L1TGT.h:152
MonitorElement * algo_bits_corr
Definition: L1TGT.h:110
MonitorElement * tt_bits
Definition: L1TGT.h:111
bool verbose_
verbosity switch
Definition: L1TGT.h:106
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
const cms_uint16_t bstMasterStatus() const
MonitorElement * gtfe_bx
Definition: L1TGT.h:126
const cms_uint32_t partTrigNr() const
get/set total number of L1A sent since start of the run to this DAQ partition
Definition: L1TcsWord.h:161
MonitorElement * BST_beamMode
Definition: L1TGT.h:132
MonitorElement * BST_MasterStatus
Definition: L1TGT.h:129
AlgorithmMap::const_iterator CItAlgo
iterators through map containing the algorithms
const cms_uint16_t beamMomentum() const
const cms_uint16_t bxNr() const
get/set BxNr - bunch cross number of the actual bx
Definition: L1GtFdlWord.h:88
void Fill(long long x)
virtual void Reset()
reset ME (ie. contents, errors, etc)
MonitorElement * BST_intensityBeam2
Definition: L1TGT.h:135
const cms_uint16_t bxNr() const
get/set bunch cross number as counted in the TCS chip
Definition: L1TcsWord.h:73
~L1TGT() override
Definition: L1TGT.cc:32
uint64_t word
MonitorElement * h_L1TechBX
Definition: L1TGT.h:162
int iEvent
Definition: GenABIO.cc:224
MonitorElement * event_number
Definition: L1TGT.h:118
MonitorElement * h_L1AlgoBX3
Definition: L1TGT.h:160
std::vector< bool > DecisionWord
typedefs
uint64_t preGps_
Definition: L1TGT.h:174
static const int MaxLsNrDiffTcsFdlEvm
Definition: L1TGT.h:153
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, char const *option="s")
Definition: DQMStore.cc:333
edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > gtEvmSource_
input tag for L1 GT EVM readout record
Definition: L1TGT.h:99
MonitorElement * orbit_lumi
Definition: L1TGT.h:123
MonitorElement * h_L1AlgoBX4
Definition: L1TGT.h:161
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
int orbitNumber() const
Definition: EventBase.h:65
const L1GtPsbWord gtPsbWord(cms_uint16_t boardIdValue, int bxInEventValue) const
get / set PSB word (record) in the GT readout record
std::string m_histFolder
histogram folder for L1 GT plots
Definition: L1TGT.h:172
const cms_uint16_t localBxNr() const
get/set local bunch cross number of the actual bx
Definition: L1GtPsbWord.h:134
bool isValid() const
Definition: HandleBase.h:70
MonitorElement * algo_bits_lumi
Definition: L1TGT.h:114
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
const cms_uint16_t activeBoards() const
get/set boards contributing to EVM respectively DAQ record
Definition: L1GtfeWord.h:119
const DecisionWord & decisionWord(int bxInEventValue) const
MonitorElement * m_monLsNrDiffTcsFdlEvm
Definition: L1TGT.h:144
MonitorElement * gpsfreq
Definition: L1TGT.h:136
const cms_uint16_t bxNr() const
get/set bunch cross number as counted in the GTFE board
Definition: L1GtfeWord.h:93
std::string algoBitToName[128]
Definition: L1TGT.h:177
const cms_uint32_t totalIntensityBeam2() const
const cms_uint32_t totalIntensityBeam1() const
MonitorElement * algo_bits
Definition: L1TGT.h:109
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Definition: L1TGT.cc:327
MonitorElement * event_type
Definition: L1TGT.h:116
const cms_uint16_t gtPrescaleFactorIndexAlgo() const
Definition: L1GtFdlWord.h:195
MonitorElement * m_monOrbitNrDiffTcsFdlEvmLs
Definition: L1TGT.h:155
const cms_uint16_t lumiSegmentNr() const
get/set luminosity segment number of the actual bx
Definition: L1GtFdlWord.h:247
MonitorElement * dbx_module
Definition: L1TGT.h:127
bool m_runInEndLumi
Definition: L1TGT.h:103
unsigned long long uint64_t
Definition: Time.h:13
const L1GtFdlWord gtFdlWord(int bxInEventValue) const
get / set FDL word (record) in the GT readout record
const cms_uint32_t lhcFillNumber() const
MonitorElement * tt_bits_corr
Definition: L1TGT.h:112
bool isActive(int word, int bit)
book all histograms for the module
Definition: L1TGT.cc:721
uint64_t preOrb_
Definition: L1TGT.h:175
MonitorElement * gpsfreqlum
Definition: L1TGT.h:138
int m_nrEvJob
number of events processed
Definition: L1TGT.h:168
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > gtSource_L1GT_
input parameters
Definition: L1TGT.h:95
MonitorElement * h_L1AlgoBX2
Definition: L1TGT.h:159
void countPfsIndicesPerLs()
Definition: L1TGT.cc:727
const cms_uint16_t triggerType() const
get/set trigger type, identical with event type in CMS header
Definition: L1TcsWord.h:97
HLT enums.
MonitorElement * m_monL1PfIndicesPerLs
Definition: L1TGT.h:141
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Definition: DQMStore.cc:266
T get() const
Definition: EventSetup.h:73
std::map< std::string, bool >::iterator trig_iter
Definition: L1TGT.h:180
const cms_uint32_t eventNr() const
get/set event number since last L1 reset generated in TCS chip
Definition: L1TcsWord.h:173
const cms_uint32_t setupVersion() const
get/set setup version
Definition: L1GtfeWord.h:104
const AlgorithmMap & gtAlgorithmMap() const
get / set the algorithm map (by name)
MonitorElement * trigger_number
Definition: L1TGT.h:120
std::vector< std::pair< int, int > > m_pairLsNumberPfIndex
Definition: L1TGT.h:182
const AlgorithmMap & gtTechnicalTriggerMap() const
get / set the technical trigger map
MonitorElement * BST_beamMomentum
Definition: L1TGT.h:133
L1MuGMTReadoutRecord const & getRecord(int bx=0) const
MonitorElement * BST_lhcFillNumber
Definition: L1TGT.h:131
MonitorElement * setupversion_lumi
Definition: L1TGT.h:124
const cms_uint32_t turnCountNumber() const
const L1GtFdlWord gtFdlWord(int bxInEvent) const
get / set FDL word (record) in the GT readout record
MonitorElement * BST_turnCountNumber
Definition: L1TGT.h:130
std::map< std::string, bool > l1TechTriggerDecision
Definition: L1TGT.h:179
MonitorElement * event_lumi
Definition: L1TGT.h:119
const cms_uint16_t beamMode() const
T const * product() const
Definition: ESHandle.h:86
MonitorElement * tt_bits_lumi
Definition: L1TGT.h:115
MonitorElement * trigger_lumi
Definition: L1TGT.h:121
MonitorElement * evnum_trignum_lumi
Definition: L1TGT.h:122
const cms_uint32_t orbitNr() const
get/set orbit number
Definition: L1GtFdlWord.h:235
MonitorElement * algo_tt_bits_corr
Definition: L1TGT.h:113
std::string techBitToName[64]
Definition: L1TGT.h:178
const cms_uint16_t localBxNr() const
get/set local bunch cross number of the actual bx
Definition: L1GtFdlWord.h:259
Definition: Run.h:45
MonitorElement * m_monOrbitNrDiffTcsFdlEvm
Definition: L1TGT.h:143
L1TGT(const edm::ParameterSet &ps)
Definition: L1TGT.cc:18
edm::EDGetTokenT< L1MuGMTReadoutCollection > gtSource_L1MuGMT_
Definition: L1TGT.h:96
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)