Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OrcaSong
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Machine Learning
OrcaSong
Merge requests
!11
Resolve "mc_info_extractor for neutrino reco chain"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "mc_info_extractor for neutrino reco chain"
15-mc_info_extractor-for-neutrino-reco-chain
into
master
Overview
0
Commits
9
Pipelines
10
Changes
1
Merged
Daniel Guderian
requested to merge
15-mc_info_extractor-for-neutrino-reco-chain
into
master
4 years ago
Overview
0
Commits
9
Pipelines
10
Changes
1
Expand
Closes
#15 (closed)
Edited
4 years ago
by
Daniel Guderian
0
0
Merge request reports
Viewing commit
9ce542e5
Prev
Next
Show latest version
1 file
+
475
−
429
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
9ce542e5
black
· 9ce542e5
Stefan Reck
authored
4 years ago
orcasong/mc_info_extr.py deleted
100644 → 0
+
0
−
44
Options
"""
Functions that extract info from a blob for the mc_info / y datafield
in the h5 files. Very much WIP.
These are made for the specific given runs. They might not be
applicable to other data, and could cause errors or produce unexpected
results when used on data other then the specified.
"""
import
warnings
import
numpy
as
np
__author__
=
'
Stefan Reck
'
def
get_real_data
(
blob
):
"""
Get info present in real data.
Designed for the 2017 one line runs.
"""
event_info
=
blob
[
'
EventInfo
'
][
0
]
track
=
{
'
event_id
'
:
event_info
.
event_id
,
'
run_id
'
:
event_info
.
run_id
,
'
trigger_mask
'
:
event_info
.
trigger_mask
,
}
return
track
def
get_pure_noise
(
blob
):
"""
For simulated pure noise events, which have particle_type 0.
"""
event_info
=
blob
[
'
EventInfo
'
]
track
=
{
'
event_id
'
:
event_info
.
event_id
[
0
],
'
run_id
'
:
event_info
.
run_id
,
'
particle_type
'
:
0
}
return
track
Loading