JHUGen MELA  JHUGen v7.5.6, MELA v2.4.2
Matrix element calculations as used in JHUGen.
mela_binding.cpp File Reference
#include "Mela.h"
#include "TVar.hh"
#include "TCouplingsBase.hh"
#include "TMCFM.hh"
#include "TUtil.hh"
#include "MELACandidate.h"
#include "TLorentzVector.h"
#include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#include "pybind11/numpy.h"
#include "pybind11/operators.h"
Include dependency graph for mela_binding.cpp:

Go to the source code of this file.

Macros

#define MAKE_COUPLING_ARR_SPIN_ZERO(arrayName, size, arrType)
 Generates the array for spin 0 values in JHUGen and JHUGen-MCFM. More...
 
#define MAKE_COUPLING_ARR_SPIN_ONETWO(arrayName, size)
 Generates the array for spin 1 and spin 2 values in JHUGen. More...
 
#define MAKE_COUPLING_REAL_IMAGINARY_SPIN_ZERO(arrayName, couplingName, couplingIndex, higgsIndex)
 Generates the couplings for spin 0 values in JHUGen and JHUGen-MCFM. More...
 
#define MAKE_COUPLING_REAL_IMAGINARY_SPIN_ONETWO(arrayName, couplingName, couplingIndex)
 Generates the couplings for spin 1 and spin 2 values in JHUGen. More...
 
#define MAKE_COUPLING_C_LAMBDA(arrayName, couplingName, couplingIndex, higgsIndex)
 Generates the couplings for C Lambda values in JHUGen and JHUGen-MCFM. More...
 
#define MAKE_COUPLING_LAMBDA(arrayName, couplingName, couplingIndex_1, couplingIndex_2, higgsIndex)
 Generates the couplings for Lambda values in JHUGen and JHUGen-MCFM. More...
 
#define MAKE_COUPLING_MADMELA(couplingName, couplingIndex_1)
 Generates the couplings for SMEFTSim Wilson Coefficients in MadMELA. More...
 

Functions

float computeP (Mela &mela, bool useConstant=true)
 analog of Mela::computeP More...
 
float computeProdP (Mela &mela, bool useConstant=true)
 analog of Mela::computeProdP More...
 
float computeProdDecP (Mela &mela, bool useConstant=true)
 analog of MelThey cover a slew of uses, from converting a::computeProdDecP More...
 
float computeD_CP (Mela &mela, TVar::MatrixElement myME, TVar::Process myType)
 analog of Mela::computeD_CP More...
 
float computeProdP_VH (Mela &mela, bool includeHiggsDecay, bool useConstant)
 analog of Mela::computeProdP_VH More...
 
float computeProdP_ttH (Mela &mela, int topProcess, int topDecay, bool useConstant)
 analog of Mela::computeProdP_ttH More...
 
float compute4FermionWeight (Mela &mela)
 analog of Mela::compute4FermionWeight More...
 
float getXPropagator (Mela &mela, TVar::ResonancePropagatorScheme scheme)
 analog of Mela::getXPropagator More...
 
float computePM4l (Mela &mela, TVar::SuperMelaSyst syst)
 analog of Mela::computePM4l More...
 
float computeD_gg (Mela &mela, TVar::MatrixElement myME, TVar::Process myType)
 analog of Mela::computeD_gg More...
 
float getConstant (Mela &mela)
 the analog of Mela::getConstant More...
 
float computeDijetConvBW (Mela &mela, bool useTrueBW)
 the analog of Mela::computeDijetConvBW More...
 
py::array getWeightedMEArray (Mela &mela)
 the analog of MelaIO::getWeightedMEArray More...
 
py::array getUnweightedMEArray (Mela &mela)
 the analog of MelaIO::getUnweightedMEArray More...
 
py::tuple getPartonWeights (Mela &mela)
 the analog of MelaIO::getPartonWeights More...
 
float getPAux (Mela &mela)
 the analog of Mela::getPAux More...
 
array< float, 8 > computeDecayAngles (Mela &mela)
 the analog of Mela::computeDecayAngles More...
 
array< float, 7 > computeVBFAngles (Mela &mela)
 analog of Mela::computeVBFAngles More...
 
array< float, 9 > computeVBFAngles_ComplexBoost (Mela &mela)
 analog of Mela::computeVBFAngles_ComplexBoost More...
 
array< float, 7 > computeVHAngles (Mela &mela, TVar::Production prod)
 analog of Mela::computeVHAngles More...
 
SimpleParticle_t particle_initializer (int id, float x, float y, float z, float e, bool ptEtaPhi=false)
 This function intializes a single SimpleParticle_t in the Python. More...
 
SimpleParticleCollection_t collection_initializer_from_column (std::vector< int > ids, std::vector< double > x, std::vector< double > y, std::vector< double > z, std::vector< double > e, bool ptEtaPhi=false)
 This function initializes a single SimpleParticleCollection_t (or a list of SimpleParticle_t) in the Python from a series of lists. More...
 
SimpleParticleCollection_t collection_initializer (py::list listOfParticles)
 This function initializes a single SimpleParticleCollection_t (or a list of SimpleParticle_t) in the Python from a single list. More...
 
 PYBIND11_MODULE (Mela, m)
 The actual binding code for MELA. More...