Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions nuTens/propagator/DP-propagator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ class DPpropagator : public Propagator

/// @{Setters

inline void setBaseline(float newBaseline) override
{
NT_PROFILE();

_baseline = newBaseline;
}
inline void setDensity(float newDensity)
{
NT_PROFILE();

_density = newDensity;
}
inline void setTheta12(Tensor &newTheta12)
{
NT_PROFILE();
Expand Down
8 changes: 8 additions & 0 deletions python/binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,14 @@ void initPropagator(py::module &m)
"set the parameters for the oscillation calculations",
py::arg("new_theta12"), py::arg("new_theta23"), py::arg("new_theta13"), py::arg("new_deltaCP"), py::arg("new_deltamsq21"), py::arg("new_deltamsq31")
)
.def("set_baseline", &DPpropagator::setBaseline,
"set the baseline",
py::arg("new_baseline")
)
.def("set_density", &DPpropagator::setDensity,
"set the density",
py::arg("new_density")
)
.def("set_energies", &DPpropagator::setEnergies,
"set the neutrino energies",
py::arg("new_energies")
Expand Down
Loading