1 #ifndef __JACOUSTICS__JACOUSTICSTOOLKIT__
2 #define __JACOUSTICS__JACOUSTICSTOOLKIT__
47 min(
std::numeric_limits<size_t>::max())
49 for (T i = __begin; i != __end; ++i) {
50 (*this)[i->getID()] += 1;
53 for (const_iterator i = this->begin(); i != this->end(); ++i) {
54 if (i->second <
min) {
93 const_iterator p = this->find(
id);
96 return (
double)
min / (double) p->second;
114 static bool unify =
true;
131 template<
class T,
class JTypename_t,
class JComparator_t>
136 T p = std::find_if(__begin, __end, predicate);
139 return p->getPosition();
154 template<
class T,
class JTypename_t,
class JComparator_t>
163 catch(
const std::exception&) {
#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.
JDAQUTCExtended getTimesliceStart() const
Get start of timeslice.
double getTimeNanoSecond() const
Get time (limited to 16 ns cycles).
Auxiliary classes and methods for acoustic position calibration.
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, const JVector3D &position)
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 getUnify()
Get option to unify weights.
JWeight(T __begin, T __end)
Constructor.
static bool & get_unify()
Get option to unify weights.
static void setUnify(const bool unify)
Set option to unify weights.