Jpp  15.0.0-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JEvtWeightFactor.hh
Go to the documentation of this file.
1 #ifndef __JAANET__JEVTWEIGHTFACTOR__
2 #define __JAANET__JEVTWEIGHTFACTOR__
3 
5 
6 #include "JLang/JClonable.hh"
7 
8 #include "JAAnet/JHead.hh"
9 
10 /**
11  * \author bjung
12  */
13 
14 namespace JAANET {
15 
16  using JLANG::JClonable;
17 
18 
19  /**
20  * Low-level interface for retrieving a specifiable multiplication factor\n
21  * corresponding to a given event.
22  */
24  public JClonable<JEvtWeightFactor>
25  {
26  /**
27  * Virtual destructor.
28  */
30  {}
31 
32 
33  /**
34  * Get multiplication factor of given event.
35  *
36  * \param evt event
37  * \return multiplication factor
38  */
39  virtual double getFactor(const Evt& evt) const = 0;
40 
41 
42  /**
43  * Get flux of given event.
44  *
45  * \param evt event
46  * \return flux [GeV * m^-2 * sr^-1 * s^-1]
47  */
48  virtual double getFlux(const Evt& evt) const
49  {
50  return getFactor(evt);
51  };
52  };
53 }
54 
55 #endif
virtual double getFlux(const Evt &evt) const
Get flux of given event.
virtual double getFactor(const Evt &evt) const =0
Get multiplication factor of given event.
virtual ~JEvtWeightFactor()
Virtual destructor.
Template class for object cloning.
Definition: JClonable.hh:20
Low-level interface for retrieving a specifiable multiplication factor corresponding to a given event...
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Definition: Evt.hh:19