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