Jpp
software
JTrigger
JHitL0.hh
Go to the documentation of this file.
1
#ifndef __JTRIGGER__JHITL0__
2
#define __JTRIGGER__JHITL0__
3
4
#include "
JDAQ/JDAQPMTIdentifier.hh
"
5
#include "
JGeometry3D/JAxis3D.hh
"
6
#include "
JTrigger/JHit.hh
"
7
8
9
/**
10
* \file
11
*
12
* Basic data structure for L0 hit.
13
* \author mdejong
14
*/
15
namespace
JTRIGGER
{}
16
namespace
JPP
{
using namespace
JTRIGGER
; }
17
18
namespace
JTRIGGER
{
19
20
using
KM3NETDAQ::JDAQPMTIdentifier
;
21
using
JGEOMETRY3D::JAxis3D
;
22
23
24
/**
25
* Data structure for L0 hit.
26
*/
27
class
JHitL0
:
28
public
JDAQPMTIdentifier
,
29
public
JAxis3D
,
30
public
JHit
31
{
32
public
:
33
/**
34
* Default constructor.
35
*/
36
JHitL0
() :
37
JDAQPMTIdentifier
(),
38
JAxis3D
(),
39
JHit
()
40
{}
41
42
43
/**
44
* Constructor.
45
*
46
* \param pmt PMT identifier
47
* \param axis PMT axis
48
* \param hit hit
49
*/
50
JHitL0
(
const
JDAQPMTIdentifier
& pmt,
51
const
JAxis3D
& axis,
52
const
JHit
& hit) :
53
JDAQPMTIdentifier
(pmt),
54
JAxis3D
(axis),
55
JHit
(hit)
56
{}
57
58
59
/**
60
* Get weight.
61
* The returned weight is set to one.
62
*
63
* \return 1
64
*/
65
inline
double
getW
()
const
66
{
67
return
1.0;
68
}
69
};
70
}
71
72
#endif
JTRIGGER::JHitL0::JHitL0
JHitL0()
Default constructor.
Definition:
JHitL0.hh:36
JGEOMETRY3D::JAxis3D
Axis object.
Definition:
JAxis3D.hh:38
JAxis3D.hh
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JHit.hh
JTRIGGER::JHitL0::getW
double getW() const
Get weight.
Definition:
JHitL0.hh:65
KM3NETDAQ::JDAQPMTIdentifier
PMT identifier.
Definition:
JDAQPMTIdentifier.hh:25
JTRIGGER::JHitL0::JHitL0
JHitL0(const JDAQPMTIdentifier &pmt, const JAxis3D &axis, const JHit &hit)
Constructor.
Definition:
JHitL0.hh:50
JTRIGGER::JHitL0
Data structure for L0 hit.
Definition:
JHitL0.hh:27
JTRIGGER::JHit
Hit data structure.
Definition:
JHit.hh:22
JDAQPMTIdentifier.hh
JTRIGGER
Checksum.
Definition:
JSupport/JSupport.hh:35
Generated by
1.8.16