Jpp  debug
the software that should make you happy
JHitW0.hh
Go to the documentation of this file.
1 #ifndef __JRECONSTRUCTION__JHITW0__
2 #define __JRECONSTRUCTION__JHITW0__
3 
4 #include "JTrigger/JHitL0.hh"
5 
6 
7 /**
8  * \author mdejong
9  */
10 
11 namespace JRECONSTRUCTION {}
12 namespace JPP { using namespace JRECONSTRUCTION; }
13 
14 namespace JRECONSTRUCTION {
15 
16  using JTRIGGER::JHitL0;
17 
18  /**
19  * Auxiliary class for a hit with background rate value.
20  */
21  class JHitW0 :
22  public JHitL0
23  {
24  public:
25  /**
26  * Default constructor.
27  */
28  JHitW0() :
29  JHitL0(),
30  __R(0.0)
31  {}
32 
33 
34  /**
35  * Constructor.
36  *
37  * \param hit hit
38  * \param R_Hz rate [Hz]
39  */
40  JHitW0(const JHitL0& hit,
41  const double R_Hz) :
42  JHitL0(hit),
43  __R(R_Hz)
44  {}
45 
46 
47  /**
48  * Get rate.
49  *
50  * \return rate [Hz]
51  */
52  inline double getR() const
53  {
54  return __R;
55  }
56 
57  protected:
58  double __R;
59  };
60 }
61 
62 #endif
Basic data structure for L0 hit.
Auxiliary class for a hit with background rate value.
Definition: JHitW0.hh:23
JHitW0(const JHitL0 &hit, const double R_Hz)
Constructor.
Definition: JHitW0.hh:40
double getR() const
Get rate.
Definition: JHitW0.hh:52
JHitW0()
Default constructor.
Definition: JHitW0.hh:28
Data structure for L0 hit.
Definition: JHitL0.hh:31
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Model fits to data.