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
Commits
c5a3b0e7
Commit
c5a3b0e7
authored
3 years ago
by
Stefan Reck
Browse files
Options
Downloads
Patches
Plain Diff
adjust inactive_du default value of bundle mc extractor
parent
1295e0c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
orcasong/extractors/bundles.py
+5
-3
5 additions, 3 deletions
orcasong/extractors/bundles.py
with
5 additions
and
3 deletions
orcasong/extractors/bundles.py
+
5
−
3
View file @
c5a3b0e7
...
...
@@ -105,8 +105,8 @@ class BundleMCExtractor:
Parameters
----------
inactive_du : int o
r None
Don
'
t count mchits in this du.
inactive_du : int
,
o
ptional
Don
'
t count mchits in this du.
E.g. for ORCA4, DU 1 is inactive.
min_n_mchits_list : tuple
How many mchits does a muon have to produce to be counted?
Create a seperate set of entries for each number in the tuple.
...
...
@@ -130,7 +130,7 @@ class BundleMCExtractor:
"""
def
__init__
(
self
,
infile
,
inactive_du
=
1
,
inactive_du
=
None
,
min_n_mchits_list
=
(
0
,
1
,
10
),
plane_point
=
(
17
,
17
,
111
),
with_mc_index
=
True
,
...
...
@@ -150,6 +150,8 @@ class BundleMCExtractor:
infile
,
only_downgoing_tracks
=
only_downgoing_tracks
)
if
self
.
with_mc_index
:
# TODO this would ideally not be read from the filename.
# but there is currently not other way of accessing it (07/2021)
self
.
mc_index
=
get_mc_index
(
infile
)
print
(
f
"
Using mc_index
{
self
.
mc_index
}
"
)
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment