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