-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Merge with new JEC/jet map features
feat: new xsec, add assertion - helper:add new xs - scripts:assertion - scripts: hadd feat: merge array_writer - utils: add array_writer - wf: merge Wc/tt and rename, merge e/mu DY, ttdilep - wf: use array writer
- Loading branch information
1 parent
25bee05
commit 87ce535
Showing
32 changed files
with
722 additions
and
4,280 deletions.
There are no files selected for viewing
This file contains 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,28 @@ | ||
import matplotlib.pyplot as plt | ||
import mplhep as hep | ||
from coffea.util import load | ||
|
||
out = load("hists_ctag_Wc_sf_test/hists_ctag_Wc_sf_test.coffea") | ||
for i in range(4): | ||
hep.histplot( | ||
out[list(out.keys())[0]]["weird_MET_phi"][i, :], | ||
label=out[list(out.keys())[0]]["weird_MET_phi"].axes[0].value(i), | ||
) | ||
plt.legend() | ||
plt.savefig("all_MET_phi.pdf") | ||
plt.cla() | ||
for i in range(4): | ||
hep.histplot( | ||
out[list(out.keys())[0]]["weird_MET_pt"][i, :], | ||
label=out[list(out.keys())[0]]["weird_MET_pt"].axes[0].value(i), | ||
) | ||
plt.legend() | ||
plt.savefig("all_MET_pt.pdf") | ||
plt.cla() | ||
|
||
print(out[list(out.keys())[0]]["MET_phi"]) | ||
hep.histplot(out[list(out.keys())[0]]["MET_phi"][0, sum, :]) | ||
plt.savefig("selcted_phi.pdf") | ||
plt.cla() | ||
hep.histplot(out[list(out.keys())[0]]["MET_pt"][0, sum, :]) | ||
plt.savefig("selcted_pt.pdf") |
This file contains 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
This file contains 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,25 @@ | ||
import os, sys | ||
from glob import glob | ||
|
||
indir = sys.argv[1] | ||
|
||
systs = os.listdir(indir) | ||
|
||
outfile = open("hadd.sh", "w") | ||
|
||
for syst in systs: | ||
roots = glob(f"{indir}/{syst}/*/*.root") | ||
if len(roots) == 0: | ||
print(f"Skipping {indir}/{syst}. Not the right directory structure.") | ||
continue | ||
samps = os.listdir(f"{indir}/{syst}") | ||
for samp in samps: | ||
if len(glob(f"{indir}/{syst}/{samp}/*.root")) == 0: | ||
continue | ||
outfile.write( | ||
f"hadd -v 0 {indir}/{syst}/{samp}.root {indir}/{syst}/{samp}/*.root\n" | ||
) | ||
|
||
print( | ||
"Now run `parallel :::: hadd.sh` from an environment with ROOT installed. E.g. \nconda activate rootenv\nparallel :::: hadd.sh\nconda activate btv_coffea" | ||
) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
111 changes: 111 additions & 0 deletions
111
src/BTVNanoCommissioning/data/lumiMasks/Cert_Collisions2024_378981_380649_Golden.json
This file contains 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,111 @@ | ||
{ | ||
"378985": [[57, 824]], | ||
"378993": [[121, 200]], | ||
"379006": [[1, 23]], | ||
"379011": [[1, 399]], | ||
"379012": [[1, 73]], | ||
"379028": [[66, 599]], | ||
"379031": [[1, 289]], | ||
"379058": [[38, 863]], | ||
"379075": [[33, 407]], | ||
"379154": [[17, 1065]], | ||
"379238": [[11, 296]], | ||
"379243": [[39, 337]], | ||
"379252": [[34, 677]], | ||
"379253": [[1, 104]], | ||
"379338": [[1, 170]], | ||
"379355": [[1, 20]], | ||
"379416": [ | ||
[1, 34], | ||
[56, 88], | ||
[94, 102], | ||
[107, 225] | ||
], | ||
"379420": [[38, 497], [499, 554]], | ||
"379425": [[29, 231]], | ||
"379433": [[27, 47]], | ||
"379442": [[19, 287]], | ||
"379454": [[33, 530]], | ||
"379456": [[1, 1199]], | ||
"379470": [[5, 804]], | ||
"379530": [[30, 622]], | ||
"379613": [[38, 157]], | ||
"379617": [[1, 130], [132, 665]], | ||
"379618": [[1, 360]], | ||
"379660": [[60, 1566]], | ||
"379661": [[1, 406]], | ||
"379729": [[57, 668], [670, 1522]], | ||
"379765": [[43, 682], [684, 1738]], | ||
"379774": [[29, 213]], | ||
"379866": [[26, 1375]], | ||
"379984": [[36, 948]], | ||
"380001": [[36, 616], [618, 727]], | ||
"380005": [ | ||
[33, 79], | ||
[82, 311], | ||
[317, 1101] | ||
], | ||
"380007": [[1, 129]], | ||
"380029": [[35, 89]], | ||
"380030": [[1, 346]], | ||
"380032": [[149, 167]], | ||
"380033": [[1, 53]], | ||
"380043": [[33, 932]], | ||
"380049": [[33, 903]], | ||
"380051": [[1, 735]], | ||
"380052": [[1, 12]], | ||
"380053": [[1, 128]], | ||
"380056": [[1, 168]], | ||
"380066": [[34, 585]], | ||
"380074": [[29, 840], [842, 1335]], | ||
"380115": [[27, 1818]], | ||
"380126": [[40, 991]], | ||
"380127": [[1, 535]], | ||
"380128": [[1, 387]], | ||
"380195": [[87, 93]], | ||
"380197": [[1, 357]], | ||
"380235": [[32, 287]], | ||
"380236": [[1, 52], [59, 63]], | ||
"380306": [[28, 273]], | ||
"380308": [[1, 35]], | ||
"380309": [[1, 351]], | ||
"380310": [[1, 1131]], | ||
"380346": [[34, 334], [342, 606]], | ||
"380348": [[1, 341]], | ||
"380349": [[1, 695]], | ||
"380360": [ | ||
[32, 147], | ||
[149, 954], | ||
[967, 1972] | ||
], | ||
"380377": [[36, 455]], | ||
"380384": [[48, 798]], | ||
"380385": [[1, 1247]], | ||
"380399": [[38, 531]], | ||
"380403": [[9, 259]], | ||
"380444": [[4, 328]], | ||
"380446": [[1, 321], [327, 1033]], | ||
"380447": [[1, 810]], | ||
"380466": [[37, 400], [416, 555]], | ||
"380470": [[1, 1634]], | ||
"380481": [[25, 884]], | ||
"380513": [[5, 1162]], | ||
"380517": [[1, 39]], | ||
"380531": [ | ||
[28, 355], | ||
[362, 913], | ||
[919, 1062] | ||
], | ||
"380534": [[1, 746]], | ||
"380537": [[1, 58]], | ||
"380538": [[1, 144]], | ||
"380564": [[38, 779]], | ||
"380567": [[1, 1081]], | ||
"380623": [[30, 417]], | ||
"380624": [[1, 809]], | ||
"380625": [[1, 7]], | ||
"380626": [[1, 9], [13, 17]], | ||
"380627": [[1, 808]], | ||
"380647": [[35, 409]], | ||
"380649": [[1, 401]] | ||
} |
This file contains 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 |
---|---|---|
|
@@ -6216,7 +6216,6 @@ def SV_definitions(): | |
|
||
|
||
def axes_name(var): | ||
|
||
output = {} | ||
|
||
unit = "" | ||
|
Oops, something went wrong.