Jpp
JSuperFrameClone2D.hh
Go to the documentation of this file.
1 #ifndef __JTRIGGER__JSUPERFRAMECLONE2D__
2 #define __JTRIGGER__JSUPERFRAMECLONE2D__
3 
4 #include <vector>
5 
10 #include "JLang/JClass.hh"
11 
12 
13 /**
14  * \author mdejong
15  */
16 
17 namespace JTRIGGER {}
18 namespace JPP { using namespace JTRIGGER; }
19 
20 namespace JTRIGGER {
21 
22  /**
23  * Clone of JSuperFrame2D.
24  */
25  template<class JElement_t>
27  public JModuleHeader,
28  public std::vector< JFrameClone<JElement_t> >,
29  public JHitToolkit<JElement_t>
30  {
31  public:
32 
39 
40 
41  /**
42  * Default constructor.
43  */
45  JModuleHeader(),
46  std::vector< JFrameClone<JElement_t> >()
47  {}
48 
49 
50  /**
51  * Constructor.
52  *
53  * \param input 2-dimensional super frame
54  */
57  std::vector< JFrameClone<JElement_t> >()
58  {
59  for (typename JSuperFrame2D<JElement_t>::const_iterator i = input.begin(); i != input.end(); ++i) {
60  this->push_back(JFrameClone<JElement_t>(*i));
61  }
62  }
63 
64 
65  /**
66  * Rewind internal iterators.
67  */
68  inline void rewind() const
69  {
70  for (const_iterator i = this->begin(); i != this->end(); ++i) {
71  i->rewind();
72  }
73  }
74 
75 
76  /**
77  * Set the internal iterators to the lower bounds corresponding to the time of the given hit.
78  *
79  * \param hit hit
80  */
81  void lower_bound(argument_type hit) const
82  {
83  for (const_iterator i = this->begin(); i != this->end(); ++i) {
84  i->lower_bound(hit);
85  }
86  }
87 
88 
89  /**
90  * Increment the internal iterators until the lower bounds corresponding to the time of the given hit.
91  *
92  * \param hit hit
93  */
94  void fast_forward(argument_type hit) const
95  {
96  for (const_iterator i = this->begin(); i != this->end(); ++i) {
97  i->fast_forward(hit);
98  }
99  }
100  };
101 }
102 
103 #endif
JTRIGGER::JSuperFrameClone2D::lower_bound
void lower_bound(argument_type hit) const
Set the internal iterators to the lower bounds corresponding to the time of the given hit.
Definition: JSuperFrameClone2D.hh:81
JTRIGGER::JHitToolkit
Template definition of hit toolkit.
Definition: JHitToolkit.hh:60
JModuleHeader.hh
JTRIGGER::JFrameClone
Clone of JFrame.
Definition: JFrameClone.hh:22
JTRIGGER::JSuperFrameClone2D::fast_forward
void fast_forward(argument_type hit) const
Increment the internal iterators until the lower bounds corresponding to the time of the given hit.
Definition: JSuperFrameClone2D.hh:94
JSuperFrame2D.hh
JTRIGGER::JSuperFrameClone2D::reverse_iterator
std::vector< value_type >::reverse_iterator reverse_iterator
Definition: JSuperFrameClone2D.hh:37
JLANG::JClass::argument_type
JArgument< T >::argument_type argument_type
Definition: JClass.hh:82
std::vector
Definition: JSTDTypes.hh:12
JTRIGGER::JSuperFrameClone2D
Clone of JSuperFrame2D.
Definition: JSuperFrameClone2D.hh:26
JTRIGGER::JSuperFrameClone2D::value_type
JFrameClone< JElement_t > value_type
Definition: JSuperFrameClone2D.hh:34
JTRIGGER::JModuleHeader::getModuleHeader
const JModuleHeader & getModuleHeader() const
Get module header.
Definition: JModuleHeader.hh:62
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JAAnetToolkit.hh:37
JTRIGGER::JModuleHeader
Header for Module.
Definition: JModuleHeader.hh:26
JFrameClone.hh
JHitToolkit.hh
JTRIGGER::JSuperFrameClone2D::iterator
std::vector< value_type >::iterator iterator
Definition: JSuperFrameClone2D.hh:35
JTRIGGER::JSuperFrameClone2D::rewind
void rewind() const
Rewind internal iterators.
Definition: JSuperFrameClone2D.hh:68
std
Definition: jaanetDictionary.h:36
JTRIGGER::JSuperFrameClone2D::const_iterator
std::vector< value_type >::const_iterator const_iterator
Definition: JSuperFrameClone2D.hh:36
JClass.hh
JTRIGGER::JSuperFrameClone2D::const_reverse_iterator
std::vector< value_type >::const_reverse_iterator const_reverse_iterator
Definition: JSuperFrameClone2D.hh:38
JTRIGGER
Checksum.
Definition: JSupport/JSupport.hh:35
JTRIGGER::JSuperFrame2D< JElement_t >
JTRIGGER::JSuperFrameClone2D::argument_type
JLANG::JClass< JElement_t >::argument_type argument_type
Definition: JSuperFrameClone2D.hh:33
JTRIGGER::JSuperFrameClone2D::JSuperFrameClone2D
JSuperFrameClone2D(const JSuperFrame2D< JElement_t > &input)
Constructor.
Definition: JSuperFrameClone2D.hh:55
JTRIGGER::JSuperFrameClone2D::JSuperFrameClone2D
JSuperFrameClone2D()
Default constructor.
Definition: JSuperFrameClone2D.hh:44