icecube.trigger_sim.trigger_hierarchy_recipes module¶
- icecube.trigger_sim.trigger_hierarchy_recipes.find_triggers(th, key)¶
- icecube.trigger_sim.trigger_hierarchy_recipes.generate_trigger_key(key_str)¶
This function generates a TriggerKey from the string output.
This function takes a string of the form “[<source>:<type>:<config_id>]” and is useful for generating a TriggerKey after printing one from a GCD file.
Example : In [1]: from icecube import dataclasses In [2]: from icecube import dataio In [3]: from icecube.sim_services.sim_utils.gcd_utils import get_triggerstatus In [4]: f = dataio.I3File(<path_to_gcd_file>) In [5]: ts = get_triggerstatus(f) In [6]: for key in ts.keys() : print key [IN_ICE:SIMPLE_MULTIPLICITY:1006] [IN_ICE:SIMPLE_MULTIPLICITY:1011] [IN_ICE:SLOW_PARTICLE:24002] [IN_ICE:STRING:1007] [IN_ICE:VOLUME:21001] [ICE_TOP:SIMPLE_MULTIPLICITY:102] In [7]: from icecube.trigger_sim.trigger_hierarchy_recipes import generate_trigger_key In [8]: key = generate_trigger_key(‘[IN_ICE:SIMPLE_MULTIPLICITY:1006]’) In [9]: trigger_config = ts[key] In [10]: for setting in trigger_config.trigger_settings : print setting (threshold, 8) (timeWindow, 5000)
- icecube.trigger_sim.trigger_hierarchy_recipes.n_triggers(th, sourceID=None, typeID=None, configID=None)¶
- icecube.trigger_sim.trigger_hierarchy_recipes.trigger_lengths(th: I3TriggerHierarchy, sourceID=None, typeID=None, configID=None)¶