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
757e85b0
Commit
757e85b0
authored
3 years ago
by
Ross John Hunter
Browse files
Options
Downloads
Patches
Plain Diff
Dont try to find LHCbIDs of neutral particles
parent
126bdea6
No related branches found
No related tags found
No related merge requests found
Pipeline
#3100111
failed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Phys/DecayTreeTupleMC/src/MCTupleToolTOSHLT2.cpp
+7
-1
7 additions, 1 deletion
Phys/DecayTreeTupleMC/src/MCTupleToolTOSHLT2.cpp
with
7 additions
and
1 deletion
Phys/DecayTreeTupleMC/src/MCTupleToolTOSHLT2.cpp
+
7
−
1
View file @
757e85b0
...
...
@@ -70,7 +70,13 @@ void MCTupleToolTOSHLT2::fetchLHCbIDsFromRecoParticle( const LHCb::Particle& par
if
(
part
.
isBasicParticle
()
)
{
// We can just get the protoparticle and its IDs
bucket_of_ids
.
emplace_back
(
part
.
proto
()
->
track
()
->
lhcbIDs
()
);
if
(
part
.
proto
()
->
track
()
==
nullptr
){
if
(
part
.
charge
()
!=
0
)
{
error
()
<<
"Particle with ID "
<<
part
.
particleID
()
<<
" has charge "
<<
part
.
charge
()
<<
" but no track, therefore cant access LHCbIDs."
<<
endmsg
;
}
// Dont expect a neutral particle to have a track or hits, so don't look for them
}
else
{
bucket_of_ids
.
emplace_back
(
part
.
proto
()
->
track
()
->
lhcbIDs
()
);
}
}
else
{
const
auto
&
children
=
part
.
daughters
();
for
(
const
auto
&
child
:
children
)
{
fetchLHCbIDsFromRecoParticle
(
*
child
,
bucket_of_ids
);
}
...
...
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