Jpp  17.3.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JEvtWeightInterface.hh
Go to the documentation of this file.
1 #ifndef __JAANET__JEVTWEIGHTINTERFACE__
2 #define __JAANET__JEVTWEIGHTINTERFACE__
3 
6 
7 #include "JAAnet/JHead.hh"
8 
9 
10 /**
11  * \author mdejong
12  */
13 
14 namespace JAANET {
15 
16  /**
17  * Low-level interface for event weighing.
18  */
20  {
21  /**
22  * Configuration.
23  *
24  * \param header header
25  */
26  virtual void configure(const JHead& header) = 0;
27 
28 
29  /**
30  * Check whether header is consistent with this event weighter.
31  *
32  * \param header header
33  * \return true if consistent; else false
34  */
35  virtual bool check(const JHead& header) const = 0;
36 
37 
38  /**
39  * Get weight of given event.
40  *
41  * \param evt event
42  * \return weight [Hz]
43  */
44  virtual double getWeight(const Evt& evt) const = 0;
45 
46 
47  /**
48  * Get event-weight normalisation factor.
49  *
50  * \return event-weight normalisation factor.
51  */
52  virtual double getNormalisation() const = 0;
53  };
54 }
55 
56 #endif
virtual double getNormalisation() const =0
Get event-weight normalisation factor.
virtual bool check(const JHead &header) const =0
Check whether header is consistent with this event weighter.
Low-level interface for event weighing.
Monte Carlo run header.
Definition: JHead.hh:1167
virtual double getWeight(const Evt &evt) const =0
Get weight of given event.
virtual void configure(const JHead &header)=0
Configuration.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Definition: Evt.hh:20