Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JWeightEvent.hh
Go to the documentation of this file.
1 #ifndef __JAANET__JWEIGHTEVENT__
2 #define __JAANET__JWEIGHTEVENT__
3 
5 #include "JLang/JClonable.hh"
6 #include "JAAnet/JHead.hh"
7 
8 
9 namespace JAANET {
10 
11  using JLANG::JClonable;
12 
13 
14  /**
15  * Low-level interface for event weighing.
16  */
17  struct JWeightEvent :
18  public JClonable<JWeightEvent>
19  {
20  /**
21  * Virtual destructor.
22  */
23  virtual ~JWeightEvent()
24  {}
25 
26 
27  /**
28  * Configuration.
29  *
30  * \param header header
31  * \return true if okay; else false
32  */
33  virtual bool configure(const JHead& header) = 0;
34 
35 
36  /**
37  * Get weight of given event.
38  *
39  * \param evt event
40  * \return weight [1/s]
41  */
42  virtual double getWeight(const Evt& evt) const = 0;
43  };
44 }
45 
46 #endif
virtual bool configure(const JHead &header)=0
Configuration.
Template class for object cloning.
Definition: JClonable.hh:20
Low-level interface for event weighing.
Definition: JWeightEvent.hh:17
Monte Carlo run header.
Definition: JHead.hh:836
virtual ~JWeightEvent()
Virtual destructor.
Definition: JWeightEvent.hh:23
virtual double getWeight(const Evt &evt) const =0
Get weight of given event.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Definition: Evt.hh:19