Skip to content

Rabbit tensorwriter for direct theory fit of sigmaUL#677

Merged
davidwalter2 merged 4 commits intoWMass:mainfrom
lucalavezzo:luca-dev-feed-rabbit-sigmaul
Mar 25, 2026
Merged

Rabbit tensorwriter for direct theory fit of sigmaUL#677
davidwalter2 merged 4 commits intoWMass:mainfrom
lucalavezzo:luca-dev-feed-rabbit-sigmaul

Conversation

@lucalavezzo
Copy link
Collaborator

@lucalavezzo lucalavezzo commented Mar 20, 2026

Relies on #671

The previous script, feedRabbitTheory.py, was creating tensors for rabbit for sigmaUL, as well as for W and the Ai's. The latter two -- W and Ai -- were duplicate efforts to what setupRabbit.py already does, since it's in fiducial phase space, they have to be read from MiNNLO. The sigmaUL, on the other hand, is in full lepton phase space, so it can be compared directly to the generators' predictions and variations.

The new structure is to have a single feedRabbitSigmaUL.py, and all it does is create the rabbit tensor for sigmaUL directly from the TheoryCorrection files.

The sigmaUL tensor from feedRabbitSigmaUL.py and the W,Ai tensors from setupRabbit.py can be combined, as different cards, if one wants to do a simultaneous fit.

@kdlong
Copy link
Collaborator

kdlong commented Mar 23, 2026

I still don't understand what the input of the script is: is it the rabbit tensor (e.g., ZMassDilepton.hdf5) or is it the corrections file from SCETlib+DYTurbo (wremnants-data/data/TheoryCorrections/*.pkl.lz4)

@lucalavezzo
Copy link
Collaborator Author

I still don't understand what the input of the script is: is it the rabbit tensor (e.g., ZMassDilepton.hdf5) or is it the corrections file from SCETlib+DYTurbo (wremnants-data/data/TheoryCorrections/*.pkl.lz4)

Hi @kdlong the inputs are:

  1. unfodled sigmaUL
  2. TheoryCorrections

the output is a tensor for rabbit to the generator-level extraction.

@lucalavezzo lucalavezzo marked this pull request as ready for review March 23, 2026 20:23
Copy link
Collaborator

@davidwalter2 davidwalter2 left a comment

Choose a reason for hiding this comment

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

The feedRabbitTheory script looks very good, I have a few comments to make it more integrated with the rest of the framework.

@davidwalter2 davidwalter2 merged commit 329778f into WMass:main Mar 25, 2026
19 checks passed
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.

3 participants