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 | |
#SBATCH --job-name=notebook | |
#SBATCH --ntasks=1 | |
#SBATCH --cpus-per-task=8 | |
#SBATCH --mem-per-cpu=4480 | |
#SBATCH --time=12:00:00 | |
#SBATCH --account=pi-lgrandi | |
#SBATCH --partition=dali |
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 | |
######################## | |
### Datasets loading ### | |
######################## | |
import datetime | |
dsets_version = 0.0 | |
import numpy as np | |
import sys | |
import hax |
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 hax.treemakers.peak_treemakers import PeakExtractor | |
class CoinPeaksInTPC(PeakExtractor): | |
__version__ = '0.0.3' | |
stop_after = 10 | |
peak_fields = ['area', 'type', 'x', 'y', 'n_hits', 'area_per_channel'] | |
event_cut_list = ['event_number %2 == 0' ] | |
peak_cut_list = ['detector == "tpc"', 'type !="lone_hit"'] | |
extra_branches = ['peaks.area', 'peaks.type', 'peaks.reconstructed_positions*', 'peaks.n_hits', 'peaks.detector'] | |
d_tpit = hax.minitrees.load(dataset, [CoinPeaksInTPC, 'Fundamentals']) |
NewerOlder