CMS 3D CMS Logo

StandaloneTrackMonitor.cc
Go to the documentation of this file.
1 #include "TFile.h"
2 #include "TH1.h"
3 #include "TMath.h"
4 
12 #include "TPRegexp.h"
22 // -----------------------------
23 // constructors and destructor
24 // -----------------------------
26  : parameters_(ps),
27  moduleName_(parameters_.getUntrackedParameter<std::string>("moduleName", "StandaloneTrackMonitor")),
28  folderName_(parameters_.getUntrackedParameter<std::string>("folderName", "highPurityTracks")),
29  trackTag_(parameters_.getUntrackedParameter<edm::InputTag>("trackInputTag", edm::InputTag("generalTracks"))),
30  bsTag_(parameters_.getUntrackedParameter<edm::InputTag>("offlineBeamSpot", edm::InputTag("offlineBeamSpot"))),
31  vertexTag_(
32  parameters_.getUntrackedParameter<edm::InputTag>("vertexTag", edm::InputTag("offlinePrimaryVertices"))),
33  puSummaryTag_(parameters_.getUntrackedParameter<edm::InputTag>("puTag", edm::InputTag("addPileupInfo"))),
34  clusterTag_(parameters_.getUntrackedParameter<edm::InputTag>("clusterTag", edm::InputTag("siStripClusters"))),
35  trackToken_(consumes<reco::TrackCollection>(trackTag_)),
36  bsToken_(consumes<reco::BeamSpot>(bsTag_)),
37  vertexToken_(consumes<reco::VertexCollection>(vertexTag_)),
38  puSummaryToken_(consumes<std::vector<PileupSummaryInfo> >(puSummaryTag_)),
39  clusterToken_(consumes<edmNew::DetSetVector<SiStripCluster> >(clusterTag_)),
40  trackQuality_(parameters_.getUntrackedParameter<std::string>("trackQuality", "highPurity")),
41  siStripClusterInfo_(consumesCollector()),
42  doPUCorrection_(parameters_.getUntrackedParameter<bool>("doPUCorrection", false)),
43  isMC_(parameters_.getUntrackedParameter<bool>("isMC", false)),
44  haveAllHistograms_(parameters_.getUntrackedParameter<bool>("haveAllHistograms", false)),
45  puScaleFactorFile_(
46  parameters_.getUntrackedParameter<std::string>("puScaleFactorFile", "PileupScaleFactor_run203002.root")),
47  verbose_(parameters_.getUntrackedParameter<bool>("verbose", false)) {
48  trackEtaH_ = nullptr;
49  trackEtaerrH_ = nullptr;
50  trackCosThetaH_ = nullptr;
51  trackThetaerrH_ = nullptr;
52  trackPhiH_ = nullptr;
53  trackPhierrH_ = nullptr;
54  trackPH_ = nullptr;
55  trackPtH_ = nullptr;
56  trackPtUpto2GeVH_ = nullptr;
57  trackPtOver10GeVH_ = nullptr;
58  trackPterrH_ = nullptr;
59  trackqOverpH_ = nullptr;
60  trackqOverperrH_ = nullptr;
61  trackChargeH_ = nullptr;
62  nlostHitsH_ = nullptr;
63  nvalidTrackerHitsH_ = nullptr;
64  nvalidPixelHitsH_ = nullptr;
65  nvalidStripHitsH_ = nullptr;
66  trkLayerwithMeasurementH_ = nullptr;
69  beamSpotXYposH_ = nullptr;
70  beamSpotXYposerrH_ = nullptr;
71  beamSpotZposH_ = nullptr;
72  beamSpotZposerrH_ = nullptr;
73  trackChi2H_ = nullptr;
74  tracknDOFH_ = nullptr;
75  trackd0H_ = nullptr;
76  trackChi2bynDOFH_ = nullptr;
77  vertexXposH_ = nullptr;
78  vertexYposH_ = nullptr;
79  vertexZposH_ = nullptr;
80 
81  nPixBarrelH_ = nullptr;
82  nPixEndcapH_ = nullptr;
83  nStripTIBH_ = nullptr;
84  nStripTOBH_ = nullptr;
85  nStripTECH_ = nullptr;
86  nStripTIDH_ = nullptr;
87  nTracksH_ = nullptr;
88 
89  // for MC only
90  nVertexH_ = nullptr;
91  bunchCrossingH_ = nullptr;
92  nPUH_ = nullptr;
93  trueNIntH_ = nullptr;
94 
95  nHitsVspTH_ = nullptr;
96  nHitsVsEtaH_ = nullptr;
97  nHitsVsCosThetaH_ = nullptr;
98  nHitsVsPhiH_ = nullptr;
99  nHitsVsnVtxH_ = nullptr;
100  nLostHitsVspTH_ = nullptr;
101  nLostHitsVsEtaH_ = nullptr;
102  nLostHitsVsCosThetaH_ = nullptr;
103  nLostHitsVsPhiH_ = nullptr;
104 
105  hOnTrkClusChargeThinH_ = nullptr;
106  hOnTrkClusWidthThinH_ = nullptr;
107  hOnTrkClusChargeThickH_ = nullptr;
108  hOnTrkClusWidthThickH_ = nullptr;
109 
110  hOffTrkClusChargeThinH_ = nullptr;
111  hOffTrkClusWidthThinH_ = nullptr;
112  hOffTrkClusChargeThickH_ = nullptr;
113  hOffTrkClusWidthThickH_ = nullptr;
114 
115  // Read pileup weight factors
116  if (isMC_ && doPUCorrection_) {
117  vpu_.clear();
118  TFile* f1 = TFile::Open(puScaleFactorFile_.c_str());
119  TH1F* h1 = dynamic_cast<TH1F*>(f1->Get("pileupweight"));
120  for (int i = 1; i <= h1->GetNbinsX(); ++i)
121  vpu_.push_back(h1->GetBinContent(i));
122  f1->Close();
123  }
124 }
125 
127  edm::Run const& iRun,
128  edm::EventSetup const& iSetup) {
129  edm::ParameterSet TrackEtaHistoPar = parameters_.getParameter<edm::ParameterSet>("trackEtaH");
130  edm::ParameterSet TrackPtHistoPar = parameters_.getParameter<edm::ParameterSet>("trackPtH");
131 
132  std::string currentFolder = moduleName_ + "/" + folderName_;
133  iBook.setCurrentFolder(currentFolder);
134 
135  // The following are common with the official tool
136  if (haveAllHistograms_) {
137  if (!trackEtaH_)
138  trackEtaH_ = iBook.book1D("trackEta",
139  "Track Eta",
140  TrackEtaHistoPar.getParameter<int32_t>("Xbins"),
141  TrackEtaHistoPar.getParameter<double>("Xmin"),
142  TrackEtaHistoPar.getParameter<double>("Xmax"));
143  if (!trackEtaerrH_)
144  trackEtaerrH_ = iBook.book1D("trackEtaerr", "Track Eta Error", 50, 0.0, 1.0);
145  if (!trackCosThetaH_)
146  trackCosThetaH_ = iBook.book1D("trackCosTheta", "Track Cos(Theta)", 50, -1.0, 1.0);
147  if (!trackThetaerrH_)
148  trackThetaerrH_ = iBook.book1D("trackThetaerr", "Track Theta Error", 50, 0.0, 1.0);
149  if (!trackPhiH_)
150  trackPhiH_ = iBook.book1D("trackPhi", "Track Phi", 70, -3.5, 3.5);
151  if (!trackPhierrH_)
152  trackPhierrH_ = iBook.book1D("trackPhierr", "Track Phi Error", 50, 0.0, 1.0);
153 
154  if (!trackPH_)
155  trackPH_ = iBook.book1D("trackP", "Track 4-momentum", 50, 0.0, 10.0);
156  if (!trackPtH_)
157  trackPtH_ = iBook.book1D("trackPt",
158  "Track Pt",
159  TrackPtHistoPar.getParameter<int32_t>("Xbins"),
160  TrackPtHistoPar.getParameter<double>("Xmin"),
161  TrackPtHistoPar.getParameter<double>("Xmax"));
162  if (!trackPtUpto2GeVH_)
163  trackPtUpto2GeVH_ = iBook.book1D("trackPtUpto2GeV", "Track Pt upto 2GeV", 100, 0, 2.0);
164  if (!trackPtOver10GeVH_)
165  trackPtOver10GeVH_ = iBook.book1D("trackPtOver10GeV", "Track Pt greater than 10 GeV", 100, 0, 100.0);
166  if (!trackPterrH_)
167  trackPterrH_ = iBook.book1D("trackPterr", "Track Pt Error", 100, 0.0, 100.0);
168  if (!trackqOverpH_)
169  trackqOverpH_ = iBook.book1D("trackqOverp", "q Over p", 40, -10.0, 10.0);
170  if (!trackqOverperrH_)
171  trackqOverperrH_ = iBook.book1D("trackqOverperr", "q Over p Error", 50, 0.0, 25.0);
172  if (!trackChargeH_)
173  trackChargeH_ = iBook.book1D("trackCharge", "Track Charge", 50, -5, 5);
174  if (!trackChi2H_)
175  trackChi2H_ = iBook.book1D("trackChi2", "Chi2", 100, 0.0, 100.0);
176  if (!tracknDOFH_)
177  tracknDOFH_ = iBook.book1D("tracknDOF", "nDOF", 100, 0.0, 100.0);
178  if (!trackd0H_)
179  trackd0H_ = iBook.book1D("trackd0", "Track d0", 100, -1, 1);
180  if (!trackChi2bynDOFH_)
181  trackChi2bynDOFH_ = iBook.book1D("trackChi2bynDOF", "Chi2 Over nDOF", 100, 0.0, 10.0);
182 
183  if (!nlostHitsH_)
184  nlostHitsH_ = iBook.book1D("nlostHits", "No. of Lost Hits", 10, 0.0, 10.0);
185  if (!nvalidTrackerHitsH_)
186  nvalidTrackerHitsH_ = iBook.book1D("nvalidTrackerhits", "No. of Valid Tracker Hits", 35, 0.0, 35.0);
187  if (!nvalidPixelHitsH_)
188  nvalidPixelHitsH_ = iBook.book1D("nvalidPixelHits", "No. of Valid Hits in Pixel", 10, 0.0, 10.0);
189  if (!nvalidStripHitsH_)
190  nvalidStripHitsH_ = iBook.book1D("nvalidStripHits", "No.of Valid Hits in Strip", 25, 0.0, 25.0);
191 
193  trkLayerwithMeasurementH_ = iBook.book1D("trkLayerwithMeasurement", "No. of Layers per Track", 25, 0.0, 25.0);
196  iBook.book1D("pixelLayerwithMeasurement", "No. of Pixel Layers per Track", 10, 0.0, 10.0);
199  iBook.book1D("stripLayerwithMeasurement", "No. of Strip Layers per Track", 20, 0.0, 20.0);
200 
201  if (!beamSpotXYposH_)
202  beamSpotXYposH_ = iBook.book1D("beamSpotXYpos", "XY position of beam spot", 40, -4.0, 4.0);
203  if (!beamSpotXYposerrH_)
204  beamSpotXYposerrH_ = iBook.book1D("beamSpotXYposerr", "Error in XY position of beam spot", 20, 0.0, 4.0);
205  if (!beamSpotZposH_)
206  beamSpotZposH_ = iBook.book1D("beamSpotZpos", "Z position of beam spot", 100, -20.0, 20.0);
207  if (!beamSpotZposerrH_)
208  beamSpotZposerrH_ = iBook.book1D("beamSpotZposerr", "Error in Z position of beam spot", 50, 0.0, 5.0);
209 
210  if (!vertexXposH_)
211  vertexXposH_ = iBook.book1D("vertexXpos", "Vertex X position", 50, -1.0, 1.0);
212  if (!vertexYposH_)
213  vertexYposH_ = iBook.book1D("vertexYpos", "Vertex Y position", 50, -1.0, 1.0);
214  if (!vertexZposH_)
215  vertexZposH_ = iBook.book1D("vertexZpos", "Vertex Z position", 100, -20.0, 20.0);
216  if (!nVertexH_)
217  nVertexH_ = iBook.book1D("nVertex", "# of vertices", 60, -0.5, 59.5);
218 
219  if (!nPixBarrelH_)
220  nPixBarrelH_ = iBook.book1D("nHitPixelBarrel", "No. of hits in Pixel Barrel per Track", 20, 0, 20.0);
221  if (!nPixEndcapH_)
222  nPixEndcapH_ = iBook.book1D("nHitPixelEndcap", "No. of hits in Pixel Endcap per Track", 20, 0, 20.0);
223  if (!nStripTIBH_)
224  nStripTIBH_ = iBook.book1D("nHitStripTIB", "No. of hits in Strip TIB per Track", 30, 0, 30.0);
225  if (!nStripTOBH_)
226  nStripTOBH_ = iBook.book1D("nHitStripTOB", "No. of hits in Strip TOB per Track", 30, 0, 30.0);
227  if (!nStripTECH_)
228  nStripTECH_ = iBook.book1D("nHitStripTEC", "No. of hits in Strip TEC per Track", 30, 0, 30.0);
229  if (!nStripTIDH_)
230  nStripTIDH_ = iBook.book1D("nHitStripTID", "No. of hits in Strip TID per Tracks", 30, 0, 30.0);
231 
232  if (!nTracksH_)
233  nTracksH_ = iBook.book1D("nTracks", "No. of Tracks", 100, -0.5, 999.5);
234  }
235  if (isMC_) {
236  if (!bunchCrossingH_)
237  bunchCrossingH_ = iBook.book1D("bunchCrossing", "Bunch Crosssing", 60, 0, 60.0);
238  if (!nPUH_)
239  nPUH_ = iBook.book1D("nPU", "No of Pileup", 60, 0, 60.0);
240  if (!trueNIntH_)
241  trueNIntH_ = iBook.book1D("trueNInt", "True no of Interactions", 60, 0, 60.0);
242  }
243  // Exclusive histograms
244  if (!nHitsVspTH_)
245  nHitsVspTH_ = iBook.bookProfile("nHitsVspT",
246  "Number of Hits Vs pT",
247  TrackPtHistoPar.getParameter<int32_t>("Xbins"),
248  TrackPtHistoPar.getParameter<double>("Xmin"),
249  TrackPtHistoPar.getParameter<double>("Xmax"),
250  0.0,
251  0.0,
252  "g");
253  if (!nHitsVsnVtxH_)
254  nHitsVsnVtxH_ = iBook.bookProfile("nHitsVsnVtx", "Number of Hits Vs Number of Vertex", 100, 0.0, 50, 0.0, 0.0, "g");
255  if (!nHitsVsEtaH_)
256  nHitsVsEtaH_ = iBook.bookProfile("nHitsVsEta",
257  "Number of Hits Vs Eta",
258  TrackEtaHistoPar.getParameter<int32_t>("Xbins"),
259  TrackEtaHistoPar.getParameter<double>("Xmin"),
260  TrackEtaHistoPar.getParameter<double>("Xmax"),
261  0.0,
262  0.0,
263  "g");
264  if (!nHitsVsCosThetaH_)
266  iBook.bookProfile("nHitsVsCosTheta", "Number of Hits Vs Cos(Theta)", 50, -1.0, 1.0, 0.0, 0.0, "g");
267  if (!nHitsVsPhiH_)
268  nHitsVsPhiH_ = iBook.bookProfile("nHitsVsPhi", "Number of Hits Vs Phi", 100, -3.5, 3.5, 0.0, 0.0, "g");
269 
270  if (!nLostHitsVspTH_)
271  nLostHitsVspTH_ = iBook.bookProfile("nLostHitsVspT",
272  "Number of Lost Hits Vs pT",
273  TrackPtHistoPar.getParameter<int32_t>("Xbins"),
274  TrackPtHistoPar.getParameter<double>("Xmin"),
275  TrackPtHistoPar.getParameter<double>("Xmax"),
276  0.0,
277  0.0,
278  "g");
279  if (!nLostHitsVsEtaH_)
280  nLostHitsVsEtaH_ = iBook.bookProfile("nLostHitsVsEta",
281  "Number of Lost Hits Vs Eta",
282  TrackEtaHistoPar.getParameter<int32_t>("Xbins"),
283  TrackEtaHistoPar.getParameter<double>("Xmin"),
284  TrackEtaHistoPar.getParameter<double>("Xmax"),
285  0.0,
286  0.0,
287  "g");
290  iBook.bookProfile("nLostHitsVsCosTheta", "Number of Lost Hits Vs Cos(Theta)", 50, -1.0, 1.0, 0.0, 0.0, "g");
291  if (!nLostHitsVsPhiH_)
292  nLostHitsVsPhiH_ = iBook.bookProfile("nLostHitsVsPhi", "Number of Lost Hits Vs Phi", 100, -3.5, 3.5, 0.0, 0.0, "g");
293 
294  // On and off-track cluster properties
297  iBook.book1D("hOnTrkClusChargeThin", "On-track Cluster Charge (Thin Sensor)", 100, 0, 1000);
299  hOnTrkClusWidthThinH_ = iBook.book1D("hOnTrkClusWidthThin", "On-track Cluster Width (Thin Sensor)", 20, -0.5, 19.5);
302  iBook.book1D("hOnTrkClusChargeThick", "On-track Cluster Charge (Thick Sensor)", 100, 0, 1000);
305  iBook.book1D("hOnTrkClusWidthThick", "On-track Cluster Width (Thick Sensor)", 20, -0.5, 19.5);
306 
309  iBook.book1D("hOffTrkClusChargeThin", "Off-track Cluster Charge (Thin Sensor)", 100, 0, 1000);
312  iBook.book1D("hOffTrkClusWidthThin", "Off-track Cluster Width (Thin Sensor)", 20, -0.5, 19.5);
315  iBook.book1D("hOffTrkClusChargeThick", "Off-track Cluster Charge (Thick Sensor)", 100, 0, 1000);
318  iBook.book1D("hOffTrkClusWidthThick", "Off-track Cluster Width (Thick Sensor)", 20, -0.5, 19.5);
319 }
321  // Get event setup (to get global transformation)
323  iSetup.get<TrackerDigiGeometryRecord>().get(geomHandle);
324  const TrackerGeometry& tkGeom = (*geomHandle);
325 
327 
328  // Primary vertex collection
330  iEvent.getByToken(vertexToken_, vertexColl);
331 
332  // Beam spot
334  iEvent.getByToken(bsToken_, beamSpot);
335 
336  // Track collection
338  iEvent.getByToken(trackToken_, tracks);
339 
340  // Access PU information
341  double wfac = 1.0; // for data
342  if (!iEvent.isRealData()) {
344  iEvent.getByToken(puSummaryToken_, PupInfo);
345 
346  if (verbose_)
347  edm::LogInfo("StandaloneTrackMonitor") << "nPUColl = " << PupInfo->size();
348  for (auto const& v : *PupInfo) {
349  int bx = v.getBunchCrossing();
350  if (bunchCrossingH_)
352  if (bx == 0) {
353  if (nPUH_)
354  nPUH_->Fill(v.getPU_NumInteractions());
355  int ntrueInt = v.getTrueNumInteractions();
356  if (trueNIntH_)
357  trueNIntH_->Fill(ntrueInt);
358  if (doPUCorrection_)
359  if (ntrueInt > -1 && ntrueInt < int(vpu_.size()))
360  wfac = vpu_.at(ntrueInt);
361  }
362  }
363  }
364  if (verbose_)
365  edm::LogInfo("StandaloneTrackMonitor") << "PU reweight factor = " << wfac;
366 
367  if (!vertexColl.isValid())
368  edm::LogError("DqmTrackStudy") << "Error! Failed to get reco::Vertex Collection, " << vertexTag_;
369  if (haveAllHistograms_) {
370  int nvtx = (vertexColl.isValid() ? vertexColl->size() : 0);
371  nVertexH_->Fill(nvtx);
372  }
373 
374  int ntracks = 0;
375  if (tracks.isValid()) {
376  edm::LogInfo("StandaloneTrackMonitor") << "Total # of Tracks: " << tracks->size();
377  if (verbose_)
378  edm::LogInfo("StandaloneTrackMonitor") << "Total # of Tracks: " << tracks->size();
380  for (auto const& track : *tracks) {
381  if (!track.quality(quality))
382  continue;
383 
384  ++ntracks;
385 
386  double eta = track.eta();
387  double theta = track.theta();
388  double phi = track.phi();
389  double pt = track.pt();
390 
391  const reco::HitPattern& hitp = track.hitPattern();
392  double nValidTrackerHits = hitp.numberOfValidTrackerHits();
393  nHitsVsEtaH_->Fill(eta, nValidTrackerHits);
394  nHitsVsCosThetaH_->Fill(std::cos(theta), nValidTrackerHits);
395  nHitsVsPhiH_->Fill(phi, nValidTrackerHits);
396  nHitsVspTH_->Fill(pt, nValidTrackerHits);
397  nHitsVsnVtxH_->Fill(vertexColl->size(), nValidTrackerHits);
398 
399  int nLostHits = track.numberOfLostHits();
400  nLostHitsVspTH_->Fill(pt, nLostHits);
401  nLostHitsVsEtaH_->Fill(eta, nLostHits);
403  nLostHitsVsPhiH_->Fill(phi, nLostHits);
404 
405  double nValidPixelHits = hitp.numberOfValidPixelHits();
406  double nValidStripHits = hitp.numberOfValidStripHits();
407  double pixelLayersWithMeasurement = hitp.pixelLayersWithMeasurement();
408  double stripLayersWithMeasurement = hitp.stripLayersWithMeasurement();
409 
410  if (haveAllHistograms_) {
411  double etaError = track.etaError();
412  double thetaError = track.thetaError();
413  double phiError = track.phiError();
414  double p = track.p();
415  double ptError = track.ptError();
416  double qoverp = track.qoverp();
417  double qoverpError = track.qoverpError();
418  double charge = track.charge();
419 
420  double trackerLayersWithMeasurement = hitp.trackerLayersWithMeasurement();
421 
422  double dxy = track.dxy(beamSpot->position());
423  double dxyError = track.dxyError();
424  double dz = track.dz(beamSpot->position());
425  double dzError = track.dzError();
426 
427  double trkd0 = track.d0();
428  double chi2 = track.chi2();
429  double ndof = track.ndof();
430  double vx = track.vx();
431  double vy = track.vy();
432  double vz = track.vz();
433 
434  // Fill the histograms
435  trackEtaH_->Fill(eta, wfac);
436  trackEtaerrH_->Fill(etaError, wfac);
438  trackThetaerrH_->Fill(thetaError, wfac);
439  trackPhiH_->Fill(phi, wfac);
440  trackPhierrH_->Fill(phiError, wfac);
441  trackPH_->Fill(p, wfac);
442  trackPtH_->Fill(pt, wfac);
443  if (pt <= 2)
444  trackPtUpto2GeVH_->Fill(pt, wfac);
445  if (pt >= 10)
446  trackPtOver10GeVH_->Fill(pt, wfac);
447  trackPterrH_->Fill(ptError, wfac);
448  trackqOverpH_->Fill(qoverp, wfac);
449  trackqOverperrH_->Fill(qoverpError, wfac);
450  trackChargeH_->Fill(charge, wfac);
451  trackChi2H_->Fill(chi2, wfac);
452  trackd0H_->Fill(trkd0, wfac);
453  tracknDOFH_->Fill(ndof, wfac);
454  trackChi2bynDOFH_->Fill(chi2 / ndof, wfac);
455 
456  nlostHitsH_->Fill(nLostHits, wfac);
457  nvalidTrackerHitsH_->Fill(nValidTrackerHits, wfac);
458  nvalidPixelHitsH_->Fill(nValidPixelHits, wfac);
459  nvalidStripHitsH_->Fill(nValidStripHits, wfac);
460 
461  trkLayerwithMeasurementH_->Fill(trackerLayersWithMeasurement, wfac);
462  pixelLayerwithMeasurementH_->Fill(pixelLayersWithMeasurement, wfac);
463  stripLayerwithMeasurementH_->Fill(stripLayersWithMeasurement, wfac);
464 
465  beamSpotXYposH_->Fill(dxy, wfac);
466  beamSpotXYposerrH_->Fill(dxyError, wfac);
467  beamSpotZposH_->Fill(dz, wfac);
468  beamSpotZposerrH_->Fill(dzError, wfac);
469 
470  vertexXposH_->Fill(vx, wfac);
471  vertexYposH_->Fill(vy, wfac);
472  vertexZposH_->Fill(vz, wfac);
473  }
474  int nPixBarrel = 0, nPixEndcap = 0, nStripTIB = 0, nStripTOB = 0, nStripTEC = 0, nStripTID = 0;
475  for (auto it = track.recHitsBegin(); it != track.recHitsEnd(); ++it) {
476  const TrackingRecHit& hit = (**it);
477  if (hit.isValid()) {
478  if (hit.geographicalId().det() == DetId::Tracker) {
479  int subdetId = hit.geographicalId().subdetId();
480  if (subdetId == PixelSubdetector::PixelBarrel)
481  ++nPixBarrel;
482  else if (subdetId == PixelSubdetector::PixelEndcap)
483  ++nPixEndcap;
484  else if (subdetId == StripSubdetector::TIB)
485  ++nStripTIB;
486  else if (subdetId == StripSubdetector::TOB)
487  ++nStripTOB;
488  else if (subdetId == StripSubdetector::TEC)
489  ++nStripTEC;
490  else if (subdetId == StripSubdetector::TID)
491  ++nStripTID;
492 
493  // Find on-track clusters
494  processHit(hit, iSetup, tkGeom, wfac);
495  }
496  }
497  }
498  if (verbose_)
499  edm::LogInfo("StandaloneTrackMonitor")
500  << " >>> HITs: nPixBarrel: " << nPixBarrel << " nPixEndcap: " << nPixEndcap << " nStripTIB: " << nStripTIB
501  << " nStripTOB: " << nStripTOB << " nStripTEC: " << nStripTEC << " nStripTID: " << nStripTID;
502  if (haveAllHistograms_) {
503  nPixBarrelH_->Fill(nPixBarrel, wfac);
504  nPixEndcapH_->Fill(nPixEndcap, wfac);
505  nStripTIBH_->Fill(nStripTIB, wfac);
506  nStripTOBH_->Fill(nStripTOB, wfac);
507  nStripTECH_->Fill(nStripTEC, wfac);
508  nStripTIDH_->Fill(nStripTID, wfac);
509  }
510  }
511  } else {
512  edm::LogError("DqmTrackStudy") << "Error! Failed to get reco::Track collection, " << trackTag_;
513  }
514  if (haveAllHistograms_)
515  nTracksH_->Fill(ntracks);
516 
517  // off track cluster properties
518  processClusters(iEvent, iSetup, tkGeom, wfac);
519 }
521  edm::EventSetup const& iSetup,
522  const TrackerGeometry& tkGeom,
523  double wfac) {
524  // SiStripClusters
526  iEvent.getByToken(clusterToken_, clusterHandle);
527 
528  if (clusterHandle.isValid()) {
529  // Loop on Dets
530  for (edmNew::DetSetVector<SiStripCluster>::const_iterator dsvit = clusterHandle->begin();
531  dsvit != clusterHandle->end();
532  ++dsvit) {
533  uint32_t detId = dsvit->id();
534  std::map<uint32_t, std::set<const SiStripCluster*> >::iterator jt = clusterMap_.find(detId);
535  bool detid_found = (jt != clusterMap_.end()) ? true : false;
536 
537  // Loop on Clusters
538  for (edmNew::DetSet<SiStripCluster>::const_iterator clusit = dsvit->begin(); clusit != dsvit->end(); ++clusit) {
539  if (detid_found) {
540  std::set<const SiStripCluster*>& s = jt->second;
541  if (s.find(&*clusit) != s.end())
542  continue;
543  }
544 
545  siStripClusterInfo_.setCluster(*clusit, detId);
547  float width = siStripClusterInfo_.width();
548 
549  const GeomDetUnit* detUnit = tkGeom.idToDetUnit(detId);
550  float thickness = detUnit->surface().bounds().thickness(); // unit cm
551  if (thickness > 0.035) {
554  } else {
557  }
558  }
559  }
560  } else {
561  edm::LogError("StandaloneTrackMonitor") << "ClusterCollection " << clusterTag_ << " not valid!!" << std::endl;
562  }
563 }
565  edm::EventSetup const& iSetup,
566  const TrackerGeometry& tkGeom,
567  double wfac) {
568  uint32_t detid = recHit.geographicalId();
569  const GeomDetUnit* detUnit = tkGeom.idToDetUnit(detid);
570  float thickness = detUnit->surface().bounds().thickness(); // unit cm
571 
572  auto const& thit = static_cast<BaseTrackerRecHit const&>(recHit);
573  if (!thit.isValid())
574  return;
575 
576  auto const& clus = thit.firstClusterRef();
577  if (!clus.isValid())
578  return;
579  if (!clus.isStrip())
580  return;
581 
582  if (thit.isMatched()) {
583  const SiStripMatchedRecHit2D& matchedHit = dynamic_cast<const SiStripMatchedRecHit2D&>(recHit);
584 
585  auto& clusterM = matchedHit.monoCluster();
586  siStripClusterInfo_.setCluster(clusterM, detid);
587  if (thickness > 0.035) {
590  } else {
593  }
594  addClusterToMap(detid, &clusterM);
595 
596  auto& clusterS = matchedHit.stereoCluster();
597  siStripClusterInfo_.setCluster(clusterS, detid);
598  if (thickness > 0.035) {
601  } else {
604  }
605  addClusterToMap(detid, &clusterS);
606  } else {
607  auto& cluster = clus.stripCluster();
608  siStripClusterInfo_.setCluster(cluster, detid);
609  if (thickness > 0.035) {
612  } else {
615  }
616  addClusterToMap(detid, &cluster);
617  }
618 }
619 void StandaloneTrackMonitor::addClusterToMap(uint32_t detid, const SiStripCluster* cluster) {
620  std::map<uint32_t, std::set<const SiStripCluster*> >::iterator it = clusterMap_.find(detid);
621  if (it == clusterMap_.end()) {
622  std::set<const SiStripCluster*> s;
623  s.insert(cluster);
624  clusterMap_.insert(std::pair<uint32_t, std::set<const SiStripCluster*> >(detid, s));
625  } else {
626  std::set<const SiStripCluster*>& s = it->second;
627  s.insert(cluster);
628  }
629 }
630 // Define this as a plug-in
StandaloneTrackMonitor::siStripClusterInfo_
SiStripClusterInfo siStripClusterInfo_
Definition: StandaloneTrackMonitor.h:65
StandaloneTrackMonitor::nHitsVsEtaH_
MonitorElement * nHitsVsEtaH_
Definition: StandaloneTrackMonitor.h:125
ApeEstimator_cff.width
width
Definition: ApeEstimator_cff.py:24
Handle.h
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
PileupSummaryInfo.h
electrons_cff.bool
bool
Definition: electrons_cff.py:372
mps_fire.i
i
Definition: mps_fire.py:355
StandaloneTrackMonitor::beamSpotZposH_
MonitorElement * beamSpotZposH_
Definition: StandaloneTrackMonitor.h:101
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
StandaloneTrackMonitor::nPixEndcapH_
MonitorElement * nPixEndcapH_
Definition: StandaloneTrackMonitor.h:110
StandaloneTrackMonitor::nHitsVsCosThetaH_
MonitorElement * nHitsVsCosThetaH_
Definition: StandaloneTrackMonitor.h:126
funct::false
false
Definition: Factorize.h:34
PixelSubdetector::PixelEndcap
Definition: PixelSubdetector.h:11
TrackerGeometry.h
GeomDet
Definition: GeomDet.h:27
PixelSubdetector::PixelBarrel
Definition: PixelSubdetector.h:11
StandaloneTrackMonitor::nVertexH_
MonitorElement * nVertexH_
Definition: StandaloneTrackMonitor.h:107
StandaloneTrackMonitor::nTracksH_
MonitorElement * nTracksH_
Definition: StandaloneTrackMonitor.h:115
StandaloneTrackMonitor::parameters_
edm::ParameterSet parameters_
Definition: StandaloneTrackMonitor.h:49
align::BeamSpot
Definition: StructureType.h:89
StandaloneTrackMonitor::nvalidPixelHitsH_
MonitorElement * nvalidPixelHitsH_
Definition: StandaloneTrackMonitor.h:93
SiStripMatchedRecHit2D::stereoCluster
SiStripCluster const & stereoCluster() const
Definition: SiStripMatchedRecHit2D.h:40
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
StandaloneTrackMonitor::trackChargeH_
MonitorElement * trackChargeH_
Definition: StandaloneTrackMonitor.h:85
edm::Run
Definition: Run.h:45
StandaloneTrackMonitor::trackPtUpto2GeVH_
MonitorElement * trackPtUpto2GeVH_
Definition: StandaloneTrackMonitor.h:80
StandaloneTrackMonitor::tracknDOFH_
MonitorElement * tracknDOFH_
Definition: StandaloneTrackMonitor.h:87
edm
HLT enums.
Definition: AlignableModifier.h:19
StandaloneTrackMonitor::vertexXposH_
MonitorElement * vertexXposH_
Definition: StandaloneTrackMonitor.h:104
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
StandaloneTrackMonitor::clusterTag_
const edm::InputTag clusterTag_
Definition: StandaloneTrackMonitor.h:57
StandaloneTrackMonitor::hOffTrkClusChargeThinH_
MonitorElement * hOffTrkClusChargeThinH_
Definition: StandaloneTrackMonitor.h:138
reco::VertexCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
edm::LogInfo
Definition: MessageLogger.h:254
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
StandaloneTrackMonitor::trackPterrH_
MonitorElement * trackPterrH_
Definition: StandaloneTrackMonitor.h:82
edmNew::DetSetVector::const_iterator
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
Definition: DetSetVectorNew.h:231
StandaloneTrackMonitor::folderName_
std::string folderName_
Definition: StandaloneTrackMonitor.h:52
StandaloneTrackMonitor::trueNIntH_
MonitorElement * trueNIntH_
Definition: StandaloneTrackMonitor.h:120
reco::TrackBase::TrackQuality
TrackQuality
track quality
Definition: TrackBase.h:150
GluedGeomDet.h
StandaloneTrackMonitor::trackPhiH_
MonitorElement * trackPhiH_
Definition: StandaloneTrackMonitor.h:76
StandaloneTrackMonitor::moduleName_
std::string moduleName_
Definition: StandaloneTrackMonitor.h:51
StandaloneTrackMonitor::trackThetaerrH_
MonitorElement * trackThetaerrH_
Definition: StandaloneTrackMonitor.h:75
StandaloneTrackMonitor::stripLayerwithMeasurementH_
MonitorElement * stripLayerwithMeasurementH_
Definition: StandaloneTrackMonitor.h:97
StandaloneTrackMonitor.h
StandaloneTrackMonitor::vertexZposH_
MonitorElement * vertexZposH_
Definition: StandaloneTrackMonitor.h:106
StandaloneTrackMonitor::trackChi2bynDOFH_
MonitorElement * trackChi2bynDOFH_
Definition: StandaloneTrackMonitor.h:89
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
findQualityFiles.v
v
Definition: findQualityFiles.py:179
hltPixelTracks_cff.chi2
chi2
Definition: hltPixelTracks_cff.py:25
StandaloneTrackMonitor::trackCosThetaH_
MonitorElement * trackCosThetaH_
Definition: StandaloneTrackMonitor.h:74
StandaloneTrackMonitor::nPixBarrelH_
MonitorElement * nPixBarrelH_
Definition: StandaloneTrackMonitor.h:109
StandaloneTrackMonitor::nStripTIBH_
MonitorElement * nStripTIBH_
Definition: StandaloneTrackMonitor.h:111
edm::Handle< reco::VertexCollection >
StandaloneTrackMonitor::puScaleFactorFile_
const std::string puScaleFactorFile_
Definition: StandaloneTrackMonitor.h:69
StandaloneTrackMonitor::trackPhierrH_
MonitorElement * trackPhierrH_
Definition: StandaloneTrackMonitor.h:77
StandaloneTrackMonitor::addClusterToMap
void addClusterToMap(uint32_t detid, const SiStripCluster *cluster)
Definition: StandaloneTrackMonitor.cc:619
StandaloneTrackMonitor::trackd0H_
MonitorElement * trackd0H_
Definition: StandaloneTrackMonitor.h:88
rpcPointValidation_cfi.recHit
recHit
Definition: rpcPointValidation_cfi.py:7
edmNew
Definition: DetSet2RangeMap.h:11
reco::HitPattern::pixelLayersWithMeasurement
int pixelLayersWithMeasurement() const
Definition: HitPattern.cc:492
StandaloneTrackMonitor::nStripTOBH_
MonitorElement * nStripTOBH_
Definition: StandaloneTrackMonitor.h:112
SiStripClusterInfo::width
uint16_t width() const
Definition: SiStripClusterInfo.h:31
StandaloneTrackMonitor::trackEtaH_
MonitorElement * trackEtaH_
Definition: StandaloneTrackMonitor.h:72
TrackerGeometry::idToDetUnit
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Definition: TrackerGeometry.cc:183
simKBmtfDigis_cfi.bx
bx
Definition: simKBmtfDigis_cfi.py:55
ndof
Definition: HIMultiTrackSelector.h:49
StandaloneTrackMonitor::hOffTrkClusWidthThinH_
MonitorElement * hOffTrkClusWidthThinH_
Definition: StandaloneTrackMonitor.h:139
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
MakerMacros.h
alignCSCRings.s
s
Definition: alignCSCRings.py:92
StandaloneTrackMonitor::puSummaryToken_
const edm::EDGetTokenT< std::vector< PileupSummaryInfo > > puSummaryToken_
Definition: StandaloneTrackMonitor.h:61
reco::HitPattern
Definition: HitPattern.h:147
reco::HitPattern::stripLayersWithMeasurement
int stripLayersWithMeasurement() const
Definition: HitPattern.h:974
StandaloneTrackMonitor::analyze
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
Definition: StandaloneTrackMonitor.cc:320
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
Track.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
TrackFwd.h
StandaloneTrackMonitor::isMC_
const bool isMC_
Definition: StandaloneTrackMonitor.h:67
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
BeamSpot.h
StandaloneTrackMonitor::processClusters
void processClusters(edm::Event const &iEvent, edm::EventSetup const &iSetup, const TrackerGeometry &tkGeom, double wfac=1)
Definition: StandaloneTrackMonitor.cc:520
reco::HitPattern::trackerLayersWithMeasurement
int trackerLayersWithMeasurement() const
Definition: HitPattern.cc:513
StandaloneTrackMonitor::hOffTrkClusWidthThickH_
MonitorElement * hOffTrkClusWidthThickH_
Definition: StandaloneTrackMonitor.h:141
StandaloneTrackMonitor::nStripTIDH_
MonitorElement * nStripTIDH_
Definition: StandaloneTrackMonitor.h:114
StandaloneTrackMonitor::bsToken_
const edm::EDGetTokenT< reco::BeamSpot > bsToken_
Definition: StandaloneTrackMonitor.h:59
Calorimetry_cff.thickness
thickness
Definition: Calorimetry_cff.py:114
Service.h
PVValHelper::eta
Definition: PVValidationHelpers.h:69
StandaloneTrackMonitor::vpu_
std::vector< float > vpu_
Definition: StandaloneTrackMonitor.h:145
StandaloneTrackMonitor::nHitsVsPhiH_
MonitorElement * nHitsVsPhiH_
Definition: StandaloneTrackMonitor.h:127
StandaloneTrackMonitor::nvalidTrackerHitsH_
MonitorElement * nvalidTrackerHitsH_
Definition: StandaloneTrackMonitor.h:92
TrackerDigiGeometryRecord
Definition: TrackerDigiGeometryRecord.h:15
Surface::bounds
const Bounds & bounds() const
Definition: Surface.h:87
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
edm::ESHandle< TrackerGeometry >
dqm::implementation::IBooker::bookProfile
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
Definition: DQMStore.h:322
StandaloneTrackMonitor::trackChi2H_
MonitorElement * trackChi2H_
Definition: StandaloneTrackMonitor.h:86
theta
Geom::Theta< T > theta() const
Definition: Basic3DVectorLD.h:150
StripSubdetector::TIB
static constexpr auto TIB
Definition: StripSubdetector.h:16
StandaloneTrackMonitor::nLostHitsVsEtaH_
MonitorElement * nLostHitsVsEtaH_
Definition: StandaloneTrackMonitor.h:129
StandaloneTrackMonitor::hOnTrkClusChargeThinH_
MonitorElement * hOnTrkClusChargeThinH_
Definition: StandaloneTrackMonitor.h:133
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Vertex.h
StandaloneTrackMonitor::hOffTrkClusChargeThickH_
MonitorElement * hOffTrkClusChargeThickH_
Definition: StandaloneTrackMonitor.h:140
StandaloneTrackMonitor::hOnTrkClusWidthThinH_
MonitorElement * hOnTrkClusWidthThinH_
Definition: StandaloneTrackMonitor.h:134
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
SiStripClusterInfo::setCluster
void setCluster(const SiStripCluster &cluster, int detId)
Definition: SiStripClusterInfo.cc:16
StandaloneTrackMonitor::nStripTECH_
MonitorElement * nStripTECH_
Definition: StandaloneTrackMonitor.h:113
TrackerDigiGeometryRecord.h
StandaloneTrackMonitor::trackPtH_
MonitorElement * trackPtH_
Definition: StandaloneTrackMonitor.h:79
Bounds::thickness
virtual float thickness() const =0
StandaloneTrackMonitor::beamSpotXYposH_
MonitorElement * beamSpotXYposH_
Definition: StandaloneTrackMonitor.h:99
StandaloneTrackMonitor::trackPH_
MonitorElement * trackPH_
Definition: StandaloneTrackMonitor.h:78
StandaloneTrackMonitor::trackToken_
const edm::EDGetTokenT< reco::TrackCollection > trackToken_
Definition: StandaloneTrackMonitor.h:58
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::ParameterSet
Definition: ParameterSet.h:36
StandaloneTrackMonitor::verbose_
const bool verbose_
Definition: StandaloneTrackMonitor.h:70
edm::LogError
Definition: MessageLogger.h:183
DetId::Tracker
Definition: DetId.h:25
StandaloneTrackMonitor::nLostHitsVsCosThetaH_
MonitorElement * nLostHitsVsCosThetaH_
Definition: StandaloneTrackMonitor.h:130
StandaloneTrackMonitor::trackqOverperrH_
MonitorElement * trackqOverperrH_
Definition: StandaloneTrackMonitor.h:84
StandaloneTrackMonitor::vertexYposH_
MonitorElement * vertexYposH_
Definition: StandaloneTrackMonitor.h:105
StandaloneTrackMonitor::StandaloneTrackMonitor
StandaloneTrackMonitor(const edm::ParameterSet &)
Definition: StandaloneTrackMonitor.cc:25
iEvent
int iEvent
Definition: GenABIO.cc:224
StandaloneTrackMonitor::nvalidStripHitsH_
MonitorElement * nvalidStripHitsH_
Definition: StandaloneTrackMonitor.h:94
edm::EventSetup
Definition: EventSetup.h:57
SiStripClusterInfo::charge
uint16_t charge() const
Definition: SiStripClusterInfo.h:43
StandaloneTrackMonitor
Definition: StandaloneTrackMonitor.h:31
get
#define get
StandaloneTrackMonitor::bunchCrossingH_
MonitorElement * bunchCrossingH_
Definition: StandaloneTrackMonitor.h:118
StandaloneTrackMonitor::beamSpotXYposerrH_
MonitorElement * beamSpotXYposerrH_
Definition: StandaloneTrackMonitor.h:100
OmniClusterRef.h
StandaloneTrackMonitor::beamSpotZposerrH_
MonitorElement * beamSpotZposerrH_
Definition: StandaloneTrackMonitor.h:102
StandaloneTrackMonitor::clusterMap_
std::map< uint32_t, std::set< const SiStripCluster * > > clusterMap_
Definition: StandaloneTrackMonitor.h:146
muonME0PseudoDigis_cfi.etaError
etaError
Definition: muonME0PseudoDigis_cfi.py:10
TrackingRecHit
Definition: TrackingRecHit.h:21
StandaloneTrackMonitor::doPUCorrection_
const bool doPUCorrection_
Definition: StandaloneTrackMonitor.h:66
BaseTrackerRecHit.h
reco::TrackBase::qualityByName
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:126
VertexFwd.h
DDAxes::phi
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
SiStripClusterInfo::initEvent
void initEvent(const edm::EventSetup &iSetup)
Definition: SiStripClusterInfo.cc:10
StandaloneTrackMonitor::trackPtOver10GeVH_
MonitorElement * trackPtOver10GeVH_
Definition: StandaloneTrackMonitor.h:81
std
Definition: JetResolutionObject.h:76
StripSubdetector::TEC
static constexpr auto TEC
Definition: StripSubdetector.h:19
StandaloneTrackMonitor::nLostHitsVsPhiH_
MonitorElement * nLostHitsVsPhiH_
Definition: StandaloneTrackMonitor.h:131
PVValHelper::dxy
Definition: PVValidationHelpers.h:47
qcdUeDQM_cfi.quality
quality
Definition: qcdUeDQM_cfi.py:31
reco::HitPattern::numberOfValidStripHits
int numberOfValidStripHits() const
Definition: HitPattern.h:812
SiStripMatchedRecHit2D
Definition: SiStripMatchedRecHit2D.h:8
reco::HitPattern::numberOfValidTrackerHits
int numberOfValidTrackerHits() const
Definition: HitPattern.h:788
DetId.h
PVValHelper::dz
Definition: PVValidationHelpers.h:50
StandaloneTrackMonitor::hOnTrkClusChargeThickH_
MonitorElement * hOnTrkClusChargeThickH_
Definition: StandaloneTrackMonitor.h:135
StandaloneTrackMonitor::trackqOverpH_
MonitorElement * trackqOverpH_
Definition: StandaloneTrackMonitor.h:83
StandaloneTrackMonitor::hOnTrkClusWidthThickH_
MonitorElement * hOnTrkClusWidthThickH_
Definition: StandaloneTrackMonitor.h:136
SiStripMatchedRecHit2D::monoCluster
SiStripCluster const & monoCluster() const
Definition: SiStripMatchedRecHit2D.h:41
StandaloneTrackMonitor::pixelLayerwithMeasurementH_
MonitorElement * pixelLayerwithMeasurementH_
Definition: StandaloneTrackMonitor.h:96
StandaloneTrackMonitor::clusterToken_
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusterToken_
Definition: StandaloneTrackMonitor.h:62
StandaloneTrackMonitor::nPUH_
MonitorElement * nPUH_
Definition: StandaloneTrackMonitor.h:119
StandaloneTrackMonitor::trackTag_
const edm::InputTag trackTag_
Definition: StandaloneTrackMonitor.h:53
StandaloneTrackMonitor::trackEtaerrH_
MonitorElement * trackEtaerrH_
Definition: StandaloneTrackMonitor.h:73
StripSubdetector::TOB
static constexpr auto TOB
Definition: StripSubdetector.h:18
StandaloneTrackMonitor::trackQuality_
const std::string trackQuality_
Definition: StandaloneTrackMonitor.h:64
StandaloneTrackMonitor::nLostHitsVspTH_
MonitorElement * nLostHitsVspTH_
Definition: StandaloneTrackMonitor.h:128
dqm::implementation::IBooker
Definition: DQMStore.h:43
reco::HitPattern::numberOfValidPixelHits
int numberOfValidPixelHits() const
Definition: HitPattern.h:800
StandaloneTrackMonitor::vertexToken_
const edm::EDGetTokenT< reco::VertexCollection > vertexToken_
Definition: StandaloneTrackMonitor.h:60
StandaloneTrackMonitor::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: StandaloneTrackMonitor.cc:126
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
SiStripMatchedRecHit2D.h
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
edm::Event
Definition: Event.h:73
DeadROC_duringRun.f1
f1
Definition: DeadROC_duringRun.py:219
StandaloneTrackMonitor::nlostHitsH_
MonitorElement * nlostHitsH_
Definition: StandaloneTrackMonitor.h:91
SiStripCluster
Definition: SiStripCluster.h:9
StandaloneTrackMonitor::nHitsVsnVtxH_
MonitorElement * nHitsVsnVtxH_
Definition: StandaloneTrackMonitor.h:124
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
StandaloneTrackMonitor::trkLayerwithMeasurementH_
MonitorElement * trkLayerwithMeasurementH_
Definition: StandaloneTrackMonitor.h:95
StripSubdetector::TID
static constexpr auto TID
Definition: StripSubdetector.h:17
PileupSummaryInfo
Definition: PileupSummaryInfo.h:22
StandaloneTrackMonitor::processHit
void processHit(const TrackingRecHit &recHit, edm::EventSetup const &iSetup, const TrackerGeometry &tkGeom, double wfac=1)
Definition: StandaloneTrackMonitor.cc:564
hit
Definition: SiStripHitEffFromCalibTree.cc:88
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
StandaloneTrackMonitor::vertexTag_
const edm::InputTag vertexTag_
Definition: StandaloneTrackMonitor.h:55
muonME0PseudoDigis_cfi.phiError
phiError
Definition: muonME0PseudoDigis_cfi.py:9
TrackerGeometry
Definition: TrackerGeometry.h:14
StandaloneTrackMonitor::nHitsVspTH_
MonitorElement * nHitsVspTH_
Definition: StandaloneTrackMonitor.h:123
edmNew::DetSet::const_iterator
const data_type * const_iterator
Definition: DetSetNew.h:31
StandaloneTrackMonitor::haveAllHistograms_
const bool haveAllHistograms_
Definition: StandaloneTrackMonitor.h:68