Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LHCb
MooreAnalysis
Commits
8927e54c
Commit
8927e54c
authored
Nov 17, 2021
by
Ross John Hunter
Committed by
Sebastien Ponce
Nov 17, 2021
Browse files
Don't attempt to access the LHCbIDs of neutrals when TOS matching in HltEfficiencyChecker
parent
0e9f9eef
Changes
1
Show whitespace changes
Inline
Side-by-side
Phys/DecayTreeTuple/src/MCTupleToolTOSHLT2.cpp
View file @
8927e54c
...
...
@@ -70,7 +70,14 @@ void MCTupleToolTOSHLT2::fetchLHCbIDsFromRecoParticle( const LHCb::Particle& par
if
(
part
.
isBasicParticle
()
)
{
// We can just get the protoparticle and its IDs
if
(
part
.
charge
()
==
0
)
{
warning
()
<<
"Particle with ID "
<<
part
.
particleID
()
<<
" is neutral, so has no track. Adding empty container of LHCbIDs to this candidate for this track."
<<
endmsg
;
bucket_of_ids
.
emplace_back
();
}
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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment