-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Backport of LHEGenericMassFilter to 106X #36754
Backport of LHEGenericMassFilter to 106X #36754
Conversation
A new Pull Request was created by @JanFSchulte (Jan-Frederik Schulte) for CMSSW_10_6_X. It involves the following packages:
@SiewYan, @mkirsano, @Saptaparna, @cmsbuild, @GurpreetSinghChahal, @agrohsje, @alberto-sanchez can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
Pull request #36754 was updated. @SiewYan, @mkirsano, @Saptaparna, @cmsbuild, @GurpreetSinghChahal, @agrohsje, @alberto-sanchez can you please check and sign again. |
please test |
@agrohsje I still see your nick listed for "generators" in https://github.com/cms-sw/cms-bot/blob/master/categories.py The following bot PR removes it: |
I am not sure what the issue is here. In the tests I see only workflow 4.76 failing, which I can not check locally since the input files are not found at T2_CH_CERN. The code introduced here is not used in any of the tests, so I can't see how a failure would be related. |
@JanFSchulte the crash in wf 4.76 is unrelated (see #36771). Please disregard that workflow for now |
@perrotta , should i re-trigger the test and avoid 4.76 to complete the test? |
Could someone comment on the status of this PR? We would like to have if merged so we know we can move ahead with preparing the sample requests. |
class LHEGenericMassFilter : public edm::global::EDFilter<> { | ||
public: | ||
explicit LHEGenericMassFilter(const edm::ParameterSet&); | ||
~LHEGenericMassFilter() override; |
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.
~LHEGenericMassFilter() override; | |
~LHEGenericMassFilter() override = default; |
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.
Done
LHEGenericMassFilter::~LHEGenericMassFilter() { | ||
// do anything here that needs to be done at destruction time | ||
// (e.g. close files, deallocate resources etc.) | ||
} |
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.
LHEGenericMassFilter::~LHEGenericMassFilter() { | |
// do anything here that needs to be done at destruction time | |
// (e.g. close files, deallocate resources etc.) | |
} |
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.
Done
|
||
private: | ||
bool filter(edm::StreamID, edm::Event&, edm::EventSetup const&) const override; | ||
void endJob() override; |
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.
Probably not needed
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.
Removed.
double Mass = std::sqrt(E * E - (Px * Px + Py * Py + Pz * Pz)); | ||
if (Mass > minMass_ && Mass < maxMass_) { |
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.
double Mass = std::sqrt(E * E - (Px * Px + Py * Py + Pz * Pz)); | |
if (Mass > minMass_ && Mass < maxMass_) { | |
double sqrdMass = (E * E - (Px * Px + Py * Py + Pz * Pz); | |
if (sqrdMass > minMass_*minMass_ && Mass < maxMass_*maxMass_) { |
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.
Done.
As in the backported PR, I would move it into the \plugin area, also combining the header and implementation file into a single .cc |
Pull request #36754 was updated. @SiewYan, @mkirsano, @Saptaparna, @cmsbuild, @GurpreetSinghChahal, @alberto-sanchez can you please check and sign again. |
I have merged the files and moved them to plugins. I had split them up to conform to the structure of the other modules in this package, and because I had issues getting it to be included in the compilation when it was in the plugins folder. I realized now that was because there was no BuildFile.xml there, so now everything works. |
Pull request #36754 was updated. @SiewYan, @mkirsano, @Saptaparna, @cmsbuild, @GurpreetSinghChahal, @alberto-sanchez can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-25e45e/22055/summary.html Comparison SummarySummary:
|
+1 its look good to me. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_10_6_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_12_3_X is complete. This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
This PR backports the LHE filter designed to cut on the invariant mass of a number of particles introduced in #35938. Backport to 10_6_X is necessary since some high dilepton mass ttbar and WW samples need to be produced in the UL campaigns.