Jpp
pmt_effective_area_update
the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
software
JTrigger
JHitR0.hh
Go to the documentation of this file.
1
#ifndef __JTRIGGER__JHITR0__
2
#define __JTRIGGER__JHITR0__
3
4
#include "
JTrigger/JHit.hh
"
5
#include "
km3net-dataformat/online/JDAQHit.hh
"
6
7
8
/**
9
* \file
10
*
11
* Basic data structure for L0 hit.
12
* \author mdejong
13
*/
14
namespace
JTRIGGER {}
15
namespace
JPP {
using namespace
JTRIGGER; }
16
17
namespace
JTRIGGER {
18
19
using
KM3NETDAQ::JDAQHit
;
20
21
22
/**
23
* Reduced data structure for L0 hit.
24
*/
25
class
JHitR0
:
26
public
JHit
27
{
28
public
:
29
30
typedef
JDAQHit::JPMT_t
JPMT_t
;
//!< PMT channel in FPGA
31
32
33
/**
34
* Default constructor.
35
*/
36
JHitR0
() :
37
JHit
(),
38
pmt
(0)
39
{}
40
41
42
/**
43
* Constructor.
44
*
45
* \param id PMT identifier
46
* \param hit hit
47
*/
48
JHitR0
(
const
JPMT_t
&
id
,
49
const
JHit
& hit) :
50
JHit
(hit),
51
pmt
(id)
52
{}
53
54
55
/**
56
* Get PMT.
57
*
58
* \return PMT
59
*/
60
inline
JPMT_t
getPMT
()
const
61
{
62
return
pmt
;
63
}
64
65
66
/**
67
* Get count.
68
*
69
* \return count
70
*/
71
inline
int
getN
()
const
72
{
73
return
1;
74
}
75
76
77
/**
78
* Get weight.\n
79
* The returned weight is set to one.
80
*
81
* \return 1
82
*/
83
inline
double
getW
()
const
84
{
85
return
1.0;
86
}
87
88
protected
:
89
JPMT_t
pmt
;
//!< PMT readout channel in FPGA
90
};
91
}
92
93
#endif
JTRIGGER::JHitR0::getW
double getW() const
Get weight.
Definition:
JHitR0.hh:83
JTRIGGER::JHitR0::JHitR0
JHitR0()
Default constructor.
Definition:
JHitR0.hh:36
JTRIGGER::JHit
Hit data structure.
Definition:
JTrigger/JHit.hh:22
JHit.hh
Basic data structure for time and time over threshold information of hit.
JTRIGGER::JHitR0::pmt
JPMT_t pmt
PMT readout channel in FPGA.
Definition:
JHitR0.hh:89
JTRIGGER::JHitR0::getPMT
JPMT_t getPMT() const
Get PMT.
Definition:
JHitR0.hh:60
JTRIGGER::JHitR0
Reduced data structure for L0 hit.
Definition:
JHitR0.hh:25
KM3NETDAQ::JDAQHit
Hit data structure.
Definition:
JDAQHit.hh:34
JTRIGGER::JHitR0::JHitR0
JHitR0(const JPMT_t &id, const JHit &hit)
Constructor.
Definition:
JHitR0.hh:48
JTRIGGER::JHitR0::getN
int getN() const
Get count.
Definition:
JHitR0.hh:71
JDAQHit.hh
JTRIGGER::JHitR0::JPMT_t
JDAQHit::JPMT_t JPMT_t
PMT channel in FPGA.
Definition:
JHitR0.hh:30
KM3NETDAQ::JDAQHit::JPMT_t
unsigned char JPMT_t
PMT channel in FPGA.
Definition:
JDAQHit.hh:38
Generated by
1.8.5