icecube.trigger_sim.InjectDefaultDOMSets module

class icecube.trigger_sim.InjectDefaultDOMSets.InjectDefaultDOMSets(context)

Bases: I3Module

This module adds the default DOMSets information to the DetectorStatus frame. This will be the same data that older versions of trigger-sim used.

If new definitions as passed via NewDefinitionsMap, they will be added to the DOMSets written to the frame. This can be used to define DOMSets for future detector extensions.

The module will not overwrite existing information. If a DOMSet object is found, new definitions will be appended to it and the updated results will be pushed to the frame.

Configure((I3Module)arg1) None :
C++ signature :

void Configure(PythonModule<I3Module> {lvalue})

DetectorStatus((I3Module)arg1, (I3Frame)arg2) None :
C++ signature :

void DetectorStatus(PythonModule<I3Module> {lvalue},boost::shared_ptr<I3Frame>)

static GetDefaultDOMSetDefinitions()
static GetDomSets(omgeo, domset_definitions, base_domsets=None)
Static method used to create a DOMSets definition from an OMGeo and a dictionary

of DOMSet IDs to lambda functions. This is intended to be used for the python interface of trigger-sim in trigger testing.

Parameters:
  • omgeo (-) – An I3OMGeo object which will be looped through in order to label each DOM with the appropriate DOMSet IDs.

  • domset_definitions (-) – A dict{int: lambda omkey, omgeo} used to define the doms associated with each DOMSet.

  • base_domsets (-) – A pre-existing DOMSet definition that you would like to use as a base for building the DOMSet map. No values in this base_domsets will be overwritten or modified in-place.

Returns:

And I3MapKeyVectorInt used to map from an OMKey to a vector of DOMSet IDs.

Return type:

  • domsets