Jpp  18.2.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JFlux.hh
Go to the documentation of this file.
1 #ifndef __JAANET__JFLUX__
2 #define __JAANET__JFLUX__
3 
5 
7 
8 
9 /**
10  * \author bjung
11  */
12 
13 namespace JAANET {}
14 namespace JPP { using namespace JAANET; }
15 
16 namespace JAANET {
17 
18  /**
19  * Low-level interface for retrieving the flux corresponding to a given event.
20  */
21  struct JFlux :
22  public JEvtWeightFactor
23  {
24  /**
25  * Virtual destructor.
26  */
27  virtual ~JFlux()
28  {}
29 
30 
31  /**
32  * Get flux of given event.
33  *
34  * \param evt event
35  * \return flux [GeV^-1 * m^-2 * sr^-1 * s^-1]
36  */
37  virtual double getFlux(const Evt& evt) const
38  {
39  return getFactor(evt);
40  }
41  };
42 }
43 
44 #endif
virtual double getFactor(const Evt &evt) const =0
Get multiplication factor of given event.
Low-level interface for retrieving the flux corresponding to a given event.
Definition: JFlux.hh:21
virtual double getFlux(const Evt &evt) const
Get flux of given event.
Definition: JFlux.hh:37
virtual ~JFlux()
Virtual destructor.
Definition: JFlux.hh:27
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:20