FairShip
Loading...
Searching...
No Matches
PythiaUnits.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// SPDX-FileCopyrightText: Copyright CERN for the benefit of the SHiP
3// Collaboration
4
5#ifndef SHIPGEN_PYTHIAUNITS_H_
6#define SHIPGEN_PYTHIAUNITS_H_
7
8#include "ShipUnit.h"
9
10namespace shipgen {
11
13constexpr double kPythiaLengthPerCm = 10.;
16
18constexpr double PythiaLengthToCm(double x) { return x / kPythiaLengthPerCm; }
20constexpr double PythiaTimeToS(double t) {
22}
23
24} // namespace shipgen
25
26#endif // SHIPGEN_PYTHIAUNITS_H_
constexpr double c_light
Definition ShipUnit.h:44
constexpr double s
Definition ShipUnit.h:31
constexpr double PythiaTimeToS(double t)
A Pythia8 time (mm/c) in VMC units (s).
Definition PythiaUnits.h:20
constexpr double kCLightCmPerS
Speed of light in cm/s, for VMC times in seconds.
Definition PythiaUnits.h:15
constexpr double PythiaLengthToCm(double x)
A Pythia8 position (mm) in FairShip units (cm).
Definition PythiaUnits.h:18
constexpr double kPythiaLengthPerCm
Pythia8 lengths are in mm, FairShip lengths in cm.
Definition PythiaUnits.h:13