Skip to content

Commit

Permalink
Register truth plugins in the context
Browse files Browse the repository at this point in the history
  • Loading branch information
HenningSE committed Feb 1, 2024
1 parent 2711b37 commit 02520a1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fuse/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
fuse.pmt_and_daq.PMTResponseAndDAQ,
]

#Plugins to get truth information
truth_information_plugins = [fuse.truth_information.PeakTruth,
fuse.truth_information.EventTruth,
fuse.truth_information.SurvivingClusters,]

def microphysics_context(output_folder = "./fuse_data"
):
"""
Expand Down Expand Up @@ -92,6 +97,10 @@ def full_chain_context(output_folder = "./fuse_data",
for plugin in pmt_and_daq_plugins:
st.register(plugin)

#Register truth plugins
for plugin in truth_information_plugins:
st.register(plugin)

if corrections_version is not None:
st.apply_xedocs_configs(version=corrections_version)

Expand Down

0 comments on commit 02520a1

Please sign in to comment.