Skip to main content

Electron and Photon Instructions generator for XENON

Project description

epix

PyPI version shields.io CodeFactor

Electron and Photon Instructions generator for XENON

The job of epix is to load XENONnT Geant4 MC data and produce inputs for wfsim, using nestpy for the quanta generation and DBSCAN for the clustering of the individual steps.

Installation

With all requirements fulfilled (e.g., on top of the XENONnT montecarlo_environment):

pip install epix

or install in editable mode from source:

git clone https://github.com/XENONnT/epix
pip install -e epix

Usage

Only an input file is needed to run epix:

bin/run_epix --InputFile <path_and_filename>

The other keyword arguments are:

Argument Description Default
--Detector Detector to be used. Has to be defined in epix.detectors XENONnT
--DetectorConfigOverride Config file to overwrite default epix.detectors settings; see examples in the configs folder in epix.detectors
--CutOnEventid If selected, the next two arguments act on the G4 event id, and not the entry number (default) false
--EntryStart First event to be read 0
--EntryStop How many entries from the ROOT file you want to process all
--MicroSeparation DBSCAN clustering distance (mm) 0.005
--MicroSeparationTime Clustering time (ns) 10
--TagClusterBy decide if you tag the cluster (particle type, energy depositing process) according to first interaction in it (time) or most energetic (energy) energy
--MaxDelay Time after which we cut the rest of the event (ns) 1e7
--YieldModel Model for yield/quanta generationg (nest or bbf) nest
--SourceRate Event rate for event separation
- 0 for no time shift (G4 time remains)
- -1 for clean time shift between events
- >0 (Hz) for random spacing
0
--CutNeutron Add if you want to filter only nuclear recoil events (maximum ER energy deposit 10 keV) false
--JobNumber Job number in full chain simulation. Offset is computed as JobNumber * n_simulated_events/SourceRate, where n_simulated_events is read from file. 0
--OutputPath Output file path Same directory as input file
--Debug Tell epix if you want timing outputs false

0.3.3 (2023-01-09)

0.3.2 (2022-08-15)

  • First implementation of BBF quanta generator (#57)

0.3.1 (2022-06-15)

  • Save primary particle position (#56)
  • Set arg defaults (#55)

0.3.0 (2022-05-20)

  • Add NR filter before quanta generation (#53)
  • Update energy selection for Kr83m model (#52)

0.2.2 (2021-10-31)

  • Fixed field map loading (#50)

0.2.1 (2021-10-30)

  • Update efield handler to maps format (#49)

0.2.0 (2021-10-28)

  • Fix clustering indexing (#45)
  • Treatment for empty data (#40)
  • Fix for NEST interaction classification parameters (#44)
  • Enable CSV input (#42)

0.1.3 (2021-07-27)

  • Tuning clustering defaults (#39)
  • Return statement for removed excitons (#38)
  • Added local field and number of excitons (#34)

0.1.2 (2021-06-09)

  • Add sklearn to requirements (#31)
  • Fix Kr83m NEST-related issues (#30)

0.1.1 (2021-04-09)

  • Automatic PyPi upload (#24)
  • PyPi and codefactor integration

0.1.0 (2021-03-30)

  • E-Field format change (#23)
  • strax interface (#19)

0.0.6 (2021-02-12)

  • Set e- recoil type as default (#15)

0.0.5 (2021-02-08)

  • Change detector naming (#13)

0.0.4 (2021-02-08)

  • New Efield format loading (#11)
  • Store NEST id as recoil type (#10)

0.0.3 (2021-01-26)

  • Clustering and event separation (#6)

0.0.2 (2021-01-25)

  • Added detector volumes (#8)

0.0.1 (2020-01-21)

  • Initial working release as python package

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

epix-0.3.3.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

epix-0.3.3-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file epix-0.3.3.tar.gz.

File metadata

  • Download URL: epix-0.3.3.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for epix-0.3.3.tar.gz
Algorithm Hash digest
SHA256 6e8fdbe624e693eaefc1a5ffdf11a338f486870790be70d40ee4bd81e766eca2
MD5 e67bc952f4ea8f9b4a2a901cec49a239
BLAKE2b-256 3e670cdf3e8f43b5fc1205ebc0aabf3c729a71037af957b45b261d8930fae7e5

See more details on using hashes here.

File details

Details for the file epix-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: epix-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for epix-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ae099dfe7c06a2532ccbcdb06009b44a76d8489517c21dd3515d41d48e396a7b
MD5 8c7c65d2d86d06f01547818a0d1c154d
BLAKE2b-256 24c4947e12c811dc819f3994c9b2eb91c7a7d92c94df56769e687a5502ae1f70

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page