Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
Project Juggler
Commits
069b3c6c
Commit
069b3c6c
authored
Feb 23, 2021
by
Whitney Armstrong
Browse files
Fixed the dummy reconstructed to only save the thrown MC particles
modified: JugBase/src/components/MC2DummyParticle.cpp
parent
35fba059
Changes
1
Hide whitespace changes
Inline
Side-by-side
JugBase/src/components/MC2DummyParticle.cpp
View file @
069b3c6c
...
@@ -39,6 +39,9 @@ namespace Jug {
...
@@ -39,6 +39,9 @@ namespace Jug {
// output collection
// output collection
auto
out_parts
=
m_outputHitCollection
.
createAndPut
();
auto
out_parts
=
m_outputHitCollection
.
createAndPut
();
for
(
const
auto
&
p
:
*
parts
)
{
for
(
const
auto
&
p
:
*
parts
)
{
if
(
p
.
genStatus
()
!=
1
)
{
continue
;
}
double
momentum
=
std
::
hypot
(
p
.
psx
(),
p
.
psy
(),
p
.
psz
());
double
momentum
=
std
::
hypot
(
p
.
psx
(),
p
.
psy
(),
p
.
psz
());
double
energy
=
std
::
hypot
(
momentum
,
p
.
mass
());
double
energy
=
std
::
hypot
(
momentum
,
p
.
mass
());
eic
::
ReconstructedParticle
rec_part
(
p
.
pdgID
(),
energy
,
{
p
.
psx
(),
p
.
psy
(),
p
.
psz
()},
(
double
)
p
.
charge
(),
p
.
mass
());
eic
::
ReconstructedParticle
rec_part
(
p
.
pdgID
(),
energy
,
{
p
.
psx
(),
p
.
psy
(),
p
.
psz
()},
(
double
)
p
.
charge
(),
p
.
mass
());
...
...
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