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 statics in CastorDigiMonitor. #11813

Merged
merged 2 commits into from
Oct 24, 2015

Conversation

deguio
Copy link
Contributor

@deguio deguio commented Oct 15, 2015

No description provided.

@deguio
Copy link
Contributor Author

deguio commented Oct 15, 2015

please test

@cmsbuild cmsbuild added this to the Next CMSSW_7_6_X milestone Oct 15, 2015
@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/8903/console

@cmsbuild
Copy link
Contributor

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.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@Degano you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@@ -44,6 +44,12 @@ class CastorDigiMonitor: public CastorBaseMonitor {
MonitorElement *hSector;
MonitorElement* hdigisize;
// MonitorElement* hBunchOcc;

int TS_MAX = 10;
Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

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

@cmsbuild
Copy link
Contributor

-1
Tested at: e303b20
When I ran the RelVals I found an error in the following worklfows:
4.53 step3

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:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-11813/8903/summary.html

Previously, the bug  was hidden by the fact statics are initialized to
zero. Moving away from static arrays exposed it.
@deguio
Copy link
Contributor Author

deguio commented Oct 20, 2015

please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/9064/console

@cmsbuild
Copy link
Contributor

Pull request #11813 was updated. @cmsbuild, @danduggan, @vanbesien, @deguio can you please check and sign again.

@deguio
Copy link
Contributor Author

deguio commented Oct 20, 2015

@popovvp
please review the changes in this PR. they are needed to make the code thread safe.
F.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@popovvp
Copy link
Contributor

popovvp commented Oct 23, 2015

 [a] Fatal Root Error: @SUB=TAxis::TAxis::Set

bins must be in increasing order

after initializing ETower[0,1] properly (in the same way as EMTow[] and EhadTow[])
the problem will be solved (looks it is done by PR 11904)

@deguio
Copy link
Contributor Author

deguio commented Oct 23, 2015

+1

@cmsbuild
Copy link
Contributor

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

davidlange6 added a commit that referenced this pull request Oct 24, 2015
Fix statics in CastorDigiMonitor.
@davidlange6 davidlange6 merged commit 9e1de84 into cms-sw:CMSSW_7_6_X Oct 24, 2015
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.

6 participants