Jpp  19.1.0
the software that should make you happy
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  double getFlux(const Evt& evt) const
38  {
39  return getFactor(evt);
40  }
41  };
42 }
43 
44 #endif
Extensions to Evt data format.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Definition: Evt.hh:21
Abstract base class for specifiable event-weight factors.
virtual double getFactor(const Evt &evt) const =0
Get event-weight factor of given event.
Low-level interface for retrieving the flux corresponding to a given event.
Definition: JFlux.hh:23
virtual ~JFlux()
Virtual destructor.
Definition: JFlux.hh:27
double getFlux(const Evt &evt) const
Get flux of given event.
Definition: JFlux.hh:37