Jpp  15.0.1-rc.2-highQE
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JFrameClone.hh
Go to the documentation of this file.
1 #ifndef __JTRIGGER__JFRAMECLONE__
2 #define __JTRIGGER__JFRAMECLONE__
3 
4 #include "JTrigger/JPMTHeader.hh"
5 #include "JTrigger/JClone.hh"
6 #include "JTrigger/JFrame.hh"
7 
8 
9 /**
10  * \author mdejong
11  */
12 
13 namespace JTRIGGER {}
14 namespace JPP { using namespace JTRIGGER; }
15 
16 namespace JTRIGGER {
17 
18  /**
19  * Clone of JFrame.
20  */
21  template<class JElement_t, class JAllocator_t = std::allocator<JElement_t> >
22  class JFrameClone :
23  public JPMTHeader,
24  public JClone< JFrame<JElement_t, JAllocator_t> >
25  {
26  public:
27  /**
28  * Default constructor.
29  */
31  JPMTHeader(),
32  JClone< JFrame<JElement_t, JAllocator_t> >()
33  {}
34 
35 
36  /**
37  * Constructor.
38  *
39  * \param frame JFrame
40  */
42  JPMTHeader(frame.getPMTHeader()),
43  JClone< JFrame<JElement_t, JAllocator_t> >(frame)
44  {}
45  };
46 }
47 
48 #endif
const JPMTHeader & getPMTHeader() const
Get PMT header.
Definition: JPMTHeader.hh:62
Header for PMT.
Definition: JPMTHeader.hh:26
Data frame for calibrated hits of one PMT.
Definition: JFrame.hh:33
Clone of JFrame.
Definition: JFrameClone.hh:22
JFrameClone()
Default constructor.
Definition: JFrameClone.hh:30
Clone of a container.
Definition: JClone.hh:38
JFrameClone(const JFrame< JElement_t, JAllocator_t > &frame)
Constructor.
Definition: JFrameClone.hh:41