Skip to content

Conversation

@davidwalter2
Copy link
Collaborator

@davidwalter2 davidwalter2 commented Jan 16, 2026

Harmonizing the dataset resources

  • Dataset names are given by "dataset_era" for example "Zmumu_2016postVFP", "Zmumu_2017" etc.
  • The dataset names for data are changed to "primaryDataset_era" e.g. "SingleMuon_2018A" instead of just "Data" for similar reasons.
  • This allows to process datasets from different eras in one histmaker e.g. in the gen histmaker
  • The cross sections are now defined in common to have them at a single place

Update on binning

  • Switching to use 20 quantiles in yll for Z reco level fit, updating the quantile file correspondingly
  • Updating the angular coefficients file to the updated binning with different binning between W and Z. But using the same file now for all analyses (except theory agnostic).
    • Verified to get the same results for the W (when using 2016postVFP samples only)
    • The new file include the 2017 and 2018 samples, leading to small differences also for the W
  • Removed duplicated binning definition and tried to harmonize small differences
  • Update theory corrections with fine binning for the Z

Requires: https://gitlab.cern.ch/cms-wmass/wremnants-data/-/merge_requests/95

$WREMNANTS_OUTDIR/WMass_eta_pt_charge_poiAsNoi/WMass_absEtaGen_ptGen_qGen_theoryfit/fitresults.hdf5
--grouping max --config 'utilities/styles/styles.py' --postfix poiAsNoi
-o $WEB_DIR/$PLOT_DIR/unfolding_mw -n 50 --otherExtensions pdf png --showNumbers --oneSidedImpacts -s absimpact --scale 1.5
-o $WEB_DIR/$PLOT_DIR/unfolding_mw -n 50 --otherExtensions pdf png --showNumbers --oneSidedImpacts -s absimpact --scaleImpacts 1.5
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think you have to implement it for this PR, but it should be possible to take this from the pdfInfo to avoid it having to be manually synchronised.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think we want to keep the rabbit scripts analysis independent so I don't see how the pdfInfo can be used here. Maybe through the specified config file which. But I agree to do this at some later time.

-o {args.outdir} --maxFiles -1 -j 300 --addHelicityAxis --pdf {pdf} --aggregateGroups Zmumu Wmunu
"""
print(f"Running command: {command}")
os.system(command)
Copy link
Collaborator

Choose a reason for hiding this comment

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

os.system from a python script to call a python script is kind of criminal...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

First of all, I didn't add this script. But I find it useful. If the histmaker scripts were written with a main function etc. it could be possible to import and run ... I would leave this for future work.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@kdlong, David speaks the truth: he bears no more guilt than you, it is I who is to be blamed for this terrible sin. Punish me as you see fit

fig, ax = plt.subplots(figsize=(6, 6))
icorrh.plot(ax=ax, cmin=0.5, cmax=1.5)

plot_name = f"corr2D_{generator}_MiNNLO_{proc}{suffix}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are all these plots useful vs. just having one plot differential in Q?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For debugging. There is a break statement at the end of the loop so it will only plot the first one, but it can be commented. This also fixes the case the minnloh hist has variations, which were previously summed up

@davidwalter2
Copy link
Collaborator Author

@lucalavezzo lucalavezzo merged commit ce1a03b into WMass:main Jan 28, 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