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
Changes to PartonShowerBsHepMCFilter and LHEGenericFilter #11190
Conversation
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs or unless it breaks tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar |
A new Pull Request was created by @perrozzi for CMSSW_7_6_X. port PR 11149 to 76X It involves the following packages: GeneratorInterface/Core @cmsbuild can you please review it and eventually sign? Thanks. |
@perrozzi - please change the title of this PR to briefly describe the proposed changes for the release notes. |
sorry, it is done now. let me know if you want me to add more details |
perfect, thanks!
|
@cmsbuild please test |
The tests are being triggered in jenkins. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs or unless it breaks tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar |
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 |
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 |
@@ -49,8 +49,10 @@ class LHEGenericFilter : public edm::EDFilter { | |||
|
|||
edm::EDGetTokenT<LHEEventProduct> src_; | |||
int numRequired_; // number of particles required to pass filter | |||
bool acceptMore_; // if true (default), accept numRequired or more. | |||
// if false, accept events with exactly equal to numRequired. | |||
std::string acceptLogic_; // LT meaning < |
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.
could you store this as an enum both to ensure that its always valid and to make the string comparison only once rather than many times?
@perrozzi
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.
hi, I am not sure I understand what/how to do it.
to reduce the number of string comparisons to 1 is easy, but what do you mean with "always valid"?
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.
did you mean something like this
perrozzi@a4863f0
hi, may I kindly ask you to check please? these PR is becoming a bit urgent, as it needs also to be backported to 71X to produce some MC samples. thanks a lot |
+1 |
In the current code, whichlogic would be uninitialized if an invalid string was given. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs or unless it breaks tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar |
ok thanks, please check again |
+1 |
+1 |
Changes to PartonShowerBsHepMCFilter and LHEGenericFilter
No description provided.