icecube.clsim.traysegments.common module

icecube.clsim.traysegments.common.configureOpenCLDevices(UseGPUs=True, UseCPUs=False, OverrideApproximateNumberOfWorkItems=None, DoNotParallelize=True, UseOnlyDeviceNumber=None)
icecube.clsim.traysegments.common.parseIceModel(IceModelLocation, disableTilt=False) simclasses.I3CLSimMediumProperties
icecube.clsim.traysegments.common.setupDetector(GCDFile: str, SimulateFlashers: bool = False, IceModelLocation: str | simclasses.I3CLSimMediumProperties = '/Users/buildbot/actions-runner/_work/icetray/icetray/clsim/resources/ice/spice_mie', DisableTilt: bool = False, UnWeightedPhotons: bool = False, UnWeightedPhotonsScalingFactor: None | float = None, UseI3PropagatorService: bool = True, UseGeant4: bool = False, CrossoverEnergyEM: None | float = None, CrossoverEnergyHadron: None | float = None, UseCascadeExtension: bool = True, DOMOversizeFactor: float = 5.0, UnshadowedFraction: float = 0.94, DOMEfficiency: float = 1, HoleIceParameterization: str = '/Users/buildbot/actions-runner/_work/icetray/icetray/ice-models/resources/models/ANGSENS/angsens/as.h2-50cm', WavelengthAcceptance: None | simclasses.I3CLSimFunction = None, DOMRadius: float = 0.1651, CableOrientation: None | str | simclasses.I3MapModuleKeyI3ExtraGeometryItemCylinder = None, IgnoreSubdetectors: Sequence[str] = ['IceTop']) DetectorConfig

Set up data structures used in N different places in clsim :param GCDFile: either a filename or a tuple of (Geometry, Calibration) frames

icecube.clsim.traysegments.common.setupMedium(*, WavelengthGenerationBias: simclasses.I3CLSimFunction, SimulateFlashers: bool = False, IceModelLocation: str | simclasses.I3CLSimMediumProperties = '/Users/buildbot/actions-runner/_work/icetray/icetray/clsim/resources/ice/spice_mie', DisableTilt: bool = False, UseI3PropagatorService: bool = True, UseGeant4: bool = False, CrossoverEnergyEM: None | float = None, CrossoverEnergyHadron: None | float = None, UseCascadeExtension: bool = True) MediumConfig
icecube.clsim.traysegments.common.setupPropagators(RandomService: phys_services.I3RandomService, DetectorParams: DetectorConfig, UseCPUs: bool = False, UseGPUs: bool = True, UseOnlyDeviceNumber: None|int = None, DoNotParallelize: bool = False, OverrideApproximateNumberOfWorkItems: None|int = None, EnableDoubleBuffering: bool = False, DoublePrecision: bool = False, UseCUDA: bool = False, StopDetectedPhotons: bool = True, SaveAllPhotons: bool = False, SaveAllPhotonsPrescale: float = 0.01, PhotonHistoryEntries: int = 0, MaxNumOutputPhotonsPerStep: int|_Sentinel = <icecube.clsim.traysegments.common._Sentinel object>)

Create a collection of photon propagators suitable for use with I3PhotonPropagationServer

icecube.clsim.traysegments.common.setupStepGenerator(RandomService: phys_services.I3RandomService, MediumParams: MediumConfig, ParticleHistory: bool = False, ParticleHistoryGranularity: float = 20.0)