-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Added esConsumes calls to more Muon related code #35697
Conversation
- Also updated some modules to no longer be legacy
70322f6
to
4e51b62
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35697/25999
|
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages:
@malbouis, @yuanchao, @pmandrik, @emanueleusai, @ahmad3213, @tvami, @cmsbuild, @AdrianoDee, @srimanob, @jfernan2, @slava77, @jpata, @francescobrivio, @pbo0, @rvenditti can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
@@ -101,7 +101,7 @@ StandAloneMuonTrajectoryBuilder::StandAloneMuonTrajectoryBuilder(const Parameter | |||
// The seed transformer (used to refit the seed and get the seed transient state) | |||
// ParameterSet seedTransformerPSet = par.getParameter<ParameterSet>("SeedTransformerParameters"); | |||
ParameterSet seedTransformerParameters = par.getParameter<ParameterSet>("SeedTransformerParameters"); | |||
theSeedTransformer = new SeedTransformer(seedTransformerParameters); | |||
theSeedTransformer = new SeedTransformer(seedTransformerParameters, iC); |
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.
Can we avoid the new
here and move to a smart pointer? I also don't see where this is deleted in case it's kept.
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.
The objects are delete in the destructor
cmssw/RecoMuon/StandAloneTrackFinder/src/StandAloneTrajectoryBuilder.cc
Lines 113 to 125 in aefd5fd
StandAloneMuonTrajectoryBuilder::~StandAloneMuonTrajectoryBuilder() { | |
LogTrace("Muon|RecoMuon|StandAloneMuonTrajectoryBuilder") | |
<< "StandAloneMuonTrajectoryBuilder destructor called" << endl; | |
if (theFilter) | |
delete theFilter; | |
if (doBackwardFilter && theBWFilter) | |
delete theBWFilter; | |
if (doRefit && theRefitter) | |
delete theRefitter; | |
if (theSeedTransformer) | |
delete theSeedTransformer; | |
} |
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.
I did make the change. In general, since I am not the maintainer of this code, I'd prefer to only make changes which pertain directly to the work of the pull request.
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35697/26001
|
Pull request #35697 was updated. @malbouis, @yuanchao, @pmandrik, @emanueleusai, @ahmad3213, @tvami, @cmsbuild, @AdrianoDee, @srimanob, @jfernan2, @slava77, @jpata, @francescobrivio, @pbo0, @rvenditti can you please check and sign again. |
Please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-59d355/19670/summary.html Comparison SummarySummary:
|
+1 |
+alca
|
+Upgrade |
+reconstruction for #35697 764854b
|
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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
PR validation:
Code compiles.