Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LHCb
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
LHCb
Commits
586dcaf4
Commit
586dcaf4
authored
1 year ago
by
Maarten Van Veghel
Committed by
Andre Gunther
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix additionalInfo condition for NeutralPID as well
parent
8d0b6d73
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4338
Persistency for ChargedPID, BremInfo and GlobalChargedPID classes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Event/EventPacker/src/lib/PackedProtoParticle.cpp
+12
-3
12 additions, 3 deletions
Event/EventPacker/src/lib/PackedProtoParticle.cpp
with
12 additions
and
3 deletions
Event/EventPacker/src/lib/PackedProtoParticle.cpp
+
12
−
3
View file @
586dcaf4
...
...
@@ -294,8 +294,9 @@ StatusCode ProtoParticlePacker::unpack( const PackedData& pproto, Data& proto, c
// if the proto is neutral-like and we are in old version without NeutralPID object, create it from AdditionalInfo
if
(
(
ver
<
2
)
&&
(
-
1
==
pproto
.
track
)
)
{
auto
pid
=
std
::
make_unique
<
NeutralPID
>
();
proto
.
setNeutralPID
(
pid
.
get
()
);
// only add if relevent info there
bool
add_pid
=
false
;
auto
pid
=
std
::
make_unique
<
NeutralPID
>
();
for
(
const
auto
&
[
k
,
v
]
:
with_carry
(
pprotos
.
extras
(),
pproto
.
firstExtra
,
pproto
.
lastExtra
)
)
{
switch
(
k
)
{
case
LHCb
::
ProtoParticle
::
CaloTrMatch
:
...
...
@@ -308,18 +309,23 @@ StatusCode ProtoParticlePacker::unpack( const PackedData& pproto, Data& proto, c
pid
->
setClusterMass
(
StandardPacker
::
fltPacked
(
v
)
);
break
;
case
LHCb
::
ProtoParticle
::
CaloNeutralEcal
:
add_pid
|=
true
;
pid
->
setCaloNeutralEcal
(
StandardPacker
::
fltPacked
(
v
)
);
break
;
case
LHCb
::
ProtoParticle
::
CaloNeutralHcal2Ecal
:
add_pid
|=
true
;
pid
->
setCaloNeutralHcal2Ecal
(
StandardPacker
::
fltPacked
(
v
)
);
break
;
case
LHCb
::
ProtoParticle
::
CaloNeutralE49
:
add_pid
|=
true
;
pid
->
setCaloNeutralE49
(
StandardPacker
::
fltPacked
(
v
)
);
break
;
case
LHCb
::
ProtoParticle
::
CaloNeutralID
:
add_pid
|=
true
;
pid
->
setCaloNeutralID
(
CellIDFromAdditionalInfo
(
v
)
);
break
;
case
LHCb
::
ProtoParticle
::
CaloNeutralE19
:
add_pid
|=
true
;
pid
->
setCaloNeutralE19
(
StandardPacker
::
fltPacked
(
v
)
);
break
;
case
LHCb
::
ProtoParticle
::
CaloClusterCode
:
...
...
@@ -339,7 +345,10 @@ StatusCode ProtoParticlePacker::unpack( const PackedData& pproto, Data& proto, c
break
;
}
}
npids
.
insert
(
pid
.
release
()
);
if
(
add_pid
)
{
proto
.
setNeutralPID
(
pid
.
get
()
);
npids
.
insert
(
pid
.
release
()
);
}
}
else
if
(
-
1
!=
pproto
.
neutralPID
)
{
if
(
StandardPacker
::
hintAndKey64
(
pproto
.
neutralPID
,
&
pprotos
,
&
protos
,
hintID
,
key
)
)
{
proto
.
setNeutralPID
(
{
&
protos
,
hintID
,
key
}
);
...
...
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