Jpp 20.0.0-195-g190c9e876
the software that should make you happy
Loading...
Searching...
No Matches
JHitW0.hh
Go to the documentation of this file.
1#ifndef __JRECONSTRUCTION__JHITW0__
2#define __JRECONSTRUCTION__JHITW0__
3
4#include "JTrigger/JHitL0.hh"
6
7
8/**
9 * \author mdejong
10 */
11
12namespace JRECONSTRUCTION {}
13namespace JPP { using namespace JRECONSTRUCTION; }
14
15namespace JRECONSTRUCTION {
16
17 using JTRIGGER::JHitL0;
19
20 /**
21 * Auxiliary class for a hit with background rate value.
22 */
23 class JHitW0 :
24 public JHitL0
25 {
26 public:
27 /**
28 * Default constructor.
29 */
31 JHitL0(),
32 type(0),
33 QE(1.0),
34 R (0.0)
35 {}
36
37
38 /**
39 * Constructor.
40 *
41 * \param hit hit
42 * \param type type for time-slewing correction
43 * \param QE relative quantum efficiency
44 * \param R_Hz rate [Hz]
45 */
46 JHitW0(const JHitL0& hit,
47 const int type,
48 const double QE,
49 const double R_Hz) :
50 JHitL0(hit),
51 type(type),
52 QE(QE),
53 R (R_Hz)
54 {}
55
56
57 /**
58 * Get calibrated time of hit.
59 *
60 * \return time [ns]
61 */
62 inline double getT() const
63 {
64 return this->getT1() - getTimeSlewing(this->getToT(), type);
65 }
66
67
68 /**
69 * Get type for for time-slewing correction
70 *
71 * \return type
72 */
73 int getType() const
74 {
75 return type;
76 }
77
78
79 /**
80 * Get relative quantum efficiency.
81 *
82 * \return relative quantum efficiency
83 */
84 double getQE() const
85 {
86 return QE;
87 }
88
89
90 /**
91 * Get rate.
92 *
93 * \return rate [Hz]
94 */
95 inline double getR() const
96 {
97 return R;
98 }
99
100 protected:
101 int type; //!< type for time-slewing correction
102 double QE; //!< relative quantum efficiency
103 double R; //!< rate [Hz]
104 };
105}
106
107#endif
Basic data structure for L0 hit.
Time slewing correction.
Auxiliary class for a hit with background rate value.
Definition JHitW0.hh:25
double getQE() const
Get relative quantum efficiency.
Definition JHitW0.hh:84
double QE
relative quantum efficiency
Definition JHitW0.hh:102
int getType() const
Get type for for time-slewing correction.
Definition JHitW0.hh:73
JHitW0(const JHitL0 &hit, const int type, const double QE, const double R_Hz)
Constructor.
Definition JHitW0.hh:46
int type
type for time-slewing correction
Definition JHitW0.hh:101
double getT() const
Get calibrated time of hit.
Definition JHitW0.hh:62
double getR() const
Get rate.
Definition JHitW0.hh:95
double R
rate [Hz]
Definition JHitW0.hh:103
JHitW0()
Default constructor.
Definition JHitW0.hh:30
Data structure for L0 hit.
Definition JHitL0.hh:31
double getT1() const
Get leading edge of hit.
double getToT() const
Get calibrated time over threshold of hit.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JTRIGGER::JTimeSlewing_t getTimeSlewing
Function object to get time-slewing correction.