43 int experiment,
int run)
46 PyObject* dictionary = PyDict_New();
47 for (
const auto& [name, val] : weightInfo) {
48 PyObject* key = PyUnicode_FromString(name.c_str());
49 PyObject* value = PyFloat_FromDouble(val);
50 PyDict_SetItem(dictionary, key, value);
void setValue(std::string variableName, double value)
Set value.
PyObject * getInfoPython(int experiment, int run)
Get weight information (Python).
EventMetaData m_EventMetaData
Event metadata.
std::map< std::string, double > m_Values
Values.
PostProcessingParticleWeighting(const char *lookupTableName)
Constructor.
~PostProcessingParticleWeighting()
Destructor.
WeightInfo getInfo(int experiment, int run)
Get weight information.
DBObjPtr< ParticleWeightingLookUpTable > m_LookupTable
Lookup table.