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

Fixed btagging sequence definition #7995

Conversation

ferencek
Copy link
Contributor

The btagging sequence is now explicitly defined as a cms.Sequence(...). It turns out that if it is not, process.load("RecoBTag.Configuration.RecoBTag_cff") does not load and add it to the process.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @ferencek (Dinko Ferencek) for CMSSW_7_4_X.

Fixed btagging sequence definition

It involves the following packages:

RecoBTag/Configuration

@cmsbuild, @cvuosalo, @nclopezo, @slava77 can you please review it and eventually sign? Thanks.
@ferencek, @acaudron, @pvmulder, @imarches this is something you requested to watch as well.
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.

@slava77
Copy link
Contributor

slava77 commented Feb 27, 2015

Hi Dinko,

where does this become an issue? (rerunning btagging only in a standalone configuration seems the only obvious case, but maybe there are more).

@slava77
Copy link
Contributor

slava77 commented Feb 27, 2015

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@ferencek
Copy link
Contributor Author

@slava77 The problem appeared with a private cfg file that loads and re-runs the standard b-tagging sequence. A student noticed that his cfg file, that worked just fine in 73X, stopped working in 74X with the following error message

AttributeError: 'Process' object has no attribute 'btagging'

even though

process.load("RecoBTag.Configuration.RecoBTag_cff")

was present in the cfg file. After some investigation, I realized what was causing the problem. However, I can't claim I fully understand the problem, I just figured out how to fix it. As far as I can tell, in all other places in CMSSW where

process.load("RecoBTag.Configuration.RecoBTag_cff")

is present, it is not used to run the standard b-tagging sequence but for other reasons. Instead, for the standard reconstruction the sequence is loaded using

from RecoBTag.Configuration.RecoBTag_cff import *

which was unaffected by the change in the way the sequence was defined, and that's why the problem went unnoticed.

@cmsbuild
Copy link
Contributor

@slava77
Copy link
Contributor

slava77 commented Feb 28, 2015

+1

for #7995 e27145d

the change is somewhat trivial and jenkins tests are OK.

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_4_X IBs unless changes (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @ktf, @smuzaffar

@davidlange6
Copy link
Contributor

+1

cmsbuild added a commit that referenced this pull request Feb 28, 2015
…SSW_7_4_0_pre8

Fixed btagging sequence definition
@cmsbuild cmsbuild merged commit 3820087 into cms-sw:CMSSW_7_4_X Feb 28, 2015
@ferencek ferencek deleted the BTaggingSequenceFix_from-CMSSW_7_4_0_pre8 branch March 2, 2015 22:16
@ferencek ferencek restored the BTaggingSequenceFix_from-CMSSW_7_4_0_pre8 branch March 4, 2015 17:31
@ferencek ferencek deleted the BTaggingSequenceFix_from-CMSSW_7_4_0_pre8 branch March 22, 2015 22:25
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