IAP GITLAB

Skip to content
Snippets Groups Projects
Commit f07d4e20 authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

CS

parent f9381e0f
No related branches found
No related tags found
No related merge requests found
...@@ -55,13 +55,12 @@ namespace corsika::process::qgsjetII { ...@@ -55,13 +55,12 @@ namespace corsika::process::qgsjetII {
using namespace corsika::units::si; using namespace corsika::units::si;
return qgarr14_.esp[i][0] * 1_GeV; return qgarr14_.esp[i][0] * 1_GeV;
} }
MomentumVector GetMomentum(const unsigned int i, const corsika::geometry::CoordinateSystem& coordinateSystem) const { MomentumVector GetMomentum(const unsigned int i, const corsika::geometry::CoordinateSystem& CS) const {
using corsika::geometry::QuantityVector;
using namespace corsika::units::si; using namespace corsika::units::si;
QuantityVector<hepmomentum_d> components = {qgarr14_.esp[i][2] * 1_GeV, geometry::QuantityVector<hepmomentum_d> components = {qgarr14_.esp[i][2] * 1_GeV,
qgarr14_.esp[i][3] * 1_GeV, qgarr14_.esp[i][3] * 1_GeV,
qgarr14_.esp[i][1] * 1_GeV}; qgarr14_.esp[i][1] * 1_GeV};
return MomentumVector(coordinateSystem, components); return MomentumVector(CS, components);
} }
void Copy(const unsigned int i1, const unsigned int i2) { void Copy(const unsigned int i1, const unsigned int i2) {
...@@ -122,7 +121,7 @@ namespace corsika::process::qgsjetII { ...@@ -122,7 +121,7 @@ namespace corsika::process::qgsjetII {
GetStackData().GetId(GetIndex())); GetStackData().GetId(GetIndex()));
} }
MomentumVector GetMomentum(const corsika::geometry::CoordinateSystem& coordinateSystem) const { return GetStackData().GetMomentum(GetIndex(), coordinateSystem); } MomentumVector GetMomentum(const corsika::geometry::CoordinateSystem& CS) const { return GetStackData().GetMomentum(GetIndex(), CS); }
void SetMomentum(const MomentumVector& v) { void SetMomentum(const MomentumVector& v) {
GetStackData().SetMomentum(GetIndex(), v); GetStackData().SetMomentum(GetIndex(), v);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment