-
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
Process modifier for displaced SUSY simulation fix #47197
base: master
Are you sure you want to change the base?
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47197/43455 |
A new Pull Request was created by @24LopezR for master. It involves the following packages:
@antoniovilela, @civanch, @cmsbuild, @davidlange6, @fabiocos, @kpedro88, @mandrenguyen, @mdhildreth, @rappoccio can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
@24LopezR , is it really needed to add Configuration/ProcessModifiers - to me it is too much. I understand modifiers as a method to change parameters of some module for different era, for example, for run1 abd run2 something is completely different. Here we likely introduce a fix which is basically valid for all runs. We add as the default "False" and as custom "True" flags only to avoid instability in various analises, which we do not know. So, to me it is not era dependent parameter. |
It is useful to have a process modifier to make it easier for central MC requests to enable this feature. Otherwise, the cmsDriver commands require more in-depth customization, which is likely to be implemented incorrectly in McM (in my experience). |
+1 Size: This PR adds an extra 40KB to repository Comparison SummarySummary:
|
@kpedro88 , we have many parameters in g4SimHits configuration, I would not create a modifier for each. In this particular case it is a flag False/True. In the current variant of the PR, it seems to me that we simply put "True" as the default value for isSlepton flag. Earlier, when PR was more complicate, I proposed the default flag "False", but correct me if I am wrong: now "True" will work fine - let us check on couple of WFs. |
@civanch I agree that if the feature can be enabled by default without disrupting other workflows, that would be a preferable approach. |
I also agree with that, but I dont think this was proven yet, it would need high stats samples from PdmV. Tagging Sitian ( @DickyChant ) So I'd really be against changing the default for everybody! I think there is precedent for using the proc modifier for these kind of bug fixes, for example https://github.com/cms-sw/cmssw/pull/36352/files @civanch there is nothing wrong with the approach in this PR, right? I might be an overkill, but it's certainly the safest option to go with. |
There is nothing wrong is this PR. if we set isSlepton=true, then for particles with pdg code 1000011, 1000013, 1000015, 2000011, 2000013, 2000015 we will have special (much more correct) treatment. Unfortunately, we have no chance to run many generators, where these particles are not present, or some are present. There is no test (set of tests), which gurantee absolute validity of such PR. What is feasible is to run current use-case with high statistics but it is aleardy done, @24LopezR ? |
Not for SM MCs, right? |
Yes, the standard MC WFs like ttbar should not be affected at all. |
@civanch I only tested this changes for signal MC samples of smuon->mu+G (with high statistics), but not for SM MC or any other workflow. I believe the changes should not affect any other simulation. In the worst case, suppressing the z cut can have an impact, but it affects only particles decaying in z>50m, certainly SM MC wouldn't be affected by this... As @tvami says, the safest option is to have a process modifier just for our simulation. The other option is to set the IsSlepton flag to true by default and then wait for the next validation campaign to see the effects in many different scenarios, and then if something breaks up we revert the changes. Both options are good in my opinion, but of course I'll let you decide. |
PR description:
This PR is a follow up of PR #47165 . It adds a process modifier for automatically activating the flag "IsSlepton", needed for production of signal samples involving long-lived sleptons.
Also, two additional minor modifications are introduced:
PR validation:
This PR has been validated with signal samples of smuon pair production decaying to a muon and a gravitino (SMuon -> muon + G).
If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:
This PR needs to be backported (together with #47165) to 10_6_X, 12_4_X and 13_0_X for Run2 and Run3 signal sample productions.
@civanch @kpedro88 @tvami @jaimeleonh