Jpp  16.0.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JPMTHeader.hh
Go to the documentation of this file.
1 #ifndef __JTRIGGER__JPMTHEADER__
2 #define __JTRIGGER__JPMTHEADER__
3 
6 #include "JGeometry3D/JAxis3D.hh"
7 
8 
9 /**
10  * \author mdejong
11  */
12 
13 namespace JTRIGGER {}
14 namespace JPP { using namespace JTRIGGER; }
15 
16 namespace 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  */
35  JDAQChronometer (),
37  JAxis3D ()
38  {}
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
const JPMTHeader & getPMTHeader() const
Get PMT header.
Definition: JPMTHeader.hh:62
Header for PMT.
Definition: JPMTHeader.hh:26
void setPMTHeader(const JPMTHeader &header)
Set PMT header.
Definition: JPMTHeader.hh:73
Axis object.
Definition: JAxis3D.hh:38
JPMTHeader(const JDAQChronometer &chronometer, const JDAQPMTIdentifier &id, const JAxis3D &axis)
Constructor.
Definition: JPMTHeader.hh:48
JPMTHeader()
Default constructor.
Definition: JPMTHeader.hh:34