FairShip
Loading...
Searching...
No Matches
Pythia8Generator.cxx File Reference
#include "Pythia8Generator.h"
#include <TGeoManager.h>
#include <cmath>
#include "FairPrimaryGenerator.h"
#include "HNLPythia8Generator.h"
#include "MeanMaterialBudget.h"
#include "PythiaUnits.h"
#include "TGeoBBox.h"
#include "TGeoNode.h"
#include "TGeoVolume.h"
#include "TMath.h"
#include "TROOT.h"
#include "TSystem.h"
Include dependency graph for Pythia8Generator.cxx:

Go to the source code of this file.

Functions

constexpr double PythiaLengthToCm (double x)
 A Pythia8 position (mm) in FairShip units (cm).
constexpr double PythiaTimeToS (double t)
 A Pythia8 time (mm/c) in VMC units (s).

Function Documentation

◆ PythiaLengthToCm()

double shipgen::PythiaLengthToCm ( double x)
constexpr

A Pythia8 position (mm) in FairShip units (cm).

Definition at line 18 of file PythiaUnits.h.

18{ return x / kPythiaLengthPerCm; }
constexpr double kPythiaLengthPerCm
Pythia8 lengths are in mm, FairShip lengths in cm.
Definition PythiaUnits.h:13

◆ PythiaTimeToS()

double shipgen::PythiaTimeToS ( double t)
constexpr

A Pythia8 time (mm/c) in VMC units (s).

Definition at line 20 of file PythiaUnits.h.

20 {
22}
constexpr double kCLightCmPerS
Speed of light in cm/s, for VMC times in seconds.
Definition PythiaUnits.h:15