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
CalibTracker/SiStripESProducers: ESProducers update to return unique_ptr. #22062
CalibTracker/SiStripESProducers: ESProducers update to return unique_ptr. #22062
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-22062/3182 |
A new Pull Request was created by @gartung (Patrick Gartung) for master. It involves the following packages: CalibTracker/SiStripESProducers @ghellwig, @arunhep, @cerminar, @cmsbuild, @franzoni, @lpernie can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
@@ -71,7 +71,7 @@ SiStripApvGainFakeESSource::produce(const SiStripApvGainRcd& iRecord) | |||
{ | |||
using namespace edm::es; | |||
|
|||
std::shared_ptr<SiStripApvGain> apvGain{new SiStripApvGain}; | |||
std::unique_ptr<SiStripApvGain> apvGain{new SiStripApvGain}; |
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 change to
auto apvGain = std::make_unique<SiStripApvGain>();
@@ -67,7 +67,7 @@ SiStripBackPlaneCorrectioNFakeESSource::produce(const SiStripBackPlaneCorrection | |||
edm::ESHandle<TrackerTopology> tTopo; | |||
iRecord.getRecord<TrackerTopologyRcd>().get(tTopo); | |||
|
|||
std::shared_ptr<SiStripBackPlaneCorrection> backPlaneCorrection{new SiStripBackPlaneCorrection}; | |||
std::unique_ptr<SiStripBackPlaneCorrection> backPlaneCorrection = std::make_unique<SiStripBackPlaneCorrection>(); |
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 use auto
@@ -73,7 +73,7 @@ SiStripBadModuleConfigurableFakeESSource::produce(const SiStripBadModuleRcd& iRe | |||
edm::ESHandle<TrackerTopology> tTopo; | |||
iRecord.getRecord<TrackerTopologyRcd>().get(tTopo); | |||
|
|||
std::shared_ptr<SiStripQuality> quality{new SiStripQuality}; | |||
std::unique_ptr<SiStripQuality> quality = std::make_unique<SiStripQuality>(); |
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 use auto
@@ -64,7 +64,7 @@ SiStripBaseDelayFakeESSource::produce(const SiStripBaseDelayRcd& iRecord) | |||
{ | |||
using namespace edm::es; | |||
|
|||
std::shared_ptr<SiStripBaseDelay> baseDelay{new SiStripBaseDelay}; | |||
std::unique_ptr<SiStripBaseDelay> baseDelay = std::make_unique<SiStripBaseDelay>(); |
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 use auto
@@ -61,7 +61,7 @@ SiStripConfObjectFakeESSource::produce(const SiStripConfObjectRcd& iRecord) | |||
{ | |||
using namespace edm::es; | |||
|
|||
std::shared_ptr<SiStripConfObject> confObject{new SiStripConfObject}; | |||
std::unique_ptr<SiStripConfObject> confObject = std::make_unique<SiStripConfObject>(); |
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 use auto
@@ -64,7 +64,7 @@ SiStripLatencyFakeESSource::produce(const SiStripLatencyRcd& iRecord) | |||
{ | |||
using namespace edm::es; | |||
|
|||
std::shared_ptr<SiStripLatency> latency{new SiStripLatency}; | |||
std::unique_ptr<SiStripLatency> latency = std::make_unique<SiStripLatency>(); |
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 use auto
@@ -169,7 +169,7 @@ SiStripLorentzAngleFakeESSource::produce(const SiStripLorentzAngleRcd& iRecord) | |||
edm::ESHandle<TrackerTopology> tTopo; | |||
iRecord.getRecord<TrackerTopologyRcd>().get(tTopo); | |||
|
|||
std::shared_ptr<SiStripLorentzAngle> lorentzAngle{new SiStripLorentzAngle}; | |||
std::unique_ptr<SiStripLorentzAngle> lorentzAngle = std::make_unique<SiStripLorentzAngle>(); |
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 use auto
@@ -98,7 +98,7 @@ SiStripNoisesFakeESSource::produce(const SiStripNoisesRcd& iRecord) | |||
edm::ESHandle<TrackerTopology> tTopo; | |||
iRecord.getRecord<TrackerTopologyRcd>().get(tTopo); | |||
|
|||
std::shared_ptr<SiStripNoises> noises{new SiStripNoises}; | |||
std::unique_ptr<SiStripNoises> noises = std::make_unique<SiStripNoises>(); |
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 use auto
@@ -64,7 +64,7 @@ SiStripPedestalsFakeESSource::produce(const SiStripPedestalsRcd& iRecord) | |||
{ | |||
using namespace edm::es; | |||
|
|||
std::shared_ptr<SiStripPedestals> pedestals{new SiStripPedestals}; | |||
std::unique_ptr<SiStripPedestals> pedestals = std::make_unique<SiStripPedestals>(); |
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 use auto
@@ -125,7 +125,7 @@ SiStripBadModuleFedErrESSource::produce(const SiStripBadModuleFedErrRcd& iRecord | |||
edm::ESHandle<SiStripFedCabling> cabling; | |||
iRecord.getRecord<SiStripFedCablingRcd>().get(cabling); | |||
|
|||
std::shared_ptr<SiStripQuality> quality{new SiStripQuality}; | |||
std::unique_ptr<SiStripQuality> quality = std::make_unique<SiStripQuality>(); |
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 use auto
Comparison job queued. |
Comparison is ready @slava77 comparisons for the following workflows were not done due to missing matrix map:
Comparison Summary:
|
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-22062/3199 |
please test |
The tests are being triggered in jenkins. |
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. 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) |
Comparison job queued. |
Comparison is ready @slava77 comparisons for the following workflows were not done due to missing matrix map:
Comparison Summary:
|
+1 |
No description provided.