Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DaVinci
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
DaVinci
Commits
15b535d5
Commit
15b535d5
authored
2 years ago
by
Gerhard Raven
Committed by
Sebastien Ponce
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
follow changes in
LHCb!3986
parent
ef1e51f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1103
Draft: Add AnalysisHelpers to DaVinci Stack
,
!841
follow changes in LHCb!3986
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DaVinciExamples/python/DaVinciExamples/tupling/example-tupling-mc-reconstructible-reconstructed.py
+4
-8
4 additions, 8 deletions
...pling/example-tupling-mc-reconstructible-reconstructed.py
with
4 additions
and
8 deletions
DaVinciExamples/python/DaVinciExamples/tupling/example-tupling-mc-reconstructible-reconstructed.py
+
4
−
8
View file @
15b535d5
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
Example options to show the usage of the new DaVinciMCTools
Example options to show the usage of the new DaVinciMCTools
`MCReconstructible` and `MCReconstructed` helper classes.
`MCReconstructible` and `MCReconstructed` helper classes.
"""
"""
from
PyConf.reading
import
get_mc_particles
,
get_pp2mcp_relations
,
get_charged_protoparticles
,
get_neutral_protoparticles
,
get_mc_track_info
from
PyConf.reading
import
get_mc_particles
,
get_pp2mcp_relations
,
get_mc_track_info
from
FunTuple
import
FunTuple_MCParticles
as
MCFuntuple
from
FunTuple
import
FunTuple_MCParticles
as
MCFuntuple
from
DaVinciMCTools
import
MCReconstructible
as
MCRectible
,
MCReconstructed
as
MCRected
from
DaVinciMCTools
import
MCReconstructible
as
MCRectible
,
MCReconstructed
as
MCRected
from
DaVinci
import
Options
,
make_config
from
DaVinci
import
Options
,
make_config
...
@@ -23,16 +23,12 @@ def main(options: Options):
...
@@ -23,16 +23,12 @@ def main(options: Options):
# Input
# Input
MC_data
=
get_mc_particles
(
"
/Event/HLT2/MC/Particles
"
)
MC_data
=
get_mc_particles
(
"
/Event/HLT2/MC/Particles
"
)
# PP2MCP relations need MC particles and ProtoParticles
# Since MC is already unpacked, only unpack protos and relations
extra_inputs
=
[]
extra_inputs
+=
[
get_charged_protoparticles
()]
extra_inputs
+=
[
get_neutral_protoparticles
()]
# PP2MCP relations
relations_charged
=
get_pp2mcp_relations
(
relations_charged
=
get_pp2mcp_relations
(
"
/Event/HLT2/Relations/ChargedPP2MCP
"
,
extra_inputs
=
extra_inputs
)
"
/Event/HLT2/Relations/ChargedPP2MCP
"
)
relations_neutral
=
get_pp2mcp_relations
(
relations_neutral
=
get_pp2mcp_relations
(
"
/Event/HLT2/Relations/NeutralPP2MCP
"
,
extra_inputs
=
extra_inputs
)
"
/Event/HLT2/Relations/NeutralPP2MCP
"
)
#Get variables related to reconstructible information.
#Get variables related to reconstructible information.
mcrtible
=
MCRectible
(
mcrtible
=
MCRectible
(
...
...
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