-
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
Fixing initialization of event setup point of PR 6030 #6085
Fixing initialization of event setup point of PR 6030 #6085
Conversation
A new Pull Request was created by @mmusich (Marco Musich) for CMSSW_7_3_X. Fixing initialization of event setup point of PR 6030 It involves the following packages: Alignment/OfflineValidation @diguida, @cerminar, @cmsbuild, @nclopezo, @rcastello, @mmusich can you please review it and eventually sign? Thanks. |
@@ -382,7 +382,9 @@ TrackerOfflineValidation::~TrackerOfflineValidation() | |||
void | |||
TrackerOfflineValidation::checkBookHists(const edm::EventSetup& es) | |||
{ | |||
lastSetup_ = &es; |
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 framework does not guarantee that we will always keep the same EventSetup object throughout the job. Please close this commit.
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 am not sure to understand the comment. We just need the EventSetup pointer once in the endjob to invoke the TrackerTopology. Before this commit tlampen@078138b, lastSetup_ was simply a nullptr, which was causing seg faults.
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 can't use the EventSetup in the endJob, nor can you use any data held by the EventSetup. That is why it is not passed as a value to the various module's endJob. Please find another way to accomplish what you are trying to do.
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.
hold |
Reverting commits regarding unsafe treatment of EventSetup
As agreed with @diguida and @rcastello, while I'll try to figure out a better implementation. I reverted the unsafe commits. Please notice that these also reverts 078138b from @tlampen. |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_3_X IBs unless changes (tests are also fine). This pull request will be automatically merged. |
Fixing initialization of event setup point of PR 6030
Small fix to save memory. Initializing event setup pointer once for all