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
[DQM/BeamMonitor] fix y-axis range to properly display d0-phi plot #10769
[DQM/BeamMonitor] fix y-axis range to properly display d0-phi plot #10769
Conversation
A new Pull Request was created by @sarafiorendi for CMSSW_7_6_X. [DQM/BeamMonitor] fix y-axis range to properly display d0-phi plot It involves the following packages: DQM/BeamMonitor @cmsbuild, @danduggan, @deguio can you please review it and eventually sign? Thanks. |
please test |
The tests are being triggered in jenkins. |
@sarafiorendi - it would be worth rewriting this to be independent of knowing the range of values expected. Something like https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance would take less memory (two 1D histograms with N bins instead of a profile with Nx100 bins) and be robust against both the predefined limits and the effect of the finite bin size in the TProfile. Eg - follow this sort of algorithm (which needs a 1D histogram for "Sum" and a histogram for "Sum_sqr") def shifted_data_variance(data): use n instead of (n-1) if want to compute the exact variance of the given datause (n-1) if data are samples of a larger populationreturn variance |
@davidlange6 |
ah - sure -I commented as in the fix we have given up a big factor in resolution on the measurement. hopefully that does not matter too much..
|
@davidlange6 ah, you're right, I got your point. |
@davidlange6 @rmanzoni, but are we actually measuring anything out of this histogram? Sorry but I don't understand. The [-0.5,0.5] is taken directly from another similar piece of DQM code: https://github.com/cms-sw/cmssw/blob/CMSSW_7_6_X/DQM/TrackingMonitor/python/TrackingMonitor_cfi.py#L322 if the number of bins is an argument, it should be true also there |
+1 The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic: |
@mmusich no, it's not meant for anything else than monitoring purposes and we don't measure anything out of it. All considered, the range and number of bins should be sensible as they are already. |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar |
+1 |
…Range [DQM/BeamMonitor] fix y-axis range to properly display d0-phi plot
We found y-axis range to be too narrow, causing the sinusoidal d0-phi distribution to be capped.
The attached plots show the effect of a too narrow y-axis range.