Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LHCb
Analysis
Commits
a755dd85
Commit
a755dd85
authored
2 years ago
by
Patrick Koppenburg
Browse files
Options
Downloads
Plain Diff
Merge branch 'sevda-mc-relations-fix' into 'master'
fix relation locations See merge request
!918
parents
53bdc6b7
852a2618
No related branches found
No related tags found
1 merge request
!918
fix relation locations
Pipeline
#4559819
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Phys/DaVinciMCTools/python/DaVinciMCTools/MCReconstructed.py
+11
-6
11 additions, 6 deletions
Phys/DaVinciMCTools/python/DaVinciMCTools/MCReconstructed.py
with
11 additions
and
6 deletions
Phys/DaVinciMCTools/python/DaVinciMCTools/MCReconstructed.py
+
11
−
6
View file @
a755dd85
...
...
@@ -65,12 +65,17 @@ class MCReconstructed:
f
"
The specified
'
process
'
{
process
}
is not recognised. Can only be
'
Hlt2
'
or
'
Spruce
'
or
'
Turbo
'
. Please check!
"
)
if
root_in_tes
:
relations_locs
=
[
f
'
{
root_in_tes
}
/
{
table_loc
}
'
for
table_loc
in
relations_locs
]
ChargedPP2MCP
=
force_location
(
relations_locs
[
0
])
NeutralPP2MCP
=
force_location
(
relations_locs
[
1
])
if
isinstance
(
relations_locs
[
0
],
str
):
if
root_in_tes
:
relations_locs
=
[
f
'
{
root_in_tes
}
/
{
table_loc
}
'
for
table_loc
in
relations_locs
]
ChargedPP2MCP
=
force_location
(
relations_locs
[
0
])
NeutralPP2MCP
=
force_location
(
relations_locs
[
1
])
else
:
ChargedPP2MCP
=
relations_locs
[
0
]
NeutralPP2MCP
=
relations_locs
[
1
]
# Save setup
self
.
use_best_mcmatch
=
use_best_mcmatch
...
...
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