75 for (
int i = 1; i < np; i++) { mergedPath =
AvgPath(mergedPath, pv[i]); }
92 vector<NuPath> mergedPath;
95 for (
int i = 0; i < inputPath.size(); i++) {
97 if (i == j) mergedPath.push_back(
AvgPath(inputPath[j], inputPath[k]));
100 mergedPath.push_back(inputPath[i]);
std::vector< NuPath > MergePaths(std::vector< NuPath > &inputPath, int j, int k)
Merge paths j and k in vector.
NuPath AvgPath(NuPath &p1, NuPath &p2)
Get the average of two paths.
A struct representing a neutrino path segment.
double density
The density of the path segment in g/cm^3.
double length
The length of the path segment in km.
double zoa
The effective Z/A value of the path segment.