Belle II Software  light-2403-persian
PostProcessingParticleWeighting.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 /* Analysis headers. */
12 #include <analysis/dbobjects/ParticleWeightingLookUpTable.h>
13 
14 /* Basf2 headers. */
15 #include <framework/database/DBObjPtr.h>
16 #include <framework/dataobjects/EventMetaData.h>
17 
18 /* Python headers. */
19 #include <Python.h>
20 
21 /* C++ headers. */
22 #include <map>
23 #include <string>
24 
25 namespace Belle2 {
35 
36  public:
37 
42  PostProcessingParticleWeighting(const char* lookupTableName);
43 
48 
54  void setValue(std::string variableName, double value);
55 
59  WeightInfo getInfo(int experiment, int run);
60 
64  PyObject* getInfoPython(int experiment, int run);
65 
66  protected:
67 
69  std::map<std::string, double> m_Values;
70 
73 
76 
77  };
78 
80 }
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
Store event, run, and experiment numbers.
Definition: EventMetaData.h:33
void setValue(std::string variableName, double value)
Set value.
PyObject * getInfoPython(int experiment, int run)
Get weight information (Python).
std::map< std::string, double > m_Values
Values.
PostProcessingParticleWeighting(const char *lookupTableName)
Constructor.
WeightInfo getInfo(int experiment, int run)
Get weight information.
DBObjPtr< ParticleWeightingLookUpTable > m_LookupTable
Lookup table.
std::map< std::string, double > WeightInfo
Weight information: a line from the weight lookup table.
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24