Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pythia6m
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
monte_carlo
pythia6m
Commits
3b0a59c2
Commit
3b0a59c2
authored
5 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix: incorrect use of constexpr qualifier
parent
9163e253
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pythia6m/interface/event.hh
+5
-10
5 additions, 10 deletions
src/pythia6m/interface/event.hh
with
5 additions
and
10 deletions
src/pythia6m/interface/event.hh
+
5
−
10
View file @
3b0a59c2
...
@@ -24,7 +24,7 @@ struct particle {
...
@@ -24,7 +24,7 @@ struct particle {
double
mass
;
double
mass
;
particle
()
=
default
;
particle
()
=
default
;
// create a particle from using the global pythia particle index
// create a particle from using the global pythia particle index
particle
(
const
int32_t
idx
);
particle
(
const
int32_t
idx
);
...
@@ -61,19 +61,15 @@ struct event {
...
@@ -61,19 +61,15 @@ struct event {
event
&
operator
=
(
const
event
&
)
=
default
;
event
&
operator
=
(
const
event
&
)
=
default
;
event
&
operator
=
(
event
&&
rhs
);
event
&
operator
=
(
event
&&
rhs
);
constexpr
const
particle
&
beam
()
const
{
const
particle
&
beam
()
const
{
return
particles
[
0
];
}
return
particles
[
0
];
const
particle
&
target
()
const
{
return
particles
[
1
];
}
}
constexpr
const
particle
&
target
()
const
{
return
particles
[
1
];
}
// print a LUND event record for all final state particles
// print a LUND event record for all final state particles
void
print
(
std
::
ostream
&
os
,
void
print
(
std
::
ostream
&
os
,
std
::
function
<
bool
(
const
particle
&
)
>
selector
)
const
;
std
::
function
<
bool
(
const
particle
&
)
>
selector
)
const
;
};
};
// e+p leptoproduction
// e+p leptoproduction
struct
ep_event
:
event
{
struct
ep_event
:
event
{
ROOT
::
Math
::
XYZTVector
q
;
ROOT
::
Math
::
XYZTVector
q
;
double
Q2
;
double
Q2
;
...
@@ -105,7 +101,6 @@ struct photo_event : event {
...
@@ -105,7 +101,6 @@ struct photo_event : event {
}
}
};
};
}
// namespace pythia6m
}
// ns pythia6m
#endif
#endif
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