Skip to content

Commit

Permalink
only consider energy losses within 2000m and above energy cutoff
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuen committed Feb 10, 2020
1 parent 126fbd4 commit 7cab3fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ic3_data/utils/mc_tree_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def get_mc_tree_input_data_dict(frame, angle_bins, distance_bins,
for loss in frame['I3MCTree']:

# skip energy loss if it is not one of the allowed types
if loss.type not in allowed_types:
if (loss.type not in allowed_types or loss.energy < energy_cutoff
or loss.pos.magnitude > 2000):
continue

# walk through DOMs and calculate data
Expand Down
3 changes: 2 additions & 1 deletion ic3_data_ext/ext_boost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ inline boost::python::dict get_mc_tree_input_data_dict(
break;
default: is_allowed_type=false;
}
if (!is_allowed_type){
if (!is_allowed_type || loss.GetEnergy() < energy_cutoff ||
loss.GetPos().Magnitude() > 2000){
continue;
}

Expand Down

0 comments on commit 7cab3fd

Please sign in to comment.