This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from straxen.contexts import xnt_common_config | |
aux_repo = 'https://raw.githubusercontent.com/XENONnT/strax_auxiliary_files/' | |
xnt_common_config['gain_model'] = ('to_pe_per_run', | |
aux_repo+'58e615f99a4a6b15e97b12951c510de91ce06045/fax_files/to_pe_nt.npy') | |
st = strax.Context( | |
storage=strax.DataDirectory('./strax_data'), | |
register=wfsim.RawRecordsFromFaxNT, | |
config=dict(detector='XENONnT', | |
fax_config=aux_repo+'4e71b8a2446af772c83a8600adc77c0c3b7e54d1/fax_files/fax_config_nt.json', | |
**straxen.contexts.xnt_common_config, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
truth = st.get_df(run_id, 'truth') | |
--------------------------------------------------------------------------- | |
UFuncTypeError Traceback (most recent call last) | |
<ipython-input-9-98001a2a1c1a> in <module> | |
2 # !rm -r strax_data | |
3 | |
----> 4 records = st.get_array(run_id,'records') | |
5 # peaks = st.get_array(run_id, ['peaks','peak_basics']) | |
6 # data = st.get_df(run_id, 'event_info') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x = """ | |
#!/bin/bash | |
#SBATCH --job-name=nSort | |
#SBATCH --ntasks=1 | |
#SBATCH --cpus-per-task=8 | |
#SBATCH --mem-per-cpu=4480 | |
#SBACTH --output=log.out | |
#SBATCH --time=8:00:00 | |
#SBATCH --account=pi-lgrandi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import os | |
from datetime import date | |
#import tqdm | |
import glob | |
import subprocess | |
from pexpect import pxssh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ariannarocchetti ~/processing/montecarlo $ env | egrep 'LANG|LC' | |
LANG=en_US.UTF-8 | |
LC_CTYPE=UTF-8 | |
ariannarocchetti ~/processing/montecarlo $ python mc_process.py --flavor G4p10 --config Acrylic_K40 --batch-size 2000 --events 10000 --mc-version v3.0.0 --fax-version head --pax-version head --sciencerun 1 --experiment XENONnT | |
Generating 10000 events using 5 jobs | |
('Checking for macro:', '/cvmfs/xenon.opensciencegrid.org/releases/mc/v3.0.0/macros/XENONnT/preinit_TPC.mac') | |
('Checking for macro:', '/cvmfs/xenon.opensciencegrid.org/releases/mc/v3.0.0/macros/XENONnT/preinit_B_none.mac') | |
('Checking for macro:', '/cvmfs/xenon.opensciencegrid.org/releases/mc/v3.0.0/macros/XENONnT/preinit_EF_C8kVA4kV.mac') | |
('Checking for macro:', '/cvmfs/xenon.opensciencegrid.org/releases/mc/v3.0.0/macros/XENONnT/run_Acrylic_K40.mac') | |
('Checking for macro:', '/cvmfs/xenon.opensciencegrid.org/releases/mc/v3.0.0/macros/XENONnT/setup_optical.mac') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File "mc_process.py", line 577, in <module> | |
sys.exit(run_main()) | |
File "mc_process.py", line 527, in run_main | |
output_directory) | |
File "mc_process.py", line 94, in pegasus_submit | |
update_site_catalogs() | |
File "mc_process.py", line 37, in update_site_catalogs | |
catalog = open(catalog_file, 'r') | |
IOError: [Errno 2] No such file or directory: 'osg-sites.xml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
('Checking for macro:', '/cvmfs/xenon.opensciencegrid.org/releases/mc/arianna_er/macros/XENONnT/preinit_TPC.mac') | |
('Checking for macro:', '/cvmfs/xenon.opensciencegrid.org/releases/mc/arianna_er/macros/XENONnT/preinit_B_none.mac') | |
('Checking for macro:', '/cvmfs/xenon.opensciencegrid.org/releases/mc/arianna_er/macros/XENONnT/preinit_EF_C8kVA4kV.mac') | |
('Checking for macro:', '/cvmfs/xenon.opensciencegrid.org/releases/mc/arianna_er/macros/XENONnT/run_ER_SS_InnerCryostat_Th228.mac') | |
('Checking for macro:', '/cvmfs/xenon.opensciencegrid.org/releases/mc/arianna_er/macros/XENONnT/setup_optical.mac') | |
Error with workflow: perl: warning: Setting locale failed. | |
perl: warning: Please check that your locale settings: | |
LANGUAGE = (unset), | |
LC_ALL = (unset), | |
LC_CTYPE = "UTF-8", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class S1AreaFractionTop_he(Lichen): | |
"""Cut between the 0.05th and the 99.9th percentile of the population in the parameter space Z vs S1AFT | |
Note: https://xe1t-wiki.lngs.infn.it/doku.php?id=xenon:xenon1t:arianna:s1_aft_highenergy | |
Contact: arianna.rocchetti@physik.uni-freiburg.de Arianna Rocchetti. | |
Cut defined above cs1>200. | |
""" | |
version = 1 | |
def _process(df): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################## | |
### Datasets loading ### | |
######################## | |
import hax | |
print("starting!!!") | |
hax.init(pax_version_policy='v6.10.1', | |
make_minitrees=False, | |
minitree_paths=[#'/scratch/midway2/coderre/arianna/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#BATCH --job-name=mc | |
#SBATCH --ntasks=1 | |
#SBATCH --cpus-per-task=8 | |
#SBATCH --mem-per-cpu=4480 | |
#SBATCH --time=8:00:00 | |
#SBATCH --account=pi-lgrandi | |
#SBATCH --partition=xenon1t,dali | |
#SBATCH --qos=xenon1t | |
#SBATCH --output=logs/log-%J.txt |
NewerOlder