1#ifndef __JACOUSTICS__JACOUSTICSTOOLKIT__
2#define __JACOUSTICS__JACOUSTICSTOOLKIT__
66 for (T i = __begin; i != __end; ++i) {
67 (*this)[i->getID()] += 1;
70 for (const_iterator i = this->begin(); i != this->end(); ++i) {
71 if (i->second <
min) {
110 const_iterator p = this->find(
id);
112 if (p != this->end())
113 return (
double)
min / (
double) p->second;
131 static bool unify =
true;
148 template<
class T,
class JTypename_t,
class JComparator_t>
153 T p = std::find_if(__begin, __end, predicate);
156 return p->getPosition();
171 template<
class T,
class JTypename_t,
class JComparator_t>
180 catch(
const std::exception&) {
194 return chronometer.getTimesliceStart().getTimeNanoSecond() * 1.0e-9;
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Data structure for vector in three dimensions.
Template definition of auxiliary class to select objects.
Exception for accessing a value in a collection that is outside of its range.
Template definition of a multi-dimensional oscillation probability interpolation table.
Auxiliary classes and methods for acoustic position calibration.
int getWaveformID(int id)
Get waveform identifier.
double getUNIXTime(const KM3NETDAQ::JDAQChronometer &chronometer)
Get UNIX time of given DAQ object.
JVector3D getPosition(T __begin, T __end, const JPredicate< JTypename_t, JComparator_t > &predicate)
Get position from element in data which corresponds to given predicate.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure to unify weights of acoustics data according to the number of pings per emit...
double operator()(const int id) const
Get weight.
static bool & get_unify()
Get option to unify weights.
static bool getUnify()
Get option to unify weights.
JWeight(T __begin, T __end)
Constructor.
static void setUnify(const bool unify)
Set option to unify weights.