Skip to content

Instantly share code, notes, and snippets.

arianna rocchetti ariannarocchetti

Block or report user

Report or block ariannarocchetti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:361e3b4727120095f3b726c1f011267d
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'])
You can’t perform that action at this time.