Jpp
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 "
JDAQ/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 weight.
68
* The returned weight is set to one.
69
*
70
* \return 1
71
*/
72
inline
double
getW
()
const
73
{
74
return
1.0;
75
}
76
77
protected
:
78
JPMT_t
pmt
;
//!< PMT readout channel in FPGA
79
};
80
}
81
82
#endif
JTRIGGER::JHitR0::JPMT_t
JDAQHit::JPMT_t JPMT_t
PMT channel in FPGA.
Definition:
JHitR0.hh:30
JTRIGGER::JHitR0::JHitR0
JHitR0(const JPMT_t &id, const JHit &hit)
Constructor.
Definition:
JHitR0.hh:48
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JTRIGGER::JHitR0
Reduced data structure for L0 hit.
Definition:
JHitR0.hh:25
KM3NETDAQ::JDAQHit::JPMT_t
unsigned char JPMT_t
PMT channel in FPGA.
Definition:
JDAQHit.hh:44
JTRIGGER::JHitR0::pmt
JPMT_t pmt
PMT readout channel in FPGA.
Definition:
JHitR0.hh:78
JHit.hh
JTRIGGER::JHitR0::getPMT
JPMT_t getPMT() const
Get PMT.
Definition:
JHitR0.hh:60
JTRIGGER::JHitR0::JHitR0
JHitR0()
Default constructor.
Definition:
JHitR0.hh:36
JTRIGGER::JHit
Hit data structure.
Definition:
JHit.hh:22
KM3NETDAQ::JDAQHit
Hit data structure.
Definition:
JDAQHit.hh:40
JDAQHit.hh
JTRIGGER
Checksum.
Definition:
JSupport/JSupport.hh:35
JTRIGGER::JHitR0::getW
double getW() const
Get weight.
Definition:
JHitR0.hh:72
Generated by
1.8.16