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

Inclusion of muon timing plots in the DQMOffline/Muon package #18267

Merged
merged 4 commits into from May 11, 2017

Conversation

parbol
Copy link
Contributor

@parbol parbol commented Apr 7, 2017

The Muon POG would like to have a few plots in the offline DQM with information associated to the timing of the muons. In this Pull Request I have added this functionality through a new module called MuonTiming (MuonTiming.cc, MuonTiming.h and muonTiming_cfi.py) that takes care of booking and filling a few histograms (22 in total) related to the timing. In addition I have performed some bug fixes in the ranges and binning of some histograms in the DiMuonHistograms.cc and also in MuonKinVsEtaAnalyzer.cc.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 7, 2017

A new Pull Request was created by @parbol for master.

It involves the following packages:

DQMOffline/Muon

@cmsbuild, @dmitrijus, @vanbesien, @davidlange6 can you please review it and eventually sign? Thanks.
@barvic, @bellan, @abbiendi, @jhgoh, @calderona, @HuguesBrun, @ptcox, @battibass, @trocino, @rociovilar this is something you requested to watch as well.
@Muzaffar, @davidlange6, @smuzaffar you are the release manager for this.

cms-bot commands are listed here

@dmitrijus
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 27, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/19435/console Started: 2017/04/27 13:55

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. This pull request requires discussion in the ORP meeting before it's merged. @Muzaffar, @davidlange6, @smuzaffar

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-18267/19435/summary.html

Comparison Summary:

  • You potentially added 4 lines to the logs
  • Reco comparison results: 1770 differences found in the comparisons
  • DQMHistoTests: Total files compared: 23
  • DQMHistoTests: Total histograms compared: 1783647
  • DQMHistoTests: Total failures: 8813
  • DQMHistoTests: Total nulls: 195
  • DQMHistoTests: Total successes: 1774466
  • DQMHistoTests: Total skipped: 173
  • DQMHistoTests: Total Missing objects: 0
  • Checked 94 log files, 14 edm output root files, 23 DQM output files

if(!cmbok && rpcok) yields[theObject]->Fill(7);

if(veto) yields[theObject]->Fill(9);
else yields[theObject]->Fill(9);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @parbol - my guess is that you wanted "8" here instead of 9.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. Thanks for the catch. It's corrected now.

eta theEta = barrel;
if(fabs(track->eta()) > etaBarrelMin && fabs(track->eta()) < etaBarrelMax) theEta = barrel;
if(fabs(track->eta()) > etaOverlapMin && fabs(track->eta()) < etaOverlapMax) theEta = overlap;
if(fabs(track->eta()) > etaEndcapMin && fabs(track->eta()) < etaEndcapMax) theEta = endcap;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with this logic and your parameters, theEta will never = overlap.
otherwise, please also consider a >= to correctly handle bin boundaries

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have corrected this. Thanks.

enum eta {overlap, barrel, endcap};
enum object {sta, glb};
//the histos
std::vector<std::vector<MonitorElement*>> timeNDof;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as the sizes of these are known (and hardwired), please use std::array<std::array<MonitorElement*,1>,3> to avoid both the extra memory of the vectors and the need to first declare a vector and then push_back

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, yes. That's way smarter. Sorry for not having thought about it in the first place. It's now implemented.

std::vector<std::vector<MonitorElement*>> timeAtIpInOutRPC;
std::vector<std::vector<MonitorElement*>> timeAtIpInOutErr;
std::vector<std::vector<MonitorElement*>> timeAtIpInOutErrRPC;
std::vector<MonitorElement*> etaptVeto;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similarly here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, updated as well.



//histo binning parameters
int tnbins;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please follow a naming convention for variables that make up a class. Eg, in CMS its often an '_' at the end of the variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a '_' at the end of all of them.

@cmsbuild
Copy link
Contributor

cmsbuild commented May 9, 2017

Pull request #18267 was updated. @cmsbuild, @dmitrijus, @vanbesien, @davidlange6 can you please check and sign again.

@dmitrijus
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented May 9, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/19685/console Started: 2017/05/09 18:02

@cmsbuild
Copy link
Contributor

cmsbuild commented May 9, 2017

This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @smuzaffar

@cmsbuild
Copy link
Contributor

cmsbuild commented May 9, 2017

@cmsbuild
Copy link
Contributor

cmsbuild commented May 9, 2017

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented May 9, 2017

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-18267/19685/summary.html

Comparison Summary:

  • You potentially added 2947 lines to the logs
  • Reco comparison results: 1689 differences found in the comparisons
  • DQMHistoTests: Total files compared: 24
  • DQMHistoTests: Total histograms compared: 1831050
  • DQMHistoTests: Total failures: 27577
  • DQMHistoTests: Total nulls: 184
  • DQMHistoTests: Total successes: 1803109
  • DQMHistoTests: Total skipped: 180
  • DQMHistoTests: Total Missing objects: 0
  • Checked 98 log files, 14 edm output root files, 24 DQM output files

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit f520e4f into cms-sw:master May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants