Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NuclearInteractionParameters.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file NuclearInteractionParameters.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2021 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
12 
13 #include <vector>
14 
15 namespace ActsFatras {
16 namespace detail {
17 
21  std::pair<std::vector<float>, std::vector<uint32_t>>;
22  using Distributions = std::vector<CumulativeDistribution>;
23  using PdgMap =
24  std::vector<std::pair<int, std::vector<std::pair<int, float>>>>;
25 
30 
32  Distributions& momenta, Acts::ActsDynamicVector& eValMom,
34  Distributions& invariantMasses, Acts::ActsDynamicVector& eValIM,
37  momentumDistributions(momenta),
38  eigenvaluesMomentum(eValMom),
39  meanMomentum(meanMom),
40  invariantMassDistributions(invariantMasses),
42  meanInvariantMass(meanIM) {
43  const unsigned int sizeMom = eigenvaluesMomentum.size();
44  eigenvectorsMomentum.resize(sizeMom, sizeMom);
45  for (unsigned int i = 0; i < sizeMom; i++) {
46  for (unsigned int j = 0; j < sizeMom; j++) {
47  eigenvectorsMomentum(i, j) = eVecMom[i * sizeMom + j];
48  }
49  }
50 
51  const unsigned int sizeInvMass = eigenvaluesInvariantMass.size();
52  eigenvectorsInvariantMass.resize(sizeInvMass, sizeInvMass);
53  for (unsigned int i = 0; i < sizeInvMass; i++) {
54  for (unsigned int j = 0; j < sizeInvMass; j++) {
55  eigenvectorsInvariantMass(i, j) = eVecIM[i * sizeInvMass + j];
56  }
57  }
58  }
59 
60  bool validParametrisation = false;
61 
71 
81  };
82 
84  float momentum = 0;
96  std::vector<ParametersWithFixedMultiplicity> softKinematicParameters;
98  std::vector<ParametersWithFixedMultiplicity> hardKinematicParameters;
99 };
100 
103  std::vector<std::pair<float, NuclearInteractionParameters>>;
106  std::vector<std::pair<int, NuclearInteractionParametrisation>>;
107 } // namespace detail
108 } // namespace ActsFatras