Skip to content
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

Update Impacts.py #996

Merged
merged 7 commits into from
Jul 24, 2024
Merged

Update Impacts.py #996

merged 7 commits into from
Jul 24, 2024

Conversation

anigamova
Copy link
Collaborator

  1. Adding possibility to process regex in --setParameters
  2. Remove old iterators (createIterator()) in Impacts.py and FastScan.py

Copy link
Collaborator

@kcormi kcormi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Aliya. As well as the minor comment above, I noticed its not entirely clear to me what the intended difference between--setParameters and --setPhysicsModelParameters is. It looks like its maybe a relic of times long past?

There are references to it in comments of src/Combine.cc but these also seem to be mistaken and should be referring to --setParameters.

set_parameters_str += var_str + ","
else:
set_parameters_str += setParam + ","
self.args.setPhysicsModelParameters = set_parameters_str.rstrip(",")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is meant to be inside the if block starting on l.208, or else set_parameter_str doesn't exist.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting this!

Aliya Nigamova added 2 commits July 24, 2024 10:50
@anigamova
Copy link
Collaborator Author

I think --setPhysicsModelParameters is not used and replaced by --setParameters https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/blob/main/python/tool_base/Impacts.py#L108, in Combine.cc as well
Could try to remove it, not sure if anyone is using it though

@kcormi
Copy link
Collaborator

kcormi commented Jul 24, 2024

I think --setPhysicsModelParameters is not used and replaced by --setParameters https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/blob/main/python/tool_base/Impacts.py#L108, in Combine.cc as well Could try to remove it, not sure if anyone is using it though

It seems to fail if the option is used since it doesn't actually exist in combine but the tool tries to pass it through. But I can remove it in another PR. This one looks good to me.

@anigamova
Copy link
Collaborator Author

ok, I removed the --setPhysicsModelParameters option here

@anigamova anigamova merged commit 0cb4611 into main Jul 24, 2024
8 checks passed
Copy link
Collaborator

@kcormi kcormi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants