Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JPMTHeader.hh
Go to the documentation of this file.
1#ifndef __JTRIGGER__JPMTHEADER__
2#define __JTRIGGER__JPMTHEADER__
3
7
8
9/**
10 * \author mdejong
11 */
12
13namespace JTRIGGER {}
14namespace JPP { using namespace JTRIGGER; }
15
16namespace JTRIGGER {
17
21
22
23 /**
24 * Header for PMT.
25 */
26 struct JPMTHeader :
27 public JDAQChronometer,
28 public JDAQPMTIdentifier,
29 public JAxis3D
30 {
31 /**
32 * Default constructor.
33 */
39
40
41 /**
42 * Constructor.
43 *
44 * \param chronometer DAQ chronometer
45 * \param id PMT identifier
46 * \param axis PMT axis
47 */
48 JPMTHeader(const JDAQChronometer& chronometer,
49 const JDAQPMTIdentifier& id,
50 const JAxis3D& axis) :
51 JDAQChronometer (chronometer),
53 JAxis3D (axis)
54 {}
55
56
57 /**
58 * Get PMT header.
59 *
60 * \return PMT header
61 */
62 const JPMTHeader& getPMTHeader() const
63 {
64 return static_cast<const JPMTHeader&>(*this);
65 }
66
67
68 /**
69 * Set PMT header.
70 *
71 * \param header PMT header
72 */
73 void setPMTHeader(const JPMTHeader& header)
74 {
75 static_cast<JPMTHeader&>(*this) = header;
76 }
77 };
78}
79
80#endif
Axis object.
Definition JAxis3D.hh:41
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for triggering.
Header for PMT.
Definition JPMTHeader.hh:30
void setPMTHeader(const JPMTHeader &header)
Set PMT header.
Definition JPMTHeader.hh:73
JPMTHeader(const JDAQChronometer &chronometer, const JDAQPMTIdentifier &id, const JAxis3D &axis)
Constructor.
Definition JPMTHeader.hh:48
const JPMTHeader & getPMTHeader() const
Get PMT header.
Definition JPMTHeader.hh:62
JPMTHeader()
Default constructor.
Definition JPMTHeader.hh:34