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
Thread Safety: Remove unneeded state from TriggerResultsBasedEventSelector #10951
Thread Safety: Remove unneeded state from TriggerResultsBasedEventSelector #10951
Conversation
A new Pull Request was created by @wmtan for CMSSW_7_6_X. Thread Safety: Remove unneeded state from TriggerResultsBasedEventSelector It involves the following packages: FWCore/Framework @cmsbuild, @smuzaffar, @Dr15Jones can you please review it and eventually sign? Thanks. |
please test |
The tests are being triggered in jenkins. |
bool match() | ||
{ | ||
return eventSelector_.acceptEvent(*product_); | ||
bool match(TriggerResults const& product) { |
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 this be const
now?
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.
Not yet. Work is needed in class "EventSelector" before "match", and a whole bunch of other functions can be made const. That is the goal, but we are not there yet.
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar |
+1 |
…Cleanup Thread Safety: Remove unneeded state from TriggerResultsBasedEventSelector
This is one more step toward a thread safe global::OutputModule base class. The related classes NamedEventSelector and TriggerResultsBasedEventSelector had unnecessary data members that could be modified during the processing an event. This PR removes the unnecessary data. It also, for maintainability and clarity, changes some iterator loops to range based for loops.
Note: Thread safety work also needs to be done on class EventSelector. That will be a separate PR.