Jpp  17.3.2
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 
15  /**
16  * Low-level interface for retrieving the flux corresponding to a given event.
17  */
18  struct JFlux :
19  public JEvtWeightFactor
20  {
21  /**
22  * Virtual destructor.
23  */
24  virtual ~JFlux()
25  {}
26 
27 
28  /**
29  * Get flux of given event.
30  *
31  * \param evt event
32  * \return flux [GeV^-1 * m^-2 * sr^-1 * s^-1]
33  */
34  virtual double getFlux(const Evt& evt) const
35  {
36  return getFactor(evt);
37  }
38  };
39 }
40 
41 #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:18
virtual double getFlux(const Evt &evt) const
Get flux of given event.
Definition: JFlux.hh:34
virtual ~JFlux()
Virtual destructor.
Definition: JFlux.hh:24
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