CMS 3D CMS Logo

TotemRPDQMSource.cc
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * This is a part of TotemDQM and TOTEM offline software.
4 * Authors:
5 * Jan Kašpar (jan.kaspar@gmail.com)
6 * Rafał Leszko (rafal.leszko@gmail.com)
7 *
8 ****************************************************************************/
9 
16 
19 
28 
32 
33 #include <string>
34 
35 //----------------------------------------------------------------------------------------------------
36 
37 class TotemRPDQMSource : public DQMEDAnalyzer {
38 public:
40  ~TotemRPDQMSource() override;
41 
42 protected:
43  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
44  void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override;
45 
46 private:
47  unsigned int verbosity;
48 
55 
57 
59  struct PotPlots {
60  MonitorElement *vfat_problem = nullptr, *vfat_missing = nullptr, *vfat_ec_bc_error = nullptr,
61  *vfat_corruption = nullptr;
62 
63  MonitorElement *activity = nullptr, *activity_u = nullptr, *activity_v = nullptr;
66  MonitorElement *patterns_u = nullptr, *patterns_v = nullptr;
67  MonitorElement *h_planes_fit_u = nullptr, *h_planes_fit_v = nullptr;
73 
74  PotPlots() {}
75  PotPlots(DQMStore::IBooker &ibooker, unsigned int id);
76  };
77 
78  std::map<unsigned int, PotPlots> potPlots;
79 
81  struct PlanePlots {
85  MonitorElement *cluster_size = nullptr;
87 
89  PlanePlots(DQMStore::IBooker &ibooker, unsigned int id);
90  };
91 
92  std::map<unsigned int, PlanePlots> planePlots;
93 };
94 
95 //----------------------------------------------------------------------------------------------------
96 //----------------------------------------------------------------------------------------------------
97 
98 using namespace std;
99 using namespace edm;
100 
101 //----------------------------------------------------------------------------------------------------
102 
103 TotemRPDQMSource::PotPlots::PotPlots(DQMStore::IBooker &ibooker, unsigned int id) {
104  string path;
106  ibooker.setCurrentFolder(path);
107 
108  string title;
110 
111  vfat_problem = ibooker.book2D("vfats with any problem", title + ";plane;vfat index", 10, -0.5, 9.5, 4, -0.5, 3.5);
112  vfat_missing = ibooker.book2D("vfats missing", title + ";plane;vfat index", 10, -0.5, 9.5, 4, -0.5, 3.5);
113  vfat_ec_bc_error =
114  ibooker.book2D("vfats with EC or BC error", title + ";plane;vfat index", 10, -0.5, 9.5, 4, -0.5, 3.5);
115  vfat_corruption =
116  ibooker.book2D("vfats with data corruption", title + ";plane;vfat index", 10, -0.5, 9.5, 4, -0.5, 3.5);
117 
118  activity = ibooker.book1D("active planes", title + ";number of active planes", 11, -0.5, 10.5);
119  activity_u = ibooker.book1D("active planes U", title + ";number of active U planes", 11, -0.5, 10.5);
120  activity_v = ibooker.book1D("active planes V", title + ";number of active V planes", 11, -0.5, 10.5);
121 
122  activity_per_bx = ibooker.book1D("activity per BX", title + ";Event.BX", 4002, -1.5, 4000. + 0.5);
123  activity_per_bx_short = ibooker.book1D("activity per BX (short)", title + ";Event.BX", 102, -1.5, 100. + 0.5);
124 
125  hit_plane_hist =
126  ibooker.book2D("activity in planes (2D)", title + ";plane number;strip number", 10, -0.5, 9.5, 32, -0.5, 511.5);
127 
128  patterns_u = ibooker.book1D("recognized patterns U", title + ";number of recognized U patterns", 11, -0.5, 10.5);
129  patterns_v = ibooker.book1D("recognized patterns V", title + ";number of recognized V patterns", 11, -0.5, 10.5);
130 
131  h_planes_fit_u =
132  ibooker.book1D("planes contributing to fit U", title + ";number of planes contributing to U fit", 6, -0.5, 5.5);
133  h_planes_fit_v =
134  ibooker.book1D("planes contributing to fit V", title + ";number of planes contributing to V fit", 6, -0.5, 5.5);
135 
136  event_category = ibooker.book1D("event category", title + ";event category", 5, -0.5, 4.5);
137  TH1F *event_category_h = event_category->getTH1F();
138  event_category_h->GetXaxis()->SetBinLabel(1, "empty");
139  event_category_h->GetXaxis()->SetBinLabel(2, "insufficient");
140  event_category_h->GetXaxis()->SetBinLabel(3, "single-track");
141  event_category_h->GetXaxis()->SetBinLabel(4, "multi-track");
142  event_category_h->GetXaxis()->SetBinLabel(5, "shower");
143 
144  trackHitsCumulativeHist =
145  ibooker.book2D("track XY profile", title + ";x (mm);y (mm)", 100, -18., +18., 100, -18., +18.);
146 
147  track_u_profile = ibooker.book1D("track profile U", title + "; U (mm)", 512, -256 * 66E-3, +256 * 66E-3);
148  track_v_profile = ibooker.book1D("track profile V", title + "; V (mm)", 512, -256 * 66E-3, +256 * 66E-3);
149 
150  triggerSectorUVCorrelation_all = ibooker.book2D(
151  "trigger sector UV correlation (no cond)", title + ";V sector;U sector", 16, -0.5, 15.5, 16, -0.5, 15.5);
152  triggerSectorUVCorrelation_mult2 = ibooker.book2D(
153  "trigger sector UV correlation (max mult 2)", title + ";V sector;U sector", 16, -0.5, 15.5, 16, -0.5, 15.5);
154  triggerSectorUVCorrelation_track = ibooker.book2D(
155  "trigger sector UV correlation (track)", title + ";V sector;U sector", 16, -0.5, 15.5, 16, -0.5, 15.5);
156 }
157 
158 //----------------------------------------------------------------------------------------------------
159 
161  string path;
163  ibooker.setCurrentFolder(path);
164 
165  string title;
167 
168  digi_profile_cumulative = ibooker.book1D("digi profile", title + ";strip number", 512, -0.5, 511.5);
169  cluster_profile_cumulative = ibooker.book1D("cluster profile", title + ";cluster center", 1024, -0.25, 511.75);
170  hit_multiplicity = ibooker.book1D("hit multiplicity", title + ";hits/detector/event", 6, -0.5, 5.5);
171  cluster_size = ibooker.book1D("cluster size", title + ";hits per cluster", 5, 0.5, 5.5);
172 
173  efficiency_num = ibooker.book1D("efficiency num", title + ";track position (mm)", 30, -15., 0.);
174  efficiency_den = ibooker.book1D("efficiency den", title + ";track position (mm)", 30, -15., 0.);
175 }
176 
177 //----------------------------------------------------------------------------------------------------
178 //----------------------------------------------------------------------------------------------------
179 
181  : verbosity(ps.getUntrackedParameter<unsigned int>("verbosity", 0)),
182  geometryToken_(esConsumes())
183 
184 {
185  tokenStatus = consumes<DetSetVector<TotemVFATStatus>>(ps.getParameter<edm::InputTag>("tagStatus"));
186 
187  tokenDigi = consumes<DetSetVector<TotemRPDigi>>(ps.getParameter<edm::InputTag>("tagDigi"));
188  tokenCluster = consumes<edm::DetSetVector<TotemRPCluster>>(ps.getParameter<edm::InputTag>("tagCluster"));
189  tokenRecHit = consumes<edm::DetSetVector<TotemRPRecHit>>(ps.getParameter<edm::InputTag>("tagRecHit"));
190  tokenUVPattern = consumes<DetSetVector<TotemRPUVPattern>>(ps.getParameter<edm::InputTag>("tagUVPattern"));
191  tokenLocalTrack = consumes<DetSetVector<TotemRPLocalTrack>>(ps.getParameter<edm::InputTag>("tagLocalTrack"));
192 }
193 
194 //----------------------------------------------------------------------------------------------------
195 
197 
198 //----------------------------------------------------------------------------------------------------
199 
201  ibooker.cd();
202  ibooker.setCurrentFolder("CTPPS");
203 
204  // loop over arms
205  for (unsigned int arm : {0, 1}) {
206  // loop over RPs
207  for (unsigned int st_rp : {2, 3, 4, 5, 24, 25}) {
208  const unsigned int st = st_rp / 10;
209  const unsigned int rp = st_rp % 10;
210 
211  TotemRPDetId rpId(arm, st, rp);
212  potPlots[rpId] = PotPlots(ibooker, rpId);
213 
214  // loop over planes
215  for (unsigned int pl = 0; pl < 10; ++pl) {
216  TotemRPDetId plId(arm, st, rp, pl);
217  planePlots[plId] = PlanePlots(ibooker, plId);
218  }
219  }
220  }
221 }
222 
223 //----------------------------------------------------------------------------------------------------
224 
225 void TotemRPDQMSource::analyze(edm::Event const &event, edm::EventSetup const &eventSetup) {
226  // get event setup data
227  auto const &geometry = eventSetup.getData(geometryToken_);
228 
229  // get event data
231  event.getByToken(tokenStatus, status);
232 
234  event.getByToken(tokenDigi, digi);
235 
237  event.getByToken(tokenCluster, digCluster);
238 
240  event.getByToken(tokenRecHit, hits);
241 
243  event.getByToken(tokenUVPattern, patterns);
244 
246  event.getByToken(tokenLocalTrack, tracks);
247 
248  // check validity
249  bool valid = true;
250  valid &= status.isValid();
251  valid &= digi.isValid();
252  valid &= digCluster.isValid();
253  valid &= hits.isValid();
254  valid &= patterns.isValid();
255  valid &= tracks.isValid();
256 
257  if (!valid) {
258  if (verbosity) {
259  LogProblem("TotemRPDQMSource")
260  << "ERROR in TotemDQMModuleRP::analyze > some of the required inputs are not valid. Skipping this event.\n"
261  << " status.isValid = " << status.isValid() << "\n"
262  << " digi.isValid = " << digi.isValid() << "\n"
263  << " digCluster.isValid = " << digCluster.isValid() << "\n"
264  << " hits.isValid = " << hits.isValid() << "\n"
265  << " patterns.isValid = " << patterns.isValid() << "\n"
266  << " tracks.isValid = " << tracks.isValid();
267  }
268 
269  return;
270  }
271 
272  //------------------------------
273  // Status Plots
274 
275  for (auto &ds : *status) {
276  TotemRPDetId detId(ds.detId());
277  unsigned int plNum = detId.plane();
278  CTPPSDetId rpId = detId.rpId();
279 
280  auto it = potPlots.find(rpId);
281  if (it == potPlots.end())
282  continue;
283  auto &plots = it->second;
284 
285  for (auto &s : ds) {
286  if (s.isMissing()) {
287  plots.vfat_problem->Fill(plNum, s.chipPosition());
288  plots.vfat_missing->Fill(plNum, s.chipPosition());
289  }
290 
291  if (s.isECProgressError() || s.isBCProgressError()) {
292  plots.vfat_problem->Fill(plNum, s.chipPosition());
293  plots.vfat_ec_bc_error->Fill(plNum, s.chipPosition());
294  }
295 
296  if (s.isIDMismatch() || s.isFootprintError() || s.isCRCError()) {
297  plots.vfat_problem->Fill(plNum, s.chipPosition());
298  plots.vfat_corruption->Fill(plNum, s.chipPosition());
299  }
300  }
301  }
302 
303  //------------------------------
304  // Plane Plots
305 
306  // digi profile cumulative
307  for (DetSetVector<TotemRPDigi>::const_iterator it = digi->begin(); it != digi->end(); ++it) {
308  TotemRPDetId detId(it->detId());
309 
310  auto plIt = planePlots.find(detId);
311  if (plIt == planePlots.end())
312  continue;
313  auto &plots = plIt->second;
314 
315  for (DetSet<TotemRPDigi>::const_iterator dit = it->begin(); dit != it->end(); ++dit)
316  plots.digi_profile_cumulative->Fill(dit->stripNumber());
317  }
318 
319  // cluster plots
320  for (DetSetVector<TotemRPCluster>::const_iterator it = digCluster->begin(); it != digCluster->end(); it++) {
321  TotemRPDetId detId(it->detId());
322 
323  auto plIt = planePlots.find(detId);
324  if (plIt == planePlots.end())
325  continue;
326  auto &plots = plIt->second;
327 
328  // hit multiplicity
329  plots.hit_multiplicity->Fill(it->size());
330 
331  for (DetSet<TotemRPCluster>::const_iterator dit = it->begin(); dit != it->end(); ++dit) {
332  // profile cumulative
333  plots.cluster_profile_cumulative->Fill(dit->centerStripPosition());
334 
335  // cluster size
336  plots.cluster_size->Fill(dit->numberOfStrips());
337  }
338  }
339 
340  // plane efficiency plots
341  for (auto &ds : *tracks) {
342  CTPPSDetId rpId(ds.detId());
343 
344  for (auto &ft : ds) {
345  if (!ft.isValid())
346  continue;
347 
348  double rp_z = geometry.rpTranslation(rpId).z();
349 
350  for (unsigned int plNum = 0; plNum < 10; ++plNum) {
351  TotemRPDetId plId = rpId;
352  plId.setPlane(plNum);
353 
354  auto plIt = planePlots.find(plId);
355  if (plIt == planePlots.end())
356  continue;
357  auto &plots = plIt->second;
358 
359  double ft_z = ft.z0();
360  double ft_x = ft.x0() + ft.tx() * (ft_z - rp_z);
361  double ft_y = ft.y0() + ft.ty() * (ft_z - rp_z);
362 
363  double ft_v = geometry.globalToLocal(plId, CTPPSGeometry::Vector(ft_x, ft_y, ft_z)).y();
364 
365  bool hasMatchingHit = false;
366  const auto &hit_ds_it = hits->find(plId);
367  if (hit_ds_it != hits->end()) {
368  for (const auto &h : *hit_ds_it) {
369  bool match = (fabs(ft_v - h.position()) < 2. * 0.066);
370  if (match) {
371  hasMatchingHit = true;
372  break;
373  }
374  }
375  }
376 
377  plots.efficiency_den->Fill(ft_v);
378  if (hasMatchingHit)
379  plots.efficiency_num->Fill(ft_v);
380  }
381  }
382  }
383 
384  //------------------------------
385  // Roman Pots Plots
386 
387  // determine active planes (from RecHits and VFATStatus)
388  map<unsigned int, set<unsigned int>> planes;
389  map<unsigned int, set<unsigned int>> planes_u;
390  map<unsigned int, set<unsigned int>> planes_v;
391  for (const auto &ds : *hits) {
392  if (ds.empty())
393  continue;
394 
395  TotemRPDetId detId(ds.detId());
396  unsigned int planeNum = detId.plane();
397  CTPPSDetId rpId = detId.rpId();
398 
399  planes[rpId].insert(planeNum);
400  if (detId.isStripsCoordinateUDirection())
401  planes_u[rpId].insert(planeNum);
402  else
403  planes_v[rpId].insert(planeNum);
404  }
405 
406  for (const auto &ds : *status) {
407  bool activity = false;
408  for (const auto &s : ds) {
409  if (s.isNumberOfClustersSpecified() && s.numberOfClusters() > 0) {
410  activity = true;
411  break;
412  }
413  }
414 
415  if (!activity)
416  continue;
417 
418  TotemRPDetId detId(ds.detId());
419  unsigned int planeNum = detId.plane();
420  CTPPSDetId rpId = detId.rpId();
421 
422  planes[rpId].insert(planeNum);
423  if (detId.isStripsCoordinateUDirection())
424  planes_u[rpId].insert(planeNum);
425  else
426  planes_v[rpId].insert(planeNum);
427  }
428 
429  // plane activity histogram
430  for (std::map<unsigned int, PotPlots>::iterator it = potPlots.begin(); it != potPlots.end(); it++) {
431  it->second.activity->Fill(planes[it->first].size());
432  it->second.activity_u->Fill(planes_u[it->first].size());
433  it->second.activity_v->Fill(planes_v[it->first].size());
434 
435  if (planes[it->first].size() >= 6) {
436  it->second.activity_per_bx->Fill(event.bunchCrossing());
437  it->second.activity_per_bx_short->Fill(event.bunchCrossing());
438  }
439  }
440 
441  for (DetSetVector<TotemRPCluster>::const_iterator it = digCluster->begin(); it != digCluster->end(); it++) {
442  TotemRPDetId detId(it->detId());
443  unsigned int planeNum = detId.plane();
444  CTPPSDetId rpId = detId.rpId();
445 
446  auto plIt = potPlots.find(rpId);
447  if (plIt == potPlots.end())
448  continue;
449  auto &plots = plIt->second;
450 
451  for (DetSet<TotemRPCluster>::const_iterator dit = it->begin(); dit != it->end(); ++dit)
452  plots.hit_plane_hist->Fill(planeNum, dit->centerStripPosition());
453  }
454 
455  // recognized pattern histograms
456  for (auto &ds : *patterns) {
457  CTPPSDetId rpId(ds.detId());
458 
459  auto plIt = potPlots.find(rpId);
460  if (plIt == potPlots.end())
461  continue;
462  auto &plots = plIt->second;
463 
464  // count U and V patterns
465  unsigned int u = 0, v = 0;
466  for (auto &p : ds) {
467  if (!p.fittable())
468  continue;
469 
470  if (p.projection() == TotemRPUVPattern::projU)
471  u++;
472 
473  if (p.projection() == TotemRPUVPattern::projV)
474  v++;
475  }
476 
477  plots.patterns_u->Fill(u);
478  plots.patterns_v->Fill(v);
479  }
480 
481  // event-category histogram
482  for (auto &it : potPlots) {
483  TotemRPDetId rpId(it.first);
484  auto &pp = it.second;
485 
486  // process hit data for this plot
487  unsigned int pl_u = planes_u[rpId].size();
488  unsigned int pl_v = planes_v[rpId].size();
489 
490  // process pattern data for this pot
491  const auto &rp_pat_it = patterns->find(rpId);
492 
493  unsigned int pat_u = 0, pat_v = 0;
494  if (rp_pat_it != patterns->end()) {
495  for (auto &p : *rp_pat_it) {
496  if (!p.fittable())
497  continue;
498 
499  if (p.projection() == TotemRPUVPattern::projU)
500  pat_u++;
501 
502  if (p.projection() == TotemRPUVPattern::projV)
503  pat_v++;
504  }
505  }
506 
507  // determine category
508  signed int category = -1;
509 
510  if (pl_u == 0 && pl_v == 0)
511  category = 0; // empty
512 
513  if (category == -1 && pat_u + pat_v <= 1) {
514  if (pl_u + pl_v < 6)
515  category = 1; // insuff
516  else
517  category = 4; // shower
518  }
519 
520  if (pat_u == 1 && pat_v == 1)
521  category = 2; // 1-track
522 
523  if (category == -1)
524  category = 3; // multi-track
525 
526  pp.event_category->Fill(category);
527  }
528 
529  // RP track-fit plots
530  set<unsigned int> rps_with_tracks;
531 
532  for (auto &ds : *tracks) {
533  CTPPSDetId rpId(ds.detId());
534 
535  rps_with_tracks.insert(rpId);
536 
537  auto plIt = potPlots.find(rpId);
538  if (plIt == potPlots.end())
539  continue;
540  auto &plots = plIt->second;
541 
542  for (auto &ft : ds) {
543  if (!ft.isValid())
544  continue;
545 
546  // number of planes contributing to (valid) fits
547  unsigned int n_pl_in_fit_u = 0, n_pl_in_fit_v = 0;
548  for (auto &hds : ft.hits()) {
549  TotemRPDetId plId(hds.detId());
550  bool uProj = plId.isStripsCoordinateUDirection();
551 
552  for (auto &h : hds) {
553  h.position(); // just to keep compiler silent
554  if (uProj)
555  n_pl_in_fit_u++;
556  else
557  n_pl_in_fit_v++;
558  }
559  }
560 
561  plots.h_planes_fit_u->Fill(n_pl_in_fit_u);
562  plots.h_planes_fit_v->Fill(n_pl_in_fit_v);
563 
564  // mean position of U and V planes
565  TotemRPDetId plId_V(rpId);
566  plId_V.setPlane(0);
567  TotemRPDetId plId_U(rpId);
568  plId_U.setPlane(1);
569 
570  double rp_x = (geometry.sensor(plId_V)->translation().x() + geometry.sensor(plId_U)->translation().x()) / 2.;
571  double rp_y = (geometry.sensor(plId_V)->translation().y() + geometry.sensor(plId_U)->translation().y()) / 2.;
572 
573  // mean read-out direction of U and V planes
574  const auto &rod_U = geometry.localToGlobalDirection(plId_U, CTPPSGeometry::Vector(0., 1., 0.));
575  const auto &rod_V = geometry.localToGlobalDirection(plId_V, CTPPSGeometry::Vector(0., 1., 0.));
576 
577  double x = ft.x0() - rp_x;
578  double y = ft.y0() - rp_y;
579 
580  plots.trackHitsCumulativeHist->Fill(x, y);
581 
582  double U = x * rod_U.x() + y * rod_U.y();
583  double V = x * rod_V.x() + y * rod_V.y();
584 
585  plots.track_u_profile->Fill(U);
586  plots.track_v_profile->Fill(V);
587  }
588  }
589 
590  // restore trigger-sector map from digis
591  map<unsigned int, map<unsigned int, map<unsigned int, unsigned int>>>
592  triggerSectorMap; // [rpId, U/V flag, sector] --> number of planes
593  for (const auto &dp : *digi) {
594  TotemRPDetId plId(dp.detId());
595  CTPPSDetId rpId = plId.rpId();
596  unsigned int uvFlag = (plId.isStripsCoordinateUDirection()) ? 0 : 1;
597 
598  set<unsigned int> sectors;
599  for (const auto &d : dp) {
600  unsigned int sector = d.stripNumber() / 32;
601  sectors.insert(sector);
602  }
603 
604  for (const auto &sector : sectors)
605  triggerSectorMap[rpId][uvFlag][sector]++;
606  }
607 
608  for (auto &rpp : triggerSectorMap) {
609  const unsigned int rpId = rpp.first;
610 
611  // trigger sector is counted as active if at least 3 planes report activity
612 
613  set<unsigned int> triggerSectorsU;
614  for (const auto sp : rpp.second[0]) {
615  if (sp.second >= 3)
616  triggerSectorsU.insert(sp.first);
617  }
618 
619  set<unsigned int> triggerSectorsV;
620  for (const auto sp : rpp.second[1]) {
621  if (sp.second >= 3)
622  triggerSectorsV.insert(sp.first);
623  }
624 
625  auto plIt = potPlots.find(rpId);
626  if (plIt == potPlots.end())
627  continue;
628  auto &plots = plIt->second;
629 
630  const bool high_mult = (triggerSectorsU.size() > 2 && triggerSectorsV.size() > 2);
631 
632  const bool has_track = (rps_with_tracks.find(rpId) != rps_with_tracks.end());
633 
634  for (const auto &secU : triggerSectorsU) {
635  for (const auto &secV : triggerSectorsV) {
636  plots.triggerSectorUVCorrelation_all->Fill(secV, secU);
637 
638  if (!high_mult)
639  plots.triggerSectorUVCorrelation_mult2->Fill(secV, secU);
640 
641  if (has_track)
642  plots.triggerSectorUVCorrelation_track->Fill(secV, secU);
643  }
644  }
645  }
646 }
647 
648 //----------------------------------------------------------------------------------------------------
649 
TotemRPUVPattern::projV
Definition: TotemRPUVPattern.h:34
DDAxes::y
taus_updatedMVAIds_cff.category
category
Definition: taus_updatedMVAIds_cff.py:31
ctppsCommonDQMSource_cfi.verbosity
verbosity
Definition: ctppsCommonDQMSource_cfi.py:14
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
TotemRPDQMSource::PlanePlots::cluster_profile_cumulative
MonitorElement * cluster_profile_cumulative
Definition: TotemRPDQMSource.cc:88
TotemRPDQMSource::PotPlots::track_u_profile
MonitorElement * track_u_profile
Definition: TotemRPDQMSource.cc:75
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
ESHandle.h
TotemRPDQMSource::tokenCluster
edm::EDGetTokenT< edm::DetSetVector< TotemRPCluster > > tokenCluster
Definition: TotemRPDQMSource.cc:56
TotemRPDQMSource::PotPlots::activity_v
MonitorElement * activity_v
Definition: TotemRPDQMSource.cc:68
mps_update.status
status
Definition: mps_update.py:68
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
edm
HLT enums.
Definition: AlignableModifier.h:19
geometry
Definition: geometry.py:1
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
TotemRPDQMSource::~TotemRPDQMSource
~TotemRPDQMSource() override
Definition: TotemRPDQMSource.cc:195
DQMStore.h
TotemRPDQMSource::PotPlots::activity
MonitorElement * activity
Definition: TotemRPDQMSource.cc:68
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
TotemRPRecHit.h
TotemRPDQMSource
Definition: TotemRPDQMSource.cc:36
DDAxes::x
TotemRPDetId::plane
uint32_t plane() const
Definition: TotemRPDetId.h:51
findQualityFiles.v
v
Definition: findQualityFiles.py:179
TotemRPCluster.h
edm::Handle
Definition: AssociativeIterator.h:50
CTPPSDetId::nPath
Definition: CTPPSDetId.h:87
dqm::legacy::MonitorElement::getTH1F
virtual TH1F * getTH1F() const
Definition: MonitorElement.h:479
TotemRPDetId::setPlane
void setPlane(uint32_t det)
Definition: TotemRPDetId.h:53
TotemRPDetId::isStripsCoordinateUDirection
bool isStripsCoordinateUDirection() const
Definition: TotemRPDetId.h:71
TotemRPDQMSource::PotPlots::event_category
MonitorElement * event_category
Definition: TotemRPDQMSource.cc:73
TotemRPDetId::planeName
void planeName(std::string &name, NameFlag flag=nFull) const
Definition: TotemRPDetId.h:84
TotemRPDQMSource::PotPlots::track_v_profile
MonitorElement * track_v_profile
Definition: TotemRPDQMSource.cc:75
TotemRPDQMSource::geometryToken_
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecord > geometryToken_
Definition: TotemRPDQMSource.cc:61
TotemRPDQMSource::planePlots
std::map< unsigned int, PlanePlots > planePlots
Definition: TotemRPDQMSource.cc:97
TotemRPDQMSource::PotPlots::triggerSectorUVCorrelation_track
MonitorElement * triggerSectorUVCorrelation_track
Definition: TotemRPDQMSource.cc:77
CTPPSGeometry.h
MakerMacros.h
alignCSCRings.s
s
Definition: alignCSCRings.py:92
h
TotemRPDQMSource::PlanePlots
plots related to one RP plane
Definition: TotemRPDQMSource.cc:86
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Calorimetry_cff.dp
dp
Definition: Calorimetry_cff.py:158
TotemRPDQMSource::PlanePlots::PlanePlots
PlanePlots()
Definition: TotemRPDQMSource.cc:93
TotemRPDQMSource::PotPlots::h_planes_fit_u
MonitorElement * h_planes_fit_u
Definition: TotemRPDQMSource.cc:72
edm::LogProblem
Log< level::Error, true > LogProblem
Definition: MessageLogger.h:131
TotemRPDQMSource::PotPlots::hit_plane_hist
MonitorElement * hit_plane_hist
Definition: TotemRPDQMSource.cc:70
dqm::implementation::NavigatorBase::cd
virtual void cd()
Definition: DQMStore.cc:29
TotemRPDQMSource::verbosity
unsigned int verbosity
Definition: TotemRPDQMSource.cc:52
TotemRPDQMSource::PotPlots::activity_per_bx
MonitorElement * activity_per_bx
Definition: TotemRPDQMSource.cc:69
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
TotemRPDQMSource::PotPlots::activity_u
MonitorElement * activity_u
Definition: TotemRPDQMSource.cc:68
DQMEDAnalyzer.h
TotemVFATStatus.h
TotemRPDQMSource::PlanePlots::cluster_size
MonitorElement * cluster_size
Definition: TotemRPDQMSource.cc:90
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
TotemRPDQMSource::tokenLocalTrack
edm::EDGetTokenT< edm::DetSetVector< TotemRPLocalTrack > > tokenLocalTrack
Definition: TotemRPDQMSource.cc:59
TotemRPDQMSource::tokenUVPattern
edm::EDGetTokenT< edm::DetSetVector< TotemRPUVPattern > > tokenUVPattern
Definition: TotemRPDQMSource.cc:58
edm::ParameterSet
Definition: ParameterSet.h:47
HLTObjectsMonitor_cfi.plots
plots
Definition: HLTObjectsMonitor_cfi.py:17
TotemRPDQMSource::PlanePlots::efficiency_den
MonitorElement * efficiency_den
Definition: TotemRPDQMSource.cc:91
TotemRPDQMSource::PlanePlots::digi_profile_cumulative
MonitorElement * digi_profile_cumulative
Definition: TotemRPDQMSource.cc:87
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
Event.h
TotemRPDQMSource::potPlots
std::map< unsigned int, PotPlots > potPlots
Definition: TotemRPDQMSource.cc:83
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:176
edm::DetSetVector::const_iterator
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:102
cms::cuda::V
uint32_t const T *__restrict__ const uint32_t *__restrict__ int32_t int Histo::index_type cudaStream_t V
Definition: HistoContainer.h:51
match
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10
CTPPSDetId::nFull
Definition: CTPPSDetId.h:87
CTPPSDetId
Base class for CTPPS detector IDs.
Definition: CTPPSDetId.h:31
createfilelist.int
int
Definition: createfilelist.py:10
TotemRPDQMSource::PotPlots::vfat_ec_bc_error
MonitorElement * vfat_ec_bc_error
Definition: TotemRPDQMSource.cc:65
TotemRPDQMSource::PotPlots::triggerSectorUVCorrelation_mult2
MonitorElement * triggerSectorUVCorrelation_mult2
Definition: TotemRPDQMSource.cc:76
TotemRPDQMSource::PotPlots::patterns_v
MonitorElement * patterns_v
Definition: TotemRPDQMSource.cc:71
edm::EventSetup
Definition: EventSetup.h:58
TotemRPDQMSource::PotPlots::vfat_problem
MonitorElement * vfat_problem
Definition: TotemRPDQMSource.cc:65
DetSetVector.h
TotemRPDQMSource::PotPlots
plots related to one RP
Definition: TotemRPDQMSource.cc:64
VeryForwardRealGeometryRecord.h
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecord >
InputTag.h
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
TotemRPDQMSource::PlanePlots::efficiency_num
MonitorElement * efficiency_num
Definition: TotemRPDQMSource.cc:91
TotemRPDQMSource::tokenStatus
edm::EDGetTokenT< edm::DetSetVector< TotemVFATStatus > > tokenStatus
Definition: TotemRPDQMSource.cc:54
TotemRPDQMSource::PotPlots::trackHitsCumulativeHist
MonitorElement * trackHitsCumulativeHist
Definition: TotemRPDQMSource.cc:74
TotemRPDQMSource::PotPlots::PotPlots
PotPlots()
Definition: TotemRPDQMSource.cc:79
TotemRPDQMSource::tokenDigi
edm::EDGetTokenT< edm::DetSetVector< TotemRPDigi > > tokenDigi
Definition: TotemRPDQMSource.cc:55
TotemRPDQMSource::PotPlots::activity_per_bx_short
MonitorElement * activity_per_bx_short
Definition: TotemRPDQMSource.cc:69
protons_cff.arm
arm
Definition: protons_cff.py:39
profile_2016_postTS2_cff.rpId
rpId
Definition: profile_2016_postTS2_cff.py:21
TotemRPDQMSource::tokenRecHit
edm::EDGetTokenT< edm::DetSetVector< TotemRPRecHit > > tokenRecHit
Definition: TotemRPDQMSource.cc:57
TotemRPDQMSource::analyze
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
Definition: TotemRPDQMSource.cc:224
std
Definition: JetResolutionObject.h:76
TotemRPDQMSource::PotPlots::h_planes_fit_v
MonitorElement * h_planes_fit_v
Definition: TotemRPDQMSource.cc:72
dqm::implementation::IBooker::book2D
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
TotemRPDQMSource::PotPlots::vfat_corruption
MonitorElement * vfat_corruption
Definition: TotemRPDQMSource.cc:66
TotemRPDetId.h
edm::eventsetup::heterocontainer::insert
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
Definition: HCMethods.h:50
EventSetup.h
RPTopology.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
TotemRPUVPattern::projU
Definition: TotemRPUVPattern.h:34
dqm::implementation::IBooker
Definition: DQMStore.h:43
TotemRPDQMSource::PotPlots::vfat_missing
MonitorElement * vfat_missing
Definition: TotemRPDQMSource.cc:65
ztail.d
d
Definition: ztail.py:151
TotemRPUVPattern.h
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
RunInfoPI::valid
Definition: RunInfoPayloadInspectoHelper.h:16
TotemRPDQMSource::TotemRPDQMSource
TotemRPDQMSource(const edm::ParameterSet &ps)
Definition: TotemRPDQMSource.cc:179
ParameterSet.h
TotemRPDQMSource::PlanePlots::hit_multiplicity
MonitorElement * hit_multiplicity
Definition: TotemRPDQMSource.cc:89
TotemRPLocalTrack.h
createTree.pp
pp
Definition: createTree.py:17
TotemRPDigi.h
TotemRPDQMSource::PotPlots::triggerSectorUVCorrelation_all
MonitorElement * triggerSectorUVCorrelation_all
Definition: TotemRPDQMSource.cc:76
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
event
Definition: event.py:1
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
edm::Event
Definition: Event.h:73
volumeBasedMagneticField_160812_cfi.sectors
sectors
Definition: volumeBasedMagneticField_160812_cfi.py:59
TotemRPDQMSource::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: TotemRPDQMSource.cc:199
TotemRPDetId
Detector ID class for TOTEM Si strip detectors.
Definition: TotemRPDetId.h:29
edm::InputTag
Definition: InputTag.h:15
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
TotemRPDQMSource::PotPlots::patterns_u
MonitorElement * patterns_u
Definition: TotemRPDQMSource.cc:71
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
CTPPSDetId::rpName
void rpName(std::string &name, NameFlag flag=nFull) const
Definition: CTPPSDetId.h:132
CTPPSGeometry::Vector
DetGeomDesc::Translation Vector
Definition: CTPPSGeometry.h:39
edm::DetSet::const_iterator
collection_type::const_iterator const_iterator
Definition: DetSet.h:31