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

Manage PluginFactory plugins with unique_ptr in RecoLocalMuon #25899

Merged
merged 2 commits into from Feb 11, 2019

Conversation

makortel
Copy link
Contributor

@makortel makortel commented Feb 8, 2019

Changed also some other raw pointers to unique_ptr, and used unique_ptr constructor in RPCRecHitProducer. This PR is preparatory work to change the PluginFactory to return a std::unique_ptr.

Tested in CMSSW_10_5_X_2019-02-05-1100 , no changes expected.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2019

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2019

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-25899/8369

  • This PR adds an extra 52KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2019

A new Pull Request was created by @makortel (Matti Kortelainen) for master.

It involves the following packages:

RecoLocalMuon/CSCSegment
RecoLocalMuon/DTRecHit
RecoLocalMuon/DTSegment
RecoLocalMuon/GEMCSCSegment
RecoLocalMuon/GEMRecHit
RecoLocalMuon/RPCRecHit

@cmsbuild, @perrotta, @kpedro88, @slava77 can you please review it and eventually sign? Thanks.
@ptcox, @bellan, @abbiendi, @jhgoh this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@makortel
Copy link
Contributor Author

makortel commented Feb 8, 2019

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/33063/console Started: 2019/02/09 00:20

// Get the concrete reconstruction algo from the factory
string theAlgoName = config.getParameter<string>("recAlgo");
theAlgo = DTRecHitAlgoFactory::get()->create(theAlgoName,
config.getParameter<ParameterSet>("recAlgoConfig"));
}

DTRecHitProducer::~DTRecHitProducer(){
if(debug)
cout << "[DTRecHitProducer] Destructor called" << endl;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this printout still relevant? (if not, the destructor could be defined as = default)

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd say that none of these debug printouts are relevant, at least not the ones in the c'tor and d'tor, but maybe also the one in the main method which just counts the number of hits in an unspecified DT layer: could it be simplified further by just removing the "debug" parameter and all its calls in this producer?

@namapane @fcavallo please let us know (answering if you still need the debug printout in the destructor at first, and all the other ones as second)

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree the printouts can be removed; I don't think the debug option has ever been activated in the last 10 years at least.
Whether you want to remove all printouts or only those in the dtor is your choice, I generally prefer not to touch working code unless a fix is needed, but if you prefer to clean up I don't have any objection.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@perrotta Which way do you prefer?

Copy link
Contributor

Choose a reason for hiding this comment

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

if this does not resolve any code check/quality analysis issue, perhaps we just leave it as is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if this does not resolve any code check/quality analysis issue, perhaps we just leave it as is.

I don't think we flag couts, so it indeed would not. I'm fine with leaving this as they are as well.

if(debug) cout << "the Reco2D AlgoName is " << theAlgoName << endl;
theAlgo = DTRecSegment2DAlgoFactory::get()->create(theAlgoName,
pset.getParameter<ParameterSet>("Reco2DAlgoConfig"));
if(debug) cout << "the Reco2D AlgoName is " << pset.getParameter<string>("Reco2DAlgoName") << endl;
}

/// Destructor
DTRecSegment2DProducer::~DTRecSegment2DProducer() {
if(debug)
cout << "[DTRecSegment2DProducer] Destructor called" << endl;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this printout still relevant? (if not, the destructor could be defined as = default)

Copy link
Contributor

Choose a reason for hiding this comment

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

@namapane @fcavallo : please answer

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 9, 2019

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 9, 2019

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 9, 2019

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-25899/33063/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 32
  • DQMHistoTests: Total histograms compared: 3097440
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3097242
  • DQMHistoTests: Total skipped: 197
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 31 files compared)
  • Checked 133 log files, 14 edm output root files, 32 DQM output files

@slava77
Copy link
Contributor

slava77 commented Feb 11, 2019

+1

for #25899 2a951b3

  • code changes are in line with the PR description and the follow up review
  • jenkins tests pass and comparisons with the baseline show no (relevant) differences

@kpedro88
Copy link
Contributor

+upgrade

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@kpedro88
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 76ba7ee into cms-sw:master Feb 11, 2019
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

6 participants