1 #ifndef __JTRIGGER__JFRAME__
2 #define __JTRIGGER__JFRAME__
18 namespace JPP {
using namespace JTRIGGER; }
30 template<
class JElement_t,
class JAllocator_t = std::allocator<JElement_t> >
47 std::vector<JElement_t, JAllocator_t>(),
66 std::vector<JElement_t, JAllocator_t>(),
131 template<
class JMatch_t>
140 while (++p != this->end() && match(*out,*p)) {
147 this->erase(out, this->end());
159 template<
class JMatch_t>
170 while (++q != this->end() && match(*p,*q)) {}
172 if (distance(p,q) == 1) {
182 this->erase(out, this->end());
const JCalibration & getCalibration() const
Get calibration.
Data structure for PMT calibration.
JFrame(const JDAQChronometer &chronometer, const JDAQPMTIdentifier &id, const JAxis3D &axis, const JCalibration &calibration)
Constructor.
double getFrameTime()
Get frame time duration.
Data frame for calibrated hits of one PMT.
void join(const JMatch_t &match)
Join consecutive hits when matched according given criterion.
JFrame()
Default constructor.
Auxiliary class to check whether two consecutive hits should be joined.
JHitL0 getHit(const Hit &hit)
Get transformation.
void putEndMarker()
Append end marker to data.
void filter(const JMatch_t &match)
Filter consecutive hits when matched according given criterion.
void applyHighRateVeto(const double rate_Hz)
Apply high-rate veto.
void push_back(const JDAQHit &hit)
Append DAQ hit.