CMS 3D CMS Logo

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