Go to the documentation of this file. 1 #ifndef __JTRIGGER__JFRAME__
2 #define __JTRIGGER__JFRAME__
31 template<
class JElement_t,
class JAllocator_t = std::allocator<JElement_t> >
44 typedef typename container_type::iterator
iterator;
49 using container_type::push_back;
101 container_type::push_back(this->getEndMarker());
115 size_t u_size()
const {
return container_type::size() - 1; }
150 void join(
const match_type& match)
154 for (const_iterator p = this->
u_begin(); p != this->
u_end(); ) {
158 while (++p != this->
u_end() && match(*out,*p)) {
159 *out =
join(*out,*p);
165 if (out != this->
u_end()) {
166 this->erase(out, this->end());
183 for (const_iterator p = this->
u_begin(); p != this->
u_end(); ) {
185 const_iterator q = p;
197 if (out != this->
u_end()) {
198 this->erase(out, this->end());
reverse_iterator u_rbegin()
iterator without end marker
Function object interface for hit matching.
void applyHighRateVeto(const double rate_Hz)
Apply high-rate veto.
iterator u_end()
iterator without end marker
void push_back(const JDAQHit &hit)
Append DAQ hit.
JHitL0 getHit(const Hit &hit)
Get transformation.
void putEndMarker()
Append end marker to data.
container_type::reverse_iterator reverse_iterator
Data structure for PMT calibration.
void join(const match_type &match)
Join consecutive hits when matched according given criterion.
JFrame(const JDAQChronometer &chronometer, const JDAQPMTIdentifier &id, const JAxis3D &axis, const JCalibration &calibration)
Constructor.
container_type::const_iterator const_iterator
std::vector< JElement_t, JAllocator_t > container_type
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
void filter(const match_type &match)
Filter-out consecutive hits when matched according given criterion.
double getFrameTime()
Get frame time duration.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
iterator u_begin()
iterator without end marker
container_type::const_reverse_iterator const_reverse_iterator
reverse_iterator u_rend()
iterator without end marker
const JCalibration & getCalibration() const
Get calibration.
const_iterator u_begin() const
iterator without end marker
const_iterator u_end() const
iterator without end marker
container_type::iterator iterator
const_reverse_iterator u_rbegin() const
iterator without end marker
Data frame for calibrated hits of one PMT.
size_t u_size() const
size without end marker
JMatch< value_type > match_type
JFrame()
Default constructor.
const_reverse_iterator u_rend() const
iterator without end marker