Skip to content

Added mixed datasets, updated b-tag SF-efficiency calculation and minor#49

Open
thierryharte wants to merge 5 commits intomatteomalucchi:mainfrom
thierryharte:main
Open

Added mixed datasets, updated b-tag SF-efficiency calculation and minor#49
thierryharte wants to merge 5 commits intomatteomalucchi:mainfrom
thierryharte:main

Conversation

@thierryharte
Copy link
Copy Markdown

Multiple changes. The main points:

  • Added possibility to run with mixed datasets (both workflow and plotting scripts)
  • Added option to remove large reweighting weights (>100)
  • Added option to edit the cmstext in plots
  • Added new btag-SF efficiency calculation and put respective configs up-to-date
  • Added new config files

goldenJson,
get_nPVgood(1),
get_HLTsel(primaryDatasets=["JetMET"]),
get_HLTsel(primaryDatasets=["JetMET"])
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

hlt

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

fixed. HLT only called, when NOT mixed

mask = get_JetVetoMap_Mask(
events_copy, params, year, processor_params_copy, **kwargs
)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

do not except

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

fixed

Comment thread scripts/plot_2bMorphedvs4b.py Outdated

filter_lambda = (lambda x: ("weight" in x or "score" in x)) if args.spread else None
cat_col_data, total_datasets_list = get_columns_from_files(inputfiles, "nominal", filter_lambda, debug=False, novars=args.novars)
filter_lambda = (lambda x: ("weight" in x or "score" in x)) if args.spread else (lambda x: "prov" not in x and "add_jet1pt_mass" not in x and "events_sigma" not in x and "era" not in x)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

remove add jet mass

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

Comment thread scripts/plot_DNN_score.py
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

test on normal 2b data

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I tested both plotDNN and reweighting plotting script with both mixed data and 2bregion data.
Also I reran a test for the mixed dataset workflow.
All of them run and give expected results.

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