1 #ifndef __JACOUSTICS__JNARRABRI__
2 #define __JACOUSTICS__JNARRABRI__
29 namespace JACOUSTICS {}
30 namespace JPP {
using namespace JACOUSTICS; }
32 namespace JACOUSTICS {
71 t0_s(std::numeric_limits<double>::lowest())
82 t0_s = std::numeric_limits<double>::lowest();
89 for (JEvt::const_iterator i = evt->begin(); i != evt->end(); ++i) {
107 for (JDetector::const_iterator module =
detector.begin(); module !=
detector.end(); ++module) {
124 double xmin = std::numeric_limits<double>::max();
127 if (!i->second.empty() && i->second.getXmin() <
xmin) {
128 xmin = i->second.getXmin();
143 double xmax = std::numeric_limits<double>::lowest();
146 if (!i->second.empty() && i->second.getXmax() >
xmax) {
147 xmax = i->second.getXmax();
178 for (JDetector::iterator module =
detector.begin(); module !=
detector.end(); ++module) {
180 if (!buffer.
has(module->getString())) {
182 buffer[module->getString()] =
calibration[module->getString()](t1_s);
186 if (buffer.
has(module->getString())) {
The elements in a collection are sorted according to their abscissa values and a given distance opera...
const_reverse_iterator rend() const
begin of reverse of calibration data
General purpose class for hash map of unique elements.
const JDetector & operator()(const double t1_s)
Get detector calibrated at given time.
Interface of object iteration for a single data type.
double getXmin() const
Get minimal abscissa.
Data structure for detector geometry and calibration.
JTOOLS::JHashMap< int, function_type > data_type
double UNIXTimeStop
stop time
virtual const pointer_type & next()=0
Get next element.
const_iterator end() const
end of calibration data
Auxiliary wrapper for I/O of container with optional comment (see JComment).
double getXmax() const
Get maximal abscissa.
virtual bool hasNext()=0
Check availability of next element.
number of degrees for interpolation
General purpose class for a collection of sorted elements.
JTOOLS::JElement2D< double, JMODEL::JString > element_type
const_iterator begin() const
begin of calibration data
data_type::const_iterator const_iterator
JNarrabri(const JDetector &detector, const double Tmax_s)
Constructor.
JTOOLS::JPolfitFunction1D< NUMBER_OF_POINTS, NUMBER_OF_DEGREES, element_type, JTOOLS::JCollection > function_type
double UNIXTimeStart
start time
JPosition3D getPiezoPosition()
Get relative position of piezo in optical module.
bool is_valid() const
Check validity of calibration.
Dynamic position calibration.
number of points for interpolation
Model for fit to acoutsics data.
const_reverse_iterator rbegin() const
begin of reverse of calibration data
data_type::const_reverse_iterator const_reverse_iterator
void load(JObjectIterator< JEvt > &input)
Load calibration data.