-
Notifications
You must be signed in to change notification settings - Fork 383
add midterm blog post for Soumyadip Niyogi (gsoc26) #1945
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
Open
captainvogon
wants to merge
2
commits into
HSF:main
Choose a base branch
from
captainvogon:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+35
−0
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...gs/2026/blog_Midterm_Integration_of_Combine_with_FCCAnalyses_SoumyadipNiyogi.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| | | | | ||
| | --- | --- | | ||
| | Name | [Soumyadip Niyogi](https://github.com/captainvogon) | | ||
| | Organisation | [IISER Thiruvananthapuram](https://www.iisertvm.ac.in/), [CERN](https://home.cern/), [HSF](https://hepsoftwarefoundation.org/) | | ||
| | Mentor | [Juraj Smiesko](https://kjvbrt.org/) (CERN), [Jan Eysermans](https://github.com/jeyserma) (MIT) | | ||
| | Project | [Integration of CMS Combine with FCCAnalyses](https://summerofcode.withgoogle.com/programs/2026/projects/FyDjzZ3Y) | | ||
|
|
||
| ## Introduction | ||
| Hi again! We are at the midpoint of GSoC 2026, and I am excited to share the progress on my project bridging `FCCAnalyses` and `CMS Combine`. Since my introductory post, I have spent my time deep in the Python architecture of `FCCAnalyses`, transforming ROOT histograms from simulated e⁺e⁻ → ZH events into automated statistical models. | ||
|
|
||
| The primary goal of this first half was to build the core datacard generation engine. I am happy to report that the automated pipeline is now up and running. You can check out the finalized skeleton framework in [my latest Pull Request here](https://github.com/HEP-FCC/FCCAnalyses/pull/520). | ||
|
|
||
| ## Progress So Far: The Core Engine | ||
| Over the past month, I have successfully implemented the `fit.py` interface within the `FCCAnalyses` framework. Here is what the tool can currently do: | ||
|
|
||
| * **Automated Datacard Generation:** The framework reads a user-defined, object-oriented Python configuration and automatically maps the requested signal and background processes to their respective ROOT shape histograms. It then spits out a perfectly formatted text-based `datacard.txt`. | ||
| * **The Execution Flag (`-e`):** To make the workflow completely seamless, I added a backend hook. By simply appending `-e` to the CLI command, the framework passes the newly generated datacard directly into a `subprocess` to execute `Combine` natively, eliminating the need for physicists to manually string together terminal commands. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can maybe mention that the additional parameters for Combine can be provided after |
||
|
|
||
| ## The Technical Challenge: ROOT | ||
| In the beginning I ran into a curious technical roadblock. When testing the `-e` direct execution flag on our generated datacards using Combine's `AsymptoticLimits` method, the framework kept throwing a fatal C++ exception: `Caught exception Value 2.2 is outside the default range [0, 1.76]`. | ||
|
|
||
| Initially, I thought our physics statistics were too low, or that the datacard was structurally broken. After some debugging with my mentors, we discovered the real culprit was ROOT 6.30. | ||
| The newest version of ROOT bundled in the Key4hep nightly builds has deprecated the old "silent boundary clipping" behavior. When running `AsymptoticLimits` on our perfectly smooth Asimov dataset, Combine's internal minimizer (Minuit) would aggressively guess a parameter boundary, step slightly out of bounds to test a value, and instantly trigger this new, strict ROOT exception, crashing the entire job! | ||
|
|
||
| **The Validation:** To bypass Combine's range-guessing and prove that my Python code was generating valid datacards, we switched the backend to run a `-M FitDiagnostics` test instead. The fit converged perfectly on our fake dataset, yielding `Best fit r: 1.0` with roughly a ~1.25% uncertainty. This proof that the datacards are structurally sound was a massive relief. | ||
|
|
||
| ## Next Steps | ||
| With the core generation and execution engine validated, the second half of the summer will focus on the physics and usability. | ||
|
|
||
| **Full Statistics Validation:** Moving past the Asimov testing phase to run the framework on full-statistics ZH → μμ background and signal shapes. | ||
|
|
||
| **Documentation:** Writing the user tutorials and `pytest` suite so the FCC community can actually learn to use the interface. | ||
|
|
||
| ## Acknowledgements | ||
| A huge thank you to my mentors, Jan and Juraj, for their responsive feedback on Mattermost and for helping me decipher cryptic ROOT exceptions. I am looking forward to bringing this tool to the finish line over the next couple of months. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
it's no longer a skeleton :)