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

Added new histograms to the BeamPixel application #19758

Merged
merged 4 commits into from Jul 19, 2017
Merged

Added new histograms to the BeamPixel application #19758

merged 4 commits into from Jul 19, 2017

Conversation

dinardo
Copy link
Contributor

@dinardo dinardo commented Jul 14, 2017

I've added three new histograms to monitor the "gaussianity" of the vertex x, y, z distributions.

  • Mauro.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @dinardo (Mauro) for master.

It involves the following packages:

DQM/BeamMonitor

@vazzolini, @kmaeshima, @dmitrijus, @cmsbuild, @vanbesien, @davidlange6 can you please review it and eventually sign? Thanks.
@davidlange6 you are the release manager for this.

cms-bot commands are listed here

@dmitrijus
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 17, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/21512/console Started: 2017/07/17 10:47

@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. @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-19758/21512/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 23
  • DQMHistoTests: Total histograms compared: 2022761
  • DQMHistoTests: Total failures: 97
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2022498
  • DQMHistoTests: Total skipped: 166
  • DQMHistoTests: Total Missing objects: 0
  • Checked 93 log files, 14 edm output root files, 23 DQM output files

myGaussFit->SetParameter(1, Vx_X_Fit->getTH1()->GetMean());
myGaussFit->SetParameter(2, Vx_X_Fit->getTH1()->GetRMS());
minXfit = Vx_X_Fit->getTH1()->GetBinLowEdge(1);
for (int i = 0; i < Vx_X_Fit->getTH1()->GetNbinsX(); i++)
Copy link
Contributor

Choose a reason for hiding this comment

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

hi @dinardo - all the loops should be indexed by unsigned ints.

otherwise, have you handled the case of histograms with 0 entries?

@dinardo
Copy link
Contributor Author

dinardo commented Jul 19, 2017

Dear David,
I was wondering whether you were satisfied by my answer.
Kind regards,

  • Mauro.

@davidlange6
Copy link
Contributor

i guess I miss the answer?

@dinardo
Copy link
Contributor Author

dinardo commented Jul 19, 2017

I wrote the answer on the git thread "review", I guess you didn't receive it.
Here it is:
the protection are the assignments:
minXfit = Vx_X_Fit->getTH1()->GetBinLowEdge(1);
and
maxXfit = Vx_X_Fit->getTH1()->GetBinLowEdge(Vx_X_Fit->getTH1()->GetNbinsX());
So, even if the histogram is empy, the low and high range of the fit are the lowest and highest bins of the histogram.

Please let me know if you need further information.

  • Mauro.

@davidlange6
Copy link
Contributor

davidlange6 commented Jul 19, 2017 via email

@dinardo
Copy link
Contributor Author

dinardo commented Jul 19, 2017

Hi,
I'm not sure why this could be a problem.
Since the loop's range are deduced from Vx_X_Fit->getTH1()->GetNbinsX(); I can not use unsigned int because GetNbinsX gives back an int.

  • Mauro.

@davidlange6
Copy link
Contributor

davidlange6 commented Jul 19, 2017 via email

@davidlange6
Copy link
Contributor

coming back the empty histograms - what I naively read is that the fit min would correspond to the maximum bin location, and the fit max would correspond to the first bin location. That would not be good - maybe you can just skip the fitting of empty histograms completely?

@dinardo
Copy link
Contributor Author

dinardo commented Jul 19, 2017

Hi David,
even if the histogram has just one bin, the code assigns the same value to the fit range boundaries, so the range collapse in one point.
I just checked it, and if you fit a histogram which has one single bin with a fit function range whose minimum and maximum coincide, you don't get any error.
So, frankly I don't see the issue here. The code is self-protected.

  • Mauro.

@davidlange6
Copy link
Contributor

davidlange6 commented Jul 19, 2017 via email

@davidlange6
Copy link
Contributor

ah - I misread things- the current code is fine for empty histograms. (even if we'd avoid some useless printouts and CPU by just not doing the fit in that case)

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit b566b75 into cms-sw:master Jul 19, 2017
@dinardo
Copy link
Contributor Author

dinardo commented Jul 19, 2017

Hi David,
many thanks.
Cheers,

  • Mauro.

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

4 participants