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
Make ClusterMultiplicityFilter multithread safe #12024
Conversation
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. |
public: | ||
explicit ClusterMultiplicityFilter(const edm::ParameterSet&); | ||
~ClusterMultiplicityFilter(); | ||
|
||
private: | ||
virtual void beginJob() ; | ||
|
||
virtual bool filter(edm::Event&, const edm::EventSetup&); |
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.
please add override
: filter(edm::Event&, const edm::EventSetup&) override;
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h" | ||
|
||
|
||
ClusterMultiplicityFilter::ClusterMultiplicityFilter(const edm::ParameterSet& iConfig) | ||
ClusterMultiplicityFilter::ClusterMultiplicityFilter(const edm::ParameterSet& iConfig) : | ||
maxNumberOfClusters_(iConfig.getUntrackedParameter<unsigned int>("MaxNumberOfClusters")), |
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.
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 please test |
The tests are being triggered in jenkins. |
{ | ||
maxNumberOfClusters_ = iConfig.getUntrackedParameter<unsigned int>("MaxNumberOfClusters"); | ||
clusterCollectionLabel_ = iConfig.getUntrackedParameter<std::string>("ClusterCollectionLabel"); | ||
clusters_ = consumes<edmNew::DetSetVector<SiStripCluster> >(clusterCollectionTag_); |
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.
You could make this const as well if you move its initialization to before the {
.
@cmsbuild please test |
The tests are being triggered in jenkins. |
+1
@nickmccoll please make a separate PR for 80X (it should be possible to reuse the same topic branch) |
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 |
+1 |
…ter_MultiThreadSafe Make ClusterMultiplicityFilter multithread safe
Small changes to use edm::stream::EDFilter<>, consumes, and edmNew::DetSetVector