Jpp
JWeightEvent.hh
Go to the documentation of this file.
1 #ifndef __JAANET__JWEIGHTEVENT__
2 #define __JAANET__JWEIGHTEVENT__
3 
4 #include "evt/Evt.hh"
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
JHead.hh
JAANET::JHead
Monte Carlo run header.
Definition: JHead.hh:839
JAANET::JWeightEvent::configure
virtual bool configure(const JHead &header)=0
Configuration.
JAANET::JWeightEvent
Low-level interface for event weighing.
Definition: JWeightEvent.hh:17
JAANET::JWeightEvent::~JWeightEvent
virtual ~JWeightEvent()
Virtual destructor.
Definition: JWeightEvent.hh:23
JAANET
Extensions to AAnet data format.
Definition: JAAnetToolkit.hh:36
JAANET::JWeightEvent::getWeight
virtual double getWeight(const Evt &evt) const =0
Get weight of given event.
JClonable.hh
JLANG::JClonable
Template class for object cloning.
Definition: JClonable.hh:20