Jpp - 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 
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 flux corresponding to an event.
21  */
22  struct JFlux :
23  public JClonable<JFlux>
24  {
25  /**
26  * Virtual destructor.
27  */
28  virtual ~JFlux()
29  {}
30 
31 
32  /**
33  * Get flux of given event.
34  *
35  * \param evt event
36  * \return flux [GeV * m^-2 * sr^-1 * s^-1]
37  */
38  virtual double getFlux(const Evt& evt) const = 0;
39  };
40 }
41 
42 #endif
virtual double getFlux(const Evt &evt) const =0
Get flux of given event.
Template class for object cloning.
Definition: JClonable.hh:20
Low-level interface for retrieving flux corresponding to an event.
Definition: JFlux.hh:22
virtual ~JFlux()
Virtual destructor.
Definition: JFlux.hh:28
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Definition: Evt.hh:19