Navigation Menu

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

Make ClusterMultiplicityFilter multithread safe #12024

Conversation

nickmccoll
Copy link
Contributor

Small changes to use edm::stream::EDFilter<>, consumes, and edmNew::DetSetVector

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @nickmccoll (Nick McColl) for CMSSW_7_6_X.

Make ClusterMultiplicityFilter multithread safe

It involves the following packages:

RecoLocalTracker/SubCollectionProducers

@cmsbuild, @cvuosalo, @slava77 can you please review it and eventually sign? Thanks.
@makortel, @forthommel, @yduhm, @GiacomoSguazzoni, @gbenelli, @rovere, @VinInn, @jlagram, @gpetruc, @cerati, @threus 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.

public:
explicit ClusterMultiplicityFilter(const edm::ParameterSet&);
~ClusterMultiplicityFilter();

private:
virtual void beginJob() ;

virtual bool filter(edm::Event&, const edm::EventSetup&);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add override: filter(edm::Event&, const edm::EventSetup&) override;

@cmsbuild
Copy link
Contributor

Pull request #12024 was updated. @cmsbuild, @cvuosalo, @slava77 can you please check and sign again.

#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"


ClusterMultiplicityFilter::ClusterMultiplicityFilter(const edm::ParameterSet& iConfig)
ClusterMultiplicityFilter::ClusterMultiplicityFilter(const edm::ParameterSet& iConfig) :
maxNumberOfClusters_(iConfig.getUntrackedParameter<unsigned int>("MaxNumberOfClusters")),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both config parameters affect the result of the code, so, they should be made tracked (remove "Untracked")
[not sure if this would trigger changes in large number of places: let's discuss if it does, given that list]

@cmsbuild
Copy link
Contributor

Pull request #12024 was updated. @cmsbuild, @cvuosalo, @slava77 can you please check and sign again.

@slava77
Copy link
Contributor

slava77 commented Oct 21, 2015

@cmsbuild please test
@nickmccoll thanks for the quick follow up

@cmsbuild
Copy link
Contributor

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

{
maxNumberOfClusters_ = iConfig.getUntrackedParameter<unsigned int>("MaxNumberOfClusters");
clusterCollectionLabel_ = iConfig.getUntrackedParameter<std::string>("ClusterCollectionLabel");
clusters_ = consumes<edmNew::DetSetVector<SiStripCluster> >(clusterCollectionTag_);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could make this const as well if you move its initialization to before the {.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #12024 was updated. @cvuosalo, @slava77 can you please check and sign again.

@slava77
Copy link
Contributor

slava77 commented Oct 21, 2015

@cmsbuild please test

@cmsbuild
Copy link
Contributor

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

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@slava77
Copy link
Contributor

slava77 commented Oct 21, 2015

+1

for #12024 ca6f124

  • code changes look as described
  • jenkins tests pass: static analyzer does not complain about ClusterMultiplicityFilter anymore, and comparisons with baseline show no differences

@nickmccoll please make a separate PR for 80X (it should be possible to reuse the same topic branch)

@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
Copy link
Contributor

+1

cmsbuild added a commit that referenced this pull request Oct 22, 2015
…ter_MultiThreadSafe

Make ClusterMultiplicityFilter multithread safe
@cmsbuild cmsbuild merged commit 553351e into cms-sw:CMSSW_7_6_X Oct 22, 2015
@nickmccoll nickmccoll deleted the Make_ClusterMultiplicityFilter_MultiThreadSafe branch September 12, 2016 22:03
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

5 participants