Skip to content

Commit

Permalink
Added MarleyCrossSection to pybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
marichavest committed Oct 2, 2024
1 parent d24d6f8 commit b1ea2c8
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions projects/interactions/private/pybindings/MarleyCrossSection.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#include <set>
#include <memory>
#include <string>

#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include <pybind11/stl.h>

#include "../../public/SIREN/interactions/CrossSection.h"
#include "../../public/SIREN/interactions/MarleyCrossSection.h"
#include "../../../dataclasses/public/SIREN/dataclasses/Particle.h"
#include "../../../dataclasses/public/SIREN/dataclasses/InteractionRecord.h"
#include "../../../dataclasses/public/SIREN/dataclasses/InteractionSignature.h"
#include "../../../utilities/public/SIREN/utilities/Random.h"

void register_MarleyCrossSection(pybind11::module_ & m) {
using namespace pybind11;
using namespace siren::interactions;

class_<MarleyCrossSection, std::shared_ptr<MarleyCrossSection>, CrossSection> marleycrosssection(m, "MarleyCrossSection");

marleycrosssection

.def(init<std::string, std::string>())
.def(self == self)
.def("TotalCrossSection",&MarleyCrossSection::TotalCrossSection)
.def("TotalCrossSectionAllFinalStates",&MarleyCrossSection::TotalCrossSectionAllFinalStates)
.def("DifferentialCrossSection",&MarleyCrossSection::DifferentialCrossSection)
.def("InteractionThreshold",&MarleyCrossSection::InteractionThreshold)
.def("GetPossibleTargets",&MarleyCrossSection::GetPossibleTargets)
.def("GetPossibleTargetsFromPrimary",&MarleyCrossSection::GetPossibleTargetsFromPrimary)
.def("GetPossiblePrimaries",&MarleyCrossSection::GetPossiblePrimaries)
.def("GetPossibleSignatures",&MarleyCrossSection::GetPossibleSignatures)
.def("GetPossibleSignaturesFromParents",&MarleyCrossSection::GetPossibleSignaturesFromParents)
.def("FinalStateProbability",&MarleyCrossSection::FinalStateProbability)
.def("DensityVariables",&MarleyCrossSection::DensityVariables);
}

0 comments on commit b1ea2c8

Please sign in to comment.