Skip to content

Commit

Permalink
Deleted unecessary files, updated ttbar.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiPovsten committed May 17, 2024
1 parent 04ddb39 commit 1911dd3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 289 deletions.
Binary file modified .DS_Store
Binary file not shown.
231 changes: 0 additions & 231 deletions 4j2b_horCR.yaml

This file was deleted.

32 changes: 2 additions & 30 deletions analyses/cms-open-data-ttbar/ttbar_analysis_pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -901,31 +901,6 @@
"utils.file_output.save_histograms(all_histograms['hist_dict'], \"histograms.root\")\n",
"\n",
"if USE_INFERENCE:\n",
" utils.file_output.save_histograms(all_histograms['ml_hist_dict'],\n",
" fileset,\n",
" \"histograms_ml.root\",\n",
" utils.config[\"ml\"][\"FEATURE_NAMES\"],\n",
" add_offset=True)\n",
" #Ok, here supposely needs to be the \n",
" # REANA platform runs each workflow in an independent workspace"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "7a53282f",
"metadata": {},
"outputs": [],
"source": [
"#Merging step\n",
"import uproot\n",
"#LIST_OF_FILES_PER_SAMPLE is a list of 9 files containing histograms per sample \n",
"\n",
"with uproot.recreate(\"histograms_merged.root\") as f_out:\n",
" for h_file in LIST_OF_FILES_PER_SAMPLE:\n",
" with uproot.open(\"h_file\") as f_per_sample:\n",
" for key, value in f_per_sample.items():\n",
" f_out[key] = value "
" utils.file_output.save_histograms(all_histograms['ml_hist_dict'], \"histograms_ml.root\", add_offset=True)"
]
},
Expand Down Expand Up @@ -974,7 +949,6 @@
]
},
{
"attachments": {},
"cell_type": "code",
"execution_count": 16,
"id": "09a83712",
Expand Down Expand Up @@ -1190,7 +1164,7 @@
"We have a channel for each ML observable:"
]
},
{
{
"cell_type": "code",
"execution_count": 22,
"id": "d8e36bac",
Expand Down Expand Up @@ -1332,7 +1306,7 @@
"metadata": {},
"outputs": [],
"source": [
"if utils.config[\"preservation\"][\"HEP_DATA\"] == False:\n",
"if utils.config[\"preservation\"][\"HEP_DATA\"] == True:\n",
" import utils.hepdata\n",
" #Submission of model prediction\n",
" utils.hepdata.submission_hep_data(model, model_prediction, \"hepdata_model\")\n",
Expand All @@ -1341,8 +1315,6 @@
]
},
{
"attachments": {},

"cell_type": "markdown",
"id": "a2ce2d14",
"metadata": {},
Expand Down
Loading

0 comments on commit 1911dd3

Please sign in to comment.