Skip to content
Snippets Groups Projects
Commit 3b0a59c2 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

Bugfix: incorrect use of constexpr qualifier

parent 9163e253
No related branches found
No related tags found
No related merge requests found
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment