icecube.offline_filterscripts.filter_segments.muon_filter.Reconstruct module

Segments for various muon reconstructions for the offline muon filter.

icecube.offline_filterscripts.filter_segments.muon_filter.Reconstruct.CalculateShieldVars(tray, name='CalculateShieldVars')

Calculate shield variables to look for hits in IceTop.

Note

This only calculates the number of potential hits in IceTop for future selections. It does not perform any cuts.

Parameters:
  • tray (object) – The IceTray tray object.

  • name (str, optional) – The name of this segment. Defaults to “CalculateShieldVars”.

icecube.offline_filterscripts.filter_segments.muon_filter.Reconstruct.DoBayesianFit(tray, name='DoBayesianFit', Pulses='', Seed='', If=<function <lambda>>)

Perform a Bayesian fit using the given parameters.

Parameters:
  • tray (object) – The tray object.

  • name (str, optional) – The name of this segment. Defaults to “DoBayesianFit”.

  • Pulses (str, optional) – The input I3RecoPulseSeriesMap. Defaults to an empty string.

  • Seed (str, optional) – The first guess for the seed particle. Defaults to an empty string.

  • If (function, optional) – The condition for applying the fit. Defaults to lambda frame: True.

icecube.offline_filterscripts.filter_segments.muon_filter.Reconstruct.DoReconstructions(tray, name='DoReconstructions', photonicsdir='/cvmfs/icecube.opensciencegrid.org/data/photon-tables/SPICEMie/', photonicsdriverdir='/cvmfs/icecube.opensciencegrid.org/data/photon-tables/SPICEMie/driverfiles/', photonicsdriverfile='mu_photorec.list', infmuonampsplinepath='/cvmfs/icecube.opensciencegrid.org/data/photon-tables/splines/InfBareMu_mie_abs_z20a10_V2.fits', infmuonprobsplinepath='/cvmfs/icecube.opensciencegrid.org/data/photon-tables/splines/InfBareMu_mie_prob_z20a10_V2.fits', cascadeampsplinepath='/cvmfs/icecube.opensciencegrid.org/data/photon-tables/splines/cascade_single_spice_ftp-v1_flat_z20_a5.abs.fits', cascadeprobsplinepath='/cvmfs/icecube.opensciencegrid.org/data/photon-tables/splines/cascade_single_spice_ftp-v1_flat_z20_a5.prob.v2.fits', cascadeeffdsplinepath='/cvmfs/icecube.opensciencegrid.org/data/photon-tables/splines/cascade_effectivedistance_spice_ftp-v1_z20.eff.fits', cascadeeffdprobsplinepath='/cvmfs/icecube.opensciencegrid.org/data/photon-tables/splines/cascade_effectivedistance_spice_ftp-v1_z20.prob.fits', cascadeeffdtmodsplinepath='/cvmfs/icecube.opensciencegrid.org/data/photon-tables/splines/cascade_effectivedistance_spice_ftp-v1_z20.tmod.fits', tiltdir='$I3_BUILD/ice-models/resources/models/ICEMODEL/spice_ftp-v1/', If=<function <lambda>>)

Perform various reconstructions on the input data.

Parameters:
  • tray (I3Tray) – The I3Tray instance.

  • name (str, optional) – The name of this segment. Defaults to “DoReconstructions”.

  • photonicsdir (str, optional) – The directory containing the photonics data. Defaults to a standard CVMFS path.

  • photonicsdriverdir (str, optional) – The directory containing the photonics driver data. Defaults to a standard CVMFS path.

  • photonicsdriverfile (str, optional) – The photonics driver file. Defaults to a standard CVMFS path.

  • infmuonampsplinepath (str, optional) – The path to the infmuon amplitude spline. Defaults to a standard CVMFS path.

  • infmuonprobsplinepath (str, optional) – The path to the infmuon probability spline. Defaults to a standard CVMFS path.

  • cascadeampsplinepath (str, optional) – The path to the cascade amplitude spline. Defaults to a standard CVMFS path.

  • cascadeprobsplinepath (str, optional) – The path to the cascade probability spline. Defaults to a standard CVMFS path.

  • cascadeeffdsplinepath (str, optional) – The path to the cascade effective distance spline. Defaults to a standard CVMFS path.

  • cascadeeffdprobsplinepath (str, optional) – The path to the cascade effective distance spline for radial shifts. Defaults to a standard CVMFS path.

  • cascadeeffdtmodsplinepath (str, optional) – The path to the cascade effective distance spline for timing shifts. Defaults to a standard CVMFS path.

  • tiltdir (str, optional) – The path to the tilt model directory.

  • If (function, optional) – The function that determines whether to perform the reconstruction on a given frame. Defaults to lambda f: True.

icecube.offline_filterscripts.filter_segments.muon_filter.Reconstruct.DoSplineReco(tray, name='DoSplineReco', spline='', If=<function <lambda>>)

Perform spline reconstruction for muon tracks.

Parameters:
  • tray (object) – The IceTray tray object.

  • name (str, optional) – The name of this segment. Defaults to “DoSplineReco”.

  • spline (str, optional) – The photonics service to be used. Defaults to “”.

  • If (function, optional) – The condition for running the reconstruction. Defaults to lambda frame: True.

icecube.offline_filterscripts.filter_segments.muon_filter.Reconstruct.DoSplitFits(tray, name='DoSplitFits', Pulses='', If=<function <lambda>>)

Perform split fits on the input pulses.

Parameters:
  • tray (I3Tray) – The I3Tray object.

  • name (str, optional) – The name of this segment. Defaults to “DoSplitFits”.

  • Pulses (str, optional) – The input pulse map. Defaults to an empty string.

  • If (function, optional) – The condition for executing the module. Defaults to a lambda function that always returns True.

icecube.offline_filterscripts.filter_segments.muon_filter.Reconstruct.Paraboloid(tray, name='Paraboloid', If=<function <lambda>>)

Perform paraboloid reconstruction on muon events.

Parameters:
  • tray (object) – The I3Tray instance.

  • name (str, optional) – The name of this tray segment. Defaults to “Paraboloid”.

  • If (function, optional) – A function that determines whether to apply the reconstruction. Defaults to a lambda function that always returns True.

icecube.offline_filterscripts.filter_segments.muon_filter.Reconstruct.SplitRecos(tray, name='SplitRecos', Pulses='', Suffix='', If=<function <lambda>>)

Perform split reconstruction on the given tray.

Parameters:
  • tray (object) – The tray object to add segments to.

  • name (str, optional) – Name of this segment. Defaults to “SplitRecos”.

  • Pulses (str, optional) – Input response for the split reconstruction. Defaults to “”.

  • Suffix (str, optional) – Suffix for the fit names. Defaults to “”.

  • If (function, optional) – Function to determine if the segment should be executed. Defaults to lambda frame: True.