icecube.offline_filterscripts.filter_segments.shadow_filter_base module

Shadow filter base class.

This is the base class for the Moon and the Sun filter. It takes various options defining the exact behaviour and geometry of the filter.

The filter decision depends on the following:

  • Is the Moon/Sun high enough on the sky?

  • Does the specified reconstruction exist?

  • Is the event close enough to the position of the Moon/Sun?

returns:

filter results per-split

rtype:
  • I3Bool in InIceSplit P frames named <filter_name> with

class icecube.offline_filterscripts.filter_segments.shadow_filter_base.I3ShadowFilter(context)

Bases: I3ConditionalModule

Filter to select events coming from a direction close to Moon or Sun.

CheckShadow(frame)

Return True if Sun/Moon is high enough in the sky.

If the filter is applied to MC events, new random times are generated here.

Configure()

Set up parameters and do sanity checks on given parameters.

ConfigureMCSampler()

Configure parameters used when random times are generated for MC.

ConfigureShadowWindow()

Configure geometry of the filtered window.

Geometry parameters are set and some checks if they are reasonable are performed.

Finish()

Summarized overview of the parameters, kept and rejected events.

InShadowWindow()

Test if the direction of the event is close eough to Moon/Sun.

KeepEvent(frame)

Apply checks to select the events that will be kept.

Physics(frame)

For all P-frames.

Check if the event passes the filter and store the result in the frame.

ReconstructionAvailable(frame)

Check for missing/bad event reconstruction.

Event is rejected if the data is incomplete.