icecube.simprod.modules.corsika module

class icecube.simprod.modules.corsika.Corsika5ComponentGenerator

Bases: ParsingModule

Wrapper that generates 5-component CORSIKA. Runs CORSIKA once for each primary type.

Execute(stats)
class icecube.simprod.modules.corsika.CorsikaGenerator

Bases: ParsingModule

Wrapper class that runs CORSIKA

Execute(stats)
run_tray(cors)
icecube.simprod.modules.corsika.CorsikaReaderTraySegment(tray, name, gcdfile, randomService, cors, oversampling, legacyoversampling=False, stats={}, propagate_muons=False, select_neutrino=False, filenamelist=[], CylinderHeight=1200, CylinderRadius=600, SimulateIceTop=True, TrimShower=True)

Tray Segment for basic CORSIKA simulation (generation)

icecube.simprod.modules.corsika.SetAtmosphereWeight(frame, atmosphere)

Function so set the atmosphere to I3CorsikaInfo and CorsikaWeightMap used in CORSIKA simulation.

Parameters:
icecube.simprod.modules.corsika.configure_corsika(params)

Configure corsika from paramters

icecube.simprod.modules.corsika.from_real_atmosphere(atmosphere, real_atmosphere)

Function to map the atmosphere used in CORSIKA simulations to the internal CORSIKA atmosphere codes.

Parameters:
  • atmosphere (int, optional) – The atmospheres are defined by the CORSIKA manual available at https://www.iap.kit.edu/corsika/downloads/CORSIKA_GUIDE7.7500.pdf. This atmosphere is only used, if the real_atmosphere set by ratmo is not properly set.

  • real_atmosphere (int, optional) – The real atmosphere is set by the ratmo parameter. If it is set from 1 to 13 corresponding to 12 months + an average (equals April), the atmosphere key is not used. These atmospheres can be found here https://wiki.icecube.wisc.edu/index.php/Real_atmosphere_for_CORSIKA. These atmospheres are also available in CORSIKA, corresponding from 30 to 41. If ratmo is used, the value stored in I3CorsikaInfo and CorsikaWeightMap are mapped to the corresponding values in the official CORSIKA manual.

icecube.simprod.modules.corsika.weighted_choice(weights, rng)