Skip to content

Commit

Permalink
Add genie-icetray test data to the contrib/book_simweights_testdata.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlarson committed Nov 2, 2024
1 parent c47a339 commit a6d4344
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions contrib/book_simweights_testdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ def fake_event_header(frame: dict) -> None:
"genie": [
"/data/sim/IceCubeUpgrade/genie/step3/141828/upgrade_genie_step3_141828_000000.i3.zst",
"/data/sim/IceCube/2023/generated/GENIE/22590/0000000-0000999/GENIE_NuMu_IceCubeUpgrade_v58.22590.000000.i3.zst",
"/data/user/mlarson/icetray/src/genie-reader/resources/scripts/genie_numu_volume_scaling.i3.zst",
"/data/ana/Software/simweights/test-data/genie_numu_volume_scaling.i3.zst",
"/data/ana/Software/simweights/test-data/genie-icetray.140000A_000000.i3.zst",
"/data/ana/Software/simweights/test-data/genie-icetray.140000B_000000.i3.zst",
"/data/ana/Software/simweights/test-data/genie-icetray.140000C_000000.i3.zst",
"/data/ana/Software/simweights/test-data/genie-icetray.140000D_000000.i3.zst",
"/data/ana/Software/simweights/test-data/level2_genie-icetray.140000_000000.i3.zst",
],
}
keys = {
Expand All @@ -74,7 +79,11 @@ def fake_event_header(frame: dict) -> None:
"I3CorsikaWeight",
],
"nugen": ["I3MCWeightDict"],
"genie": ["I3GenieInfo", "I3GenieResult", "I3MCWeightDict"],
"genie": ["I3GenieInfo",
"I3GenieResult",
"I3GENIEResultDict",
"I3MCWeightDict",
],
"icetop": ["I3TopInjectorInfo", "MCPrimary"],
}
streams = {
Expand Down Expand Up @@ -133,7 +142,7 @@ def fake_event_header(frame: dict) -> None:
tray.Execute()
del tray

tarfilename = "/data/user/kmeagher/simweights_testdata_test.tar.gz"
tarfilename = "/data/ana/Software/simweights/test-data/simweights_testdata_test.tar.gz"
print(f"Writing tarfile {tarfilename}")

with tarfile.open(tarfilename, "w:gz") as tar:
Expand Down

0 comments on commit a6d4344

Please sign in to comment.