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

Removed use of static for temporary variable in TauA1NuConstrainedFitter #3062

Conversation

Dr15Jones
Copy link
Contributor

The threaded framework was failing becuase multiple DQM modules were calling
TauA1NuConstrainedFitter at the same time and the class was using a static
to hold temporary data. I changed the code so now one passes the value as an
argument of the function which uses the value. This also required changed
ErrorMatrixPropagator which was formerly taking a pointer to a function but
now sometimes the function being called needed an additional argument. Changing
ErrorMatrixPropagator to use a std::function<> instead of a pointer to a function
as the argument fixed that problem.

The threaded framework was failing becuase multiple DQM modules were calling
TauA1NuConstrainedFitter at the same time and the class was using a static
to hold temporary data. I changed the code so now one passes the value as an
argument of the function which uses the value. This also required changed
ErrorMatrixPropagator which was formerly taking a pointer to a function but
now sometimes the function being called needed an additional argument. Changing
ErrorMatrixPropagator to use a std::function<> instead of a pointer to a function
as the argument fixed that problem.
@Dr15Jones
Copy link
Contributor Author

This bug is causing the majority of the failures in the 7_1_THREADED_X IBs

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Dr15Jones (Chris Jones) for CMSSW_7_1_X.

Removed use of static for temporary variable in TauA1NuConstrainedFitter

It involves the following packages:

RecoTauTag/ImpactParameter

@nclopezo, @cmsbuild, @anton-a, @thspeer, @slava77, @Degano can you please review it and eventually sign? Thanks.
@jpavel 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.
@nclopezo, @ktf you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@Dr15Jones
Copy link
Contributor Author

I was wrong that this is causing the problem with the _THREADED IBs. However, it still is a problem for the ParticleFlow tau producer.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@slava77
Copy link
Contributor

slava77 commented Mar 31, 2014

+1

for #3062 93d4101
tested in CMSSW_7_1_X_2014-03-28-1400
(test area sign330 includes pulls 3026-3037-3043-3046-3062-3080 and a cherry-pick of 3095)
no regressions as expected

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_1_X IBs unless changes (tests are also fine). @nclopezo, @ktf can you please take care of it?

@cmsbuild
Copy link
Contributor

nclopezo added a commit that referenced this pull request Mar 31, 2014
…ainedFitter

RecoTauTag/ImpactParameter -- Removed use of static for temporary variable in TauA1NuConstrainedFitter
@nclopezo nclopezo merged commit 8efcfd2 into cms-sw:CMSSW_7_1_X Mar 31, 2014
@cmsbuild
Copy link
Contributor

@Dr15Jones Dr15Jones deleted the removeStaticFromTauA1NuConstrainedFitter branch April 4, 2014 04:44
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