Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
Project Juggler
Commits
04b4bbe6
Commit
04b4bbe6
authored
Mar 28, 2022
by
Wouter Deconinck
Browse files
A podio object can only be in one collection, so use std::vector
parent
2c5d60bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
JugBase/JugBase/Utilities/Beam.h
View file @
04b4bbe6
...
...
@@ -12,7 +12,7 @@ namespace Jug::Base::Beam {
auto
find_first_with_pdg
(
const
collection
&
parts
,
const
std
::
set
<
int32_t
>&
pdg
)
{
collection
c
;
std
::
vector
<
decltype
(
parts
[
0
])
>
c
;
for
(
const
auto
&
p
:
parts
)
{
if
(
pdg
.
count
(
p
.
getPDG
())
>
0
)
{
c
.
push_back
(
p
);
...
...
@@ -27,9 +27,10 @@ namespace Jug::Base::Beam {
const
collection
&
parts
,
const
std
::
set
<
int32_t
>&
status
,
const
std
::
set
<
int32_t
>&
pdg
)
{
collection
c
;
std
::
vector
<
decltype
(
parts
[
0
])
>
c
;
for
(
const
auto
&
p
:
parts
)
{
if
(
status
.
count
(
p
.
getGeneratorStatus
())
>
0
&&
pdg
.
count
(
p
.
getPDG
())
>
0
)
{
if
(
status
.
count
(
p
.
getGeneratorStatus
())
>
0
&&
pdg
.
count
(
p
.
getPDG
())
>
0
)
{
c
.
push_back
(
p
);
break
;
}
...
...
Write
Preview
Markdown
is supported
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