Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix rec hits vs ls in tracking DQM code #10093

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DQM/TrackingMonitor/src/TrackingMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ void TrackingMonitor::bookHistograms(DQMStore::IBooker & ibooker,
NumberOfRecHitsPerTrackVsLS = ibooker.bookProfile(histname,histname, LSBin,LSMin,LSMax,0.,40.,"");
NumberOfRecHitsPerTrackVsLS->getTH1()->SetCanExtend(TH1::kAllAxes);
NumberOfRecHitsPerTrackVsLS->setAxisTitle("#Lumi section",1);
NumberOfRecHitsPerTrackVsLS->setAxisTitle("Mean number of RecHits per track",2);
NumberOfRecHitsPerTrackVsLS->setAxisTitle("Mean number of Valid RecHits per track",2);

if (doFractionPlot_) {
histname = "GoodTracksFractionVsLS_"+ CategoryName;
Expand Down Expand Up @@ -521,7 +521,7 @@ void TrackingMonitor::analyze(const edm::Event& iEvent, const edm::EventSetup& i
numberOfTracks_num++;

if ( doProfilesVsLS_ || doAllPlots)
NumberOfRecHitsPerTrackVsLS->Fill(static_cast<double>(iEvent.id().luminosityBlock()),track->recHitsSize());
NumberOfRecHitsPerTrackVsLS->Fill(static_cast<double>(iEvent.id().luminosityBlock()),track->numberOfValidHits());

totalRecHits += track->numberOfValidHits();
totalLayers += track->hitPattern().trackerLayersWithMeasurement();
Expand Down