-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 statics in CastorDigiMonitor. #11813
Conversation
please test |
The tests are being triggered in jenkins. |
A new Pull Request was created by @deguio (Federico De Guio) for CMSSW_7_6_X. Fix statics in CastorDigiMonitor. It involves the following packages: DQM/CastorMonitor @cmsbuild, @danduggan, @vanbesien, @deguio can you please review it and eventually sign? Thanks. |
@@ -44,6 +44,12 @@ class CastorDigiMonitor: public CastorBaseMonitor { | |||
MonitorElement *hSector; | |||
MonitorElement* hdigisize; | |||
// MonitorElement* hBunchOcc; | |||
|
|||
int TS_MAX = 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this can be made constexpr
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed it was set in the constructor. However, it could become const
by setting the value before the body of the constructor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not the author of this module, so I want to limit my changes to just removing static variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TS-MAX can not be const expression as its value is set from python-file
-1 runTheMatrix-results/4.53_RunPhoton2012B+RunPhoton2012B+HLTD+RECODreHLT+HARVESTDreHLT/step3_RunPhoton2012B+RunPhoton2012B+HLTD+RECODreHLT+HARVESTDreHLT.log ----- Begin Fatal Exception 15-Oct-2015 14:40:01 CEST----------------------- An exception of category 'FatalRootError' occurred while [0] Processing run: 194533 [1] Running path 'dqmoffline_step' [2] Calling beginRun for module CastorMonitorModule/'castorOfflineMonitor' Additional Info: [a] Fatal Root Error: @SUB=TAxis::TAxis::Set bins must be in increasing order ----- End Fatal Exception ------------------------------------------------- 9.0 step3 runTheMatrix-results/9.0_Higgs200ChargedTaus+Higgs200ChargedTaus+DIGI+RECO+HARVEST/step3_Higgs200ChargedTaus+Higgs200ChargedTaus+DIGI+RECO+HARVEST.log ----- Begin Fatal Exception 15-Oct-2015 14:49:43 CEST----------------------- An exception of category 'FatalRootError' occurred while [0] Processing run: 1 [1] Running path 'dqmoffline_step' [2] Calling beginRun for module CastorMonitorModule/'castorOfflineMonitor' Additional Info: [a] Fatal Root Error: @SUB=TAxis::TAxis::Set bins must be in increasing order ----- End Fatal Exception ------------------------------------------------- 1306.0 step3 runTheMatrix-results/1306.0_SingleMuPt1_UP15+SingleMuPt1_UP15+DIGIUP15+RECOUP15+HARVESTUP15/step3_SingleMuPt1_UP15+SingleMuPt1_UP15+DIGIUP15+RECOUP15+HARVESTUP15.log ----- Begin Fatal Exception 15-Oct-2015 14:54:31 CEST----------------------- An exception of category 'FatalRootError' occurred while [0] Processing run: 1 [1] Running path 'dqmoffline_step' [2] Calling beginRun for module CastorMonitorModule/'castorOfflineMonitor' Additional Info: [a] Fatal Root Error: @SUB=TAxis::TAxis::Set bins must be in increasing order ----- End Fatal Exception ------------------------------------------------- 1000.0 step2 runTheMatrix-results/1000.0_RunMinBias2011A+RunMinBias2011A+TIER0+SKIMD+HARVESTDfst2+ALCASPLIT/step2_RunMinBias2011A+RunMinBias2011A+TIER0+SKIMD+HARVESTDfst2+ALCASPLIT.log ----- Begin Fatal Exception 15-Oct-2015 14:57:04 CEST----------------------- An exception of category 'FatalRootError' occurred while [0] Processing run: 165121 [1] Running path 'dqmoffline_step' [2] Calling beginRun for module CastorMonitorModule/'castorOfflineMonitor' Additional Info: [a] Fatal Root Error: @SUB=TAxis::TAxis::Set bins must be in increasing order ----- End Fatal Exception ------------------------------------------------- 25202.0 step3 runTheMatrix-results/25202.0_TTbar_13+TTbar_13+DIGIUP15_PU25+RECOUP15_PU25+HARVESTUP15_PU25/step3_TTbar_13+TTbar_13+DIGIUP15_PU25+RECOUP15_PU25+HARVESTUP15_PU25.log ----- Begin Fatal Exception 15-Oct-2015 15:13:01 CEST----------------------- An exception of category 'FatalRootError' occurred while [0] Processing run: 1 [1] Running path 'dqmoffline_step' [2] Calling beginRun for module CastorMonitorModule/'castorOfflineMonitor' Additional Info: [a] Fatal Root Error: @SUB=TAxis::TAxis::Set bins must be in increasing order ----- End Fatal Exception ------------------------------------------------- 50202.0 step3 runTheMatrix-results/50202.0_TTbar_13+TTbar_13+DIGIUP15_PU50+RECOUP15_PU50+HARVESTUP15_PU50/step3_TTbar_13+TTbar_13+DIGIUP15_PU50+RECOUP15_PU50+HARVESTUP15_PU50.log ----- Begin Fatal Exception 15-Oct-2015 15:13:07 CEST----------------------- An exception of category 'FatalRootError' occurred while [0] Processing run: 1 [1] Running path 'dqmoffline_step' [2] Calling beginRun for module CastorMonitorModule/'castorOfflineMonitor' Additional Info: [a] Fatal Root Error: @SUB=TAxis::TAxis::Set bins must be in increasing order ----- End Fatal Exception ------------------------------------------------- you can see the results of the tests here: |
Previously, the bug was hidden by the fact statics are initialized to zero. Moving away from static arrays exposed it.
please test |
The tests are being triggered in jenkins. |
Pull request #11813 was updated. @cmsbuild, @danduggan, @vanbesien, @deguio can you please check and sign again. |
@popovvp |
bins must be in increasing order after initializing ETower[0,1] properly (in the same way as EMTow[] and EhadTow[]) |
+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 |
Fix statics in CastorDigiMonitor.
No description provided.