Open ChrisMisan opened 2 years ago
A new Issue was created by @ChrisMisan Christopher.
@Dr15Jones, @perrotta, @dpiparo, @rappoccio, @makortel, @smuzaffar, @qliphy can you please review it and eventually sign/assign? Thanks.
cms-bot commands are listed here
assign alca
New categories assigned: alca
@yuanchao,@francescobrivio,@malbouis,@saumyaphor4252,@tvami,@ChrisMisan you have been requested to review this Pull request/Issue and eventually sign? Thanks
By the way (not changed in this PR so for longer term), the
PPSDiamondSampicTimingCalibrationPCLHarvester
gets an EventSetup product in itsbeginRun()
and stores it in a memberESHandle
https://github.com/cms-sw/cmssw/blob/dbcf1d6e9834a91def96098fb13570a2a0d88098/CalibPPS/TimingCalibration/plugins/PPSDiamondSampicTimingCalibrationPCLHarvester.cc#L82-L84 and then uses it indqmEndJob()
(which is reallyendProcessBlock()
transition) https://github.com/cms-sw/cmssw/blob/dbcf1d6e9834a91def96098fb13570a2a0d88098/CalibPPS/TimingCalibration/plugins/PPSDiamondSampicTimingCalibrationPCLHarvester.cc#L187-L188 https://github.com/cms-sw/cmssw/blob/dbcf1d6e9834a91def96098fb13570a2a0d88098/CalibPPS/TimingCalibration/plugins/PPSDiamondSampicTimingCalibrationPCLHarvester.cc#L265-L269While this pattern may work in practice today, it is not guaranteed to work in the future. Objects owned by the EventSetup system should be used only in transition functions that take the
edm::EventSetup
argument. A workaround would be to copy the relevant products instead of passing anESHandle
or a raw pointer.Originally posted by @makortel in https://github.com/cms-sw/cmssw/issues/38893#issuecomment-1201394267